9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Getting printing to work over ethernet
@ 2009-08-22 17:04 Jonas Amoson
  2009-08-26  3:10 ` erik quanstrom
  0 siblings, 1 reply; 9+ messages in thread
From: Jonas Amoson @ 2009-08-22 17:04 UTC (permalink / raw)
  To: 9fans

Hello!

I am trying to print from my Plan 9 computer
to my networked laser printer. It (a HP 2015n)
speaks Postscript  and is connected to the same
router as my computer. The printer has got the
IP 192.168.1.101 from the router, as it uses NAT.

I have tried to add different entries to the file
/sys/lib/lp/devices inspired by the examples in
the same file. Here are two of my best tries:

hplaser   mydesk 192.168.1.101 192.168.1.101
   - post+600dpi generic generic generic generic tcppost
hplaser2  mydesk 192.168.1.101 tcp!192.168.1.101!9100
   81920 post+600dpi generic generic generic generic tcppost

Then I try to print something, 'lp -d hplaser tst.ps'
I get the following errors:

Aug 22 18:48:23 write error during pass, 11356 bytes remaining
Aug 22 18:48:23 failed to send 11356 bytes

It works well to 'ip/ping' the printer, and it also
works to print from my Linux computer, connected
to the same router.

Any ideas of what goes wrong? Anything I have to
do besides adding an entry in the devices-file?

Best,
Jonas



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [9fans] Getting printing to work over ethernet
  2009-08-22 17:04 [9fans] Getting printing to work over ethernet Jonas Amoson
@ 2009-08-26  3:10 ` erik quanstrom
  2009-08-27  0:28   ` geoff
  0 siblings, 1 reply; 9+ messages in thread
From: erik quanstrom @ 2009-08-26  3:10 UTC (permalink / raw)
  To: 9fans

> hplaser   mydesk 192.168.1.101 192.168.1.101
>    - post+600dpi generic generic generic generic tcppost

we use something like this

printer somewhere minooka.coraid.com tcp!printer!9100 81920 post2+1200dpi+duplex
	generic generic generic generic tcppost FIFO

i think you may need a FIFO after tcppost.

- erik



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [9fans] Getting printing to work over ethernet
  2009-08-26  3:10 ` erik quanstrom
@ 2009-08-27  0:28   ` geoff
  2009-08-27  0:32     ` erik quanstrom
  0 siblings, 1 reply; 9+ messages in thread
From: geoff @ 2009-08-27  0:28 UTC (permalink / raw)
  To: 9fans

The final `FIFO' in the scheduler column of /sys/lib/lp/devices
has been optional for a while.  Everybody uses FIFO now, so it's
the default.



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [9fans] Getting printing to work over ethernet
  2009-08-27  0:28   ` geoff
@ 2009-08-27  0:32     ` erik quanstrom
  2009-08-28  2:14       ` geoff
  0 siblings, 1 reply; 9+ messages in thread
From: erik quanstrom @ 2009-08-27  0:32 UTC (permalink / raw)
  To: 9fans

On Wed Aug 26 20:30:05 EDT 2009, geoff@plan9.bell-labs.com wrote:
> The final `FIFO' in the scheduler column of /sys/lib/lp/devices
> has been optional for a while.  Everybody uses FIFO now, so it's
> the default.

is there a man page for those of us who are not
quite following along with the format?

- erik



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [9fans] Getting printing to work over ethernet
  2009-08-27  0:32     ` erik quanstrom
@ 2009-08-28  2:14       ` geoff
  2009-08-29 13:32         ` Jonas Amoson
  0 siblings, 1 reply; 9+ messages in thread
From: geoff @ 2009-08-28  2:14 UTC (permalink / raw)
  To: 9fans

It's not documented in a manual page, I think you have to read
/sys/doc/lp.*, section 4.



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [9fans] Getting printing to work over ethernet
  2009-08-28  2:14       ` geoff
@ 2009-08-29 13:32         ` Jonas Amoson
  2009-08-31  9:43           ` Robert Raschke
  0 siblings, 1 reply; 9+ messages in thread
From: Jonas Amoson @ 2009-08-29 13:32 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

I have not progressed any further in getting lp(1)
to print to my networked printer. But by playing
around, I found a work-around that solves my problem
for the moment:

cat myfile.ps | telnet tcp!192.168.1.101!9100

/jonas




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [9fans] Getting printing to work over ethernet
  2009-08-29 13:32         ` Jonas Amoson
@ 2009-08-31  9:43           ` Robert Raschke
  0 siblings, 0 replies; 9+ messages in thread
From: Robert Raschke @ 2009-08-31  9:43 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 902 bytes --]

On Sat, Aug 29, 2009 at 2:32 PM, Jonas Amoson <jonas.amoson@home.se> wrote:

> I have not progressed any further in getting lp(1)
> to print to my networked printer. But by playing
> around, I found a work-around that solves my problem
> for the moment:
>
> cat myfile.ps | telnet tcp!192.168.1.101!9100
>
> /jonas
>
>
For what it's worth, I have networked PS printer (Samsung CLP550) and these
settings in my /sys/lib/lp/devices work (I have no real understanding of
what the lpd* things do behind the scenes, though):

clp550    robbys-room    clp550n    raw    -    post2+1200dpi+nohead
generic    lpdspool    lpd    -    -    FIFO
clp550d    robbys-room    clp550n    raw    -
post2+1200dpi+duplex+nohead    generic    lpdspool    lpd    -    -    FIFO


Note that I also have the printer as an entry in my /lib/ndb/local, so
clp550n is 192.168.0.200 or something.

Robby

[-- Attachment #2: Type: text/html, Size: 1358 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [9fans] Getting printing to work over ethernet
  2009-08-27 19:00 Jonas Amoson
@ 2009-08-27 19:32 ` Lyndon Nerenberg
  0 siblings, 0 replies; 9+ messages in thread
From: Lyndon Nerenberg @ 2009-08-27 19:32 UTC (permalink / raw)
  To: 9fans

> The only
> relevant documentation I've found on the subject
> is lp(1) and lp(8), and /sys/src/cmd/lp/.

See also /sys/doc/lp.ps

--lyndon



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [9fans] Getting printing to work over ethernet
@ 2009-08-27 19:00 Jonas Amoson
  2009-08-27 19:32 ` Lyndon Nerenberg
  0 siblings, 1 reply; 9+ messages in thread
From: Jonas Amoson @ 2009-08-27 19:00 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 1264 bytes --]

OK. that explains why adding FIFO didn't make
any difference. But now I know that I have done
whatever you are supposed to do to make it work,
so I will try to track down why there are errors.

Wanted to know if there was something else to
configure or run for the magic to work. The only
relevant documentation I've found on the subject
is lp(1) and lp(8), and /sys/src/cmd/lp/.

/jonas


<-----Ursprungligt Meddelande----->
  From: erik quanstrom [quanstro@quanstro.net]
Sent: 27/8/2009 2:33:34 AM
To: 9fans@9fans.net
Subject: Re: [9fans] Getting printing to work over ethernet

On Wed Aug 26 20:30:05 EDT 2009, geoff@plan9.bell-labs.com wrote:
> The final `FIFO' in the scheduler column of /sys/lib/lp/devices
> has been optional for a while. Everybody uses FIFO now, so it's
> the default.

is there a man page for those of us who are not
quite following along with the format?

- erik

.



<P><p><font face="Arial, Helvetica, sans-serif" size="2" style="font-size:13.5px">_______________________________________________________________<BR><a style="font-family: Tahoma, sans-serif; font-size: 10px; color: #00f" href="http://www.eniro.se/?partnerid=spray_mail" target="_blank">Eniro Supers�k - �r vad det heter</a></font>

[-- Attachment #2: Type: text/html, Size: 1469 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-08-31  9:43 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-22 17:04 [9fans] Getting printing to work over ethernet Jonas Amoson
2009-08-26  3:10 ` erik quanstrom
2009-08-27  0:28   ` geoff
2009-08-27  0:32     ` erik quanstrom
2009-08-28  2:14       ` geoff
2009-08-29 13:32         ` Jonas Amoson
2009-08-31  9:43           ` Robert Raschke
2009-08-27 19:00 Jonas Amoson
2009-08-27 19:32 ` Lyndon Nerenberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).