Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Feb 2004 21:54:40 +0100
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        Chris <chris@tellme3times.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Parallel port printing on 5.1 
Message-ID:  <28502.1076619280@critter.freebsd.dk>
In-Reply-To: Your message of "Thu, 12 Feb 2004 15:40:32 EST." <402BE4C0.3090604@tellme3times.com> 

next in thread | previous in thread | raw e-mail | index | archive | help

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@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?28502.1076619280>