Hi there
> Does anyone know how to set up a remote non-ps printer. The specific
> printer we have is a laserjet 5 and it has a permanent IP address. I
> have succeeded in connecting to the printer, but the output I get is
> basically the raw postscript file. I guess I need some filter to send
> the file through. How do I set this up?
There are several way to do this.
You can install the `postscript filter' (a program which converts
postscript into something your printer undestands) local and then print
to a remote PCL queue, or install the filter remote and then print to a
remote PS queue.
For instance, I have a Lexmark which has been configured to emulate a
HP Laserjet II
The local printcap sending PS to the remote host;
lj-ps|Ps to remote filter:\
:rm=sput.sput.ldn:\
:rp=lj:\
:sd=/var/spool/lpd/lj-ps:\
:lp=/dev/null:\
:mx#0:\
:sh:
The remote printcap entry for PS to PCL filter;
lp|lj|Lexmark PS in PCL mode:\
:lp=/dev/null:\
:sd=/var/spool/lpd/lj:\
:if=/etc/filter.ps:\
:mx#0:\
:sh:
The filter itself;
#!/bin/bash
# HP Laserjet series II printer device
/usr/bin/gs -q -dSAFER -sDEVICE=laserjet -dNOPAUSE -sOutputFile=- - | \
/usr/bin/lpr -Plj-raw
The raw PCL queue;
lj-raw|Raw data in PCL mode:\
:lp=/dev/lp1:\
:sd=/var/spool/lpd/lj-raw:\
:mx#0:\
:sh:
Regards,
Rob
--
+----------------------------------------------------------------------+
| http://www.sput.signature.nl/spam-policy.html |
+----------------------------------------------------------------------+