[9fans] Printing to PS printer - solution

  • Follow


Hi,

here are my notes on how I got my postscript printer working:

Printer: OKI B430dn (Network printer)

Working printing configuration:

1. Add printer to /lib/ndb/local
sys=okidr ip=192.168.2.191

okidr=Name for the printer
ip= IP Address of the printer

check with: ip/ping okidr

2. Add printer entry to /sys/lib/lp/devices
oki2    office    okidr    raw    - post2+600dpi+nohead    generic  
  lpdspool    lpd    -    -    FIFO

3. Check
lp -q -doki2 (this works only as user bootes on my system)

It should show you:
transmission log:
: 100.00% sent
9232 bytes sent, status: waiting for end of job
9232 bytes sent, status: end of job

printer queue:
connecting to tcp!okidr!printer
 trying from port 721...connected
Ready
no entires

4. Print Postscript files:

lp -doki2 test.ps


Regadrs,
Wolfgang


0
Reply woku (19) 2/7/2010 4:58:00 PM

On 7 February 2010 18:56, Wolfgang Kunz <woku@hush.com> wrote:
> Hi,
>
> here are my notes on how I got my postscript printer working:
>
> Printer: OKI B430dn (Network printer)
>
> Working printing configuration:
>
> 1. Add printer to /lib/ndb/local
> sys=3Dokidr ip=3D192.168.2.191
>
> okidr=3DName for the printer
> ip=3D IP Address of the printer
>
> check with: ip/ping okidr
>
> 2. Add printer entry to /sys/lib/lp/devices
> oki2 =A0 =A0office =A0 =A0okidr =A0 =A0raw =A0 =A0- post2+600dpi+nohead =
=A0 =A0generic
> =A0lpdspool =A0 =A0lpd =A0 =A0- =A0 =A0- =A0 =A0FIFO
>
> 3. Check
> lp -q -doki2 (this works only as user bootes on my system)
>
> It should show you:
> transmission log:
> : 100.00% sent
> 9232 bytes sent, status: waiting for end of job
> 9232 bytes sent, status: end of job
>
> printer queue:
> connecting to tcp!okidr!printer
> =A0trying from port 721...connected
> Ready
> no entires
>
> 4. Print Postscript files:
>
> lp -doki2 test.ps
>
>
> Regadrs,
> Wolfgang

Thanks a lot for this!
Ruda

0
Reply rudolf.sykora (401) 8/12/2010 12:46:17 PM


Hello,

Following the instructions I am able to print from my plan 9 machine
on a network printer Oki 5900dn. The problem left, however, is that it
doesn't print duplex, though it could (and does from linux). I tried
to add +duplex into the relevant field in the /sys/lib/devices file,
but that lead to no change. I tried to add the on-line option
-iduplex, again no change (still prints simplex) but adds the message
"illegal option '-i duplex' ignored".

Can anybody help? Why do I need a spooler for a network printer?
What's the difference between lpdspool/generic/nospool/...

[my line in the devices file now reads:
okipr next_door oki raw - post2+600dpi+nohead+duplex generic lpdspool
lpd - - FIFO

Thanks
Ruda


On 7 February 2010 18:56, Wolfgang Kunz <woku@hush.com> wrote:
> Hi,
>
> here are my notes on how I got my postscript printer working:
>
> Printer: OKI B430dn (Network printer)
>
> Working printing configuration:
>
> 1. Add printer to /lib/ndb/local
> sys=3Dokidr ip=3D192.168.2.191
>
> okidr=3DName for the printer
> ip=3D IP Address of the printer
>
> check with: ip/ping okidr
>
> 2. Add printer entry to /sys/lib/lp/devices
> oki2 =A0 =A0office =A0 =A0okidr =A0 =A0raw =A0 =A0- post2+600dpi+nohead =
=A0 =A0generic
> =A0lpdspool =A0 =A0lpd =A0 =A0- =A0 =A0- =A0 =A0FIFO
>
> 3. Check
> lp -q -doki2 (this works only as user bootes on my system)
>
> It should show you:
> transmission log:
> : 100.00% sent
> 9232 bytes sent, status: waiting for end of job
> 9232 bytes sent, status: end of job
>
> printer queue:
> connecting to tcp!okidr!printer
> =A0trying from port 721...connected
> Ready
> no entires
>
> 4. Print Postscript files:
>
> lp -doki2 test.ps
>
>
> Regadrs,
> Wolfgang
>
>
>

0
Reply rudolf.sykora (401) 8/15/2010 3:44:03 PM

2 Replies
88 Views

(page loaded in 0.041 seconds)

Similiar Articles:













7/25/2012 10:08:48 AM


Reply: