Date: Thu, 9 Mar 1995 22:49:58 +0100 (MET) From: Ollivier Robert <Ollivier.Robert@keltia.frmug.fr.net> To: freebsd-hackers@FreeBSD.org (FreeBSD Hackers' list) Subject: /etc/printcap for Deskjet 500 and gs Message-ID: <199503092149.WAA02074@keltia.frmug.fr.net>
next in thread | raw e-mail | index | archive | help
Here is my /etc/printcap file
------------------------------------------------------------
# @(#)printcap 5.3 (Berkeley) 6/30/90
deskjet|lp|hp|local line printer:\
:lp=/dev/lpt0n:sd=/var/spool/lp:lf=/var/log/lpd-errs:\
:pw#80:pl#64:sb:sh:\
:if=/usr/libexec/lpr/lpf2:
ps|djps|local printer with Postscript:\
:lp=/dev/lpt0n:sd=/var/spool/ps:lf=/var/log/lpps-errs:\
:pw#80:pl#64:sb:sh:\
:if=/usr/libexec/lpr/ps2dj:\
:mx#0:sf:
------------------------------------------------------------
The first entry is for text printing. The filter just converts LF into
CR+LF. Now that I don't have DOS any more I could modify the printer's
jumpers but I'm too lazy :-)
The /dev/lpt0n -- which I recreate by hand -- is for stopping the driver of
resetting the printer each time... The minor is 16.
crw-rw---- 1 root wheel 16, 0 Feb 4 17:31 /dev/lpt0
crw-rw---- 1 root wheel 16, 16 Mar 9 22:19 /dev/lpt0n
I'm afraid I don't have the source of lpf2 anymore but it should not be too
difficult to recreate :
-r-xr-xr-x 1 root wheel 24576 Dec 31 1992 /usr/libexec/lpr/lpf2*
It is a 386BSD executable :-)
The second entry is for PS printing. Just specify "lpr -Pps something".
The "source" for ps2dj follows too.
------------------------------------------------------------
#!/bin/sh
exec /usr/local/bin/gs -q -sDEVICE=djet500 -sPAPERSIZE=a4 -dNOPAUSE -sOutputFile=- -
------------------------------------------------------------
You just have to replace the printer name in the script to suit your own
model.
I could -- and should -- use Klemmer's package which by far better than
that but the principle "if it ain't broken, don't fix it" just suits me.
--
Ollivier ROBERT -=- The daemon is FREE! -=- roberto@keltia.frmug.fr.net
FreeBSD keltia 2.1.0-Development #5: Wed Mar 8 23:56:33 MET 1995
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199503092149.WAA02074>
