Parallel port printing on 5.1

Poul-Henning Kamp phk at phk.freebsd.dk
Thu Feb 12 12:54:43 PST 2004


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.


More information about the freebsd-current mailing list