From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Fri, 16 May 2008 19:39:16 +0200 From: "Rudolf Sykora" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@9fans.net> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_7979_1421321.1210959556964" Subject: [9fans] printing fom plan9 to OKI5900dn Topicbox-Message-UUID: a9d437d2-ead3-11e9-9d60-3106f5b1d025 ------=_Part_7979_1421321.1210959556964 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello everyone, I have spent some time trying to figure out the working configuration for being able to print on a network (postscript) printer oki5900dn. I know its IP address. But I haven't succeeded so far. I prepared a PS file, say a.ps. I removed the '!' letter from rc/bin/service/!tcp515, so now I have rc/bin/service/tcp515. I added a line to /sys/lib/lp/devices like this: oki next_door localhost tcp!192.113.32.182!9100 81920 post+duplex generic generic generic generic tcppost FIFO ... I don't quite fully understand this line, so this is probably where the problem is ... Then I tried sth like: lp -doki a.ps ... and it just says nothing... I played with it for a while but without success. Can anybody help? Thanks Ruda ------=_Part_7979_1421321.1210959556964 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello everyone,

I have spent some time trying to figure out the working configuration for being able to print on a network (postscript) printer oki5900dn.
I know its IP address.

But I haven't succeeded so far.

I prepared a PS file, say a.ps.
I removed the '!' letter from rc/bin/service/!tcp515, so now I have rc/bin/service/tcp515.
I added a line to /sys/lib/lp/devices like this:
oki next_door localhost tcp!192.113.32.182!9100 81920 post+duplex generic generic generic generic tcppost FIFO
... I don't quite fully understand this line, so this is probably where the problem is ...
Then I tried sth like:
lp -doki a.ps
... and it just says nothing...

I played with it for a while but without success.

Can anybody help?

Thanks
Ruda 
------=_Part_7979_1421321.1210959556964-- From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Fri, 16 May 2008 20:43:46 +0200 From: "Rudolf Sykora" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@9fans.net> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_8194_17604978.1210963426691" References: <7a9ef248630c3e47914a1fcc714982dd@yourdomain.dom> Subject: Re: [9fans] printing fom plan9 to OKI5900dn Topicbox-Message-UUID: aa4921f0-ead3-11e9-9d60-3106f5b1d025 ------=_Part_8194_17604978.1210963426691 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 16/05/2008, lawler.jack@gmail.com wrote: > > I think you can pattern your entry on the one for vogon in > /sys/lib/lp/devices. > I think your entry would be: > > oki next_door 192.113.32.182 oki5900dn - post+600dpi generic lpdspool lpd > - - FIFO > thanks, but doesn't help... :( (to be honest, your line seems to me to be even further from what I would expect to be correct than mine is :) -- but I may be completely wrong. What's the reason to mention oki5900dn in the line? At that place the address of the printer should be, which you shifted one field to the left and even removed the port. Moreover, you propose the system from which the files should be printed (3rd field) is the printer itself, opposed to my line, where it is my own computer...) R. ------=_Part_8194_17604978.1210963426691 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 16/05/2008, lawler.jack@gmail.com <lawler.jack@gmail.com> wrote:
I think you can pattern your entry on the one for vogon in /sys/lib/lp/devices.
I think your entry would be:

oki next_door 192.113.32.182 oki5900dn - post+600dpi generic lpdspool lpd - - FIFO

thanks, but doesn't help... :(
(to be honest, your line seems to me to be even further from what I would expect to be correct than mine is :) -- but I may be completely wrong. What's the reason to mention oki5900dn in the line? At that place the address of the printer should be, which you shifted one field to the left and even removed the port. Moreover, you propose the system from which the files should be printed (3rd field) is the printer itself, opposed to my line, where it is my own computer...)
R.
------=_Part_8194_17604978.1210963426691-- From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: From: erik quanstrom Date: Fri, 16 May 2008 15:08:28 -0400 To: 9fans@9fans.net In-Reply-To: a560a5d00805161039y7087b5b9tdf5487b205a5fb72@mail.gmail.com MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] printing fom plan9 to OKI5900dn Topicbox-Message-UUID: aa5600b4-ead3-11e9-9d60-3106f5b1d025 > I added a line to /sys/lib/lp/devices like this: > oki next_door localhost tcp!192.113.32.182!9100 81920 post+duplex generic > generic generic generic tcppost FIFO > ... I don't quite fully understand this line, so this is probably where the i believe you need to use the name of a cpu server n place of "localhost". - erik From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@9fans.net Subject: Re: [9fans] printing fom plan9 to OKI5900dn From: "Russ Cox" Date: Mon, 19 May 2008 15:00:54 -0400 In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Message-Id: <20080519190450.264F51E8C22@holo.morphisms.net> Topicbox-Message-UUID: ab33aff4-ead3-11e9-9d60-3106f5b1d025 > I have spent some time trying to figure out the working configuration for > being able to print on a network (postscript) printer oki5900dn. > I know its IP address. > > But I haven't succeeded so far. > > I prepared a PS file, say a.ps. > I removed the '!' letter from rc/bin/service/!tcp515, so now I > have rc/bin/service/tcp515. > I added a line to /sys/lib/lp/devices like this: > oki next_door localhost tcp!192.113.32.182!9100 81920 post+duplex ... If there is some machine that is already in charge of spooling to the printer, you would be better off handing the job to that machine instead of connecting directly to the printer, since many printers don't handle multiple connections on 9100 particularly gracefully. To hand the job to another machine via the fairly standard LPD protocol, see the "vogon" line in /sys/lib/lp/devices for an example. If you are going to set up your own machine as the one in charge of the printer (as you have tried), you have to use a resolvable address where you put "localhost". On Plan 9, "localhost" is not a known name--it doesn't make sense in config files, which are usually shared across many machines--and by default there is no network devices for 127.0.0.1. You can add an entry for your machine to /lib/ndb/local and then use your machine's name in the /sys/lib/lp/devices line. Russ From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Sun, 25 May 2008 17:14:14 +0200 From: "Rudolf Sykora" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@9fans.net> In-Reply-To: <20080519190450.264F51E8C22@holo.morphisms.net> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_431_12509400.1211728454479" References: <20080519190450.264F51E8C22@holo.morphisms.net> Subject: Re: [9fans] printing fom plan9 to OKI5900dn Topicbox-Message-UUID: ac62e5ca-ead3-11e9-9d60-3106f5b1d025 ------=_Part_431_12509400.1211728454479 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 2008/5/19 Russ Cox : > > I have spent some time trying to figure out the working configuration for > > being able to print on a network (postscript) printer oki5900dn. > > I know its IP address. > > > > But I haven't succeeded so far. > > > > I prepared a PS file, say a.ps. > > I removed the '!' letter from rc/bin/service/!tcp515, so now I > > have rc/bin/service/tcp515. > > I added a line to /sys/lib/lp/devices like this: > > oki next_door localhost tcp!192.113.32.182!9100 81920 post+duplex ... > > If there is some machine that is already > in charge of spooling to the printer, you > would be better off handing the job to > that machine instead of connecting directly > to the printer, since many printers don't handle > multiple connections on 9100 particularly > gracefully. To hand the job to another machine > via the fairly standard LPD protocol, see the > "vogon" line in /sys/lib/lp/devices for an > example. > > If you are going to set up your own machine > as the one in charge of the printer (as you have tried), > you have to use a resolvable address where you put > "localhost". On Plan 9, "localhost" is not a > known name--it doesn't make sense in config > files, which are usually shared across many > machines--and by default there is no network > devices for 127.0.0.1. > > You can add an entry for your machine to > /lib/ndb/local and then use your machine's name > in the /sys/lib/lp/devices line. > > Russ > > Thanks, R. > ------=_Part_431_12509400.1211728454479 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline

2008/5/19 Russ Cox <rsc@swtch.com>:
> I have spent some time trying to figure out the working configuration for
> being able to print on a network (postscript) printer oki5900dn.
> I know its IP address.
>
> But I haven't succeeded so far.
>
> I prepared a PS file, say a.ps.
> I removed the '!' letter from rc/bin/service/!tcp515, so now I
> have rc/bin/service/tcp515.
> I added a line to /sys/lib/lp/devices like this:
> oki next_door localhost tcp!192.113.32.182!9100 81920 post+duplex ...

If there is some machine that is already
in charge of spooling to the printer, you
would be better off handing the job to
that machine instead of connecting directly
to the printer, since many printers don't handle
multiple connections on 9100 particularly
gracefully.  To hand the job to another machine
via the fairly standard LPD protocol, see the
"vogon" line in /sys/lib/lp/devices for an
example.

If you are going to set up your own machine
as the one in charge of the printer (as you have tried),
you have to use a resolvable address where you put
"localhost".  On Plan 9, "localhost" is not a
known name--it doesn't make sense in config
files, which are usually shared across many
machines--and by default there is no network
devices for 127.0.0.1.

You can add an entry for your machine to
/lib/ndb/local and then use your machine's name
in the /sys/lib/lp/devices line.

Russ

Thanks, R.

------=_Part_431_12509400.1211728454479--