Re: Parallel port printing on 5.1

From: Poul-Henning Kamp <phk_at_phk.freebsd.dk>
Date: Thu, 12 Feb 2004 21:54:40 +0100
I'm using this with my printers on 5.2:

ink|hp1220|hp1220c:\
        :mx#0:\
        :sh:sf:\
        :if=/usr/local/libexec/hp1220:\
        :lp=/dev/ulpt0:sd=/var/spool/output/ink:lf=/var/log/lpd-errs:


/usr/local/libexec/hp1220:

        /usr/local/bin/gs -dSAFER -dNOPAUSE \
                -q \
                -sDEVICE=ijs \
                -sIjsServer=/usr/local/bin/hpijs \
                -dIjsUseOutputFD \
                -sDeviceModel="DESKJET 1220" \
                -dPrintmode=1 \
                -sPAPERSIZE=a4 \
                -r300 \
                -sOutputFile=- - | dd obs=8k && exit 0

The dd(1) trick used to make things go a lot faster on USB, I don't know
if it is still necessary.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk_at_FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.
Received on Thu Feb 12 2004 - 11:54:43 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:42 UTC