Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Mar 1995 12:25:25 +0100
From:      Gary Palmer <gary@palmer.demon.co.uk>
To:        Shane Anderson <shane@et.pronex.com>
Cc:        questions@FreeBSD.org
Subject:   Re: Line Printer HPDJ 500 
Message-ID:  <1209.796562725@palmer.demon.co.uk>
In-Reply-To: Your message of "Wed, 29 Mar 1995 14:54:13." <324@et.pronex.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <324@et.pronex.com>, Shane Anderson writes:
>My system did not install a device "lp" ... so ... i have tried
>hacking the printcap to send to lpt0, which resulted in print jobs
>with no text written - pages of blanks.  The USENIX 4.4 System
>Manager's Manual gives few examples.  I am running a Deskjet 500
>on my first parallel port.  Any help or pointers to FAQ's or other
>docs would be great... 

Probably a ``feature'' in the deskjet, not the printcap. The deskjet
(I know - I have a 500 also :-) ) is DOS orientated, and needs 
<CR><LF> as a line-feed char, FreeBSD just sends <LF>. This means
the carriage never returns to the left hand side, and any text gradually
walks off the right hand side of the page. The solution is to install
`apsfilter', which is a shell script (not part of the system yet), which
corrects the output from the lpd to match the deskjet's broken worldiew.

My /etc/printcap reads:

#	@(#)printcap	5.3 (Berkeley) 6/30/90

lp|djet500|local line printer:\
	:lp=/dev/lpt0:sd=/var/spool/lpd:lf=/var/log/lpd-errs:sh:sf:\
	:if=/usr/local/bin/apsfilter:df=/usr/local/bin/apsfilter:

If you want the filter, drop me a line.

Gary



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