Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Sep 2002 18:08:20 -0600 (MDT)
From:      Warren Block <wblock@wonkity.com>
To:        Louis LeBlanc <leblanc+freebsd@keyslapper.org>
Cc:        FreeBSD Questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Printing to network printers . . .
Message-ID:  <Pine.BSF.4.21.0209101752000.41319-100000@wonkity.com>
In-Reply-To: <20020910190705.GG14615@keyslapper.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 10 Sep 2002, Louis LeBlanc wrote:

> Hey folks.  I'm sure someone has this one solved, so I've decided to
> ask it here before putting another week of effort and confusion.
> 
> I'm trying to get FreeBSD 4.6.2-RELEASE to print to an HP laserjet
> 4050tn printer.  The printer is networked with its own spooling card
> (Jetdirect or some such thing).
> 
> I Have the following in my /etc/printcap:
> lp|laserjet:\
>         :rm=209.58.140.26:\
>         :sd=/var/spool/lpd/lp:\
>         :lp=:rp=raw:
> 
> and I'm able to print postscript (finally) except it scales to 2 pages
> per sheet - great when you're just trying to scan code out in the
> hammock, but not when you're printing your vacation request.

What kind of PostScript are you sending?  If it's from some utility like
enscript, that utility may be doing the 2-up printing.  Otherwise, there
may be an option set in the printer menus.  (I regularly use a bunch of
4050s, but I've never seen this.  But then, I never went looking for it,
either.)

Does anyone else use this printer, or is it new?  If you can, telnet to
the JetDirect and turn off header pages and unneeded protocols.
 
> Anyway, trying to print text just gives me a blank page with '----'
> across the top, and a basic burst page with User, Host, Class, and
> Job.

"Auto" language detection may not be enabled or working very well.  
Check through the menu options on the printer.

Here's a known-good /etc/printcap entry that I use with HP4050 and other
network laser printers (replace printername with your address or printer
host name):

lp:\
	:lp=:\
	:sh:\
	:mx#0:\
	:rm=printername:\
	:rp="raw":\
	:lf=/var/log/lpd-errs:\
	:sd=/var/spool/output/lpd/printername:

I've read that /var/spool/lpd was deprecated, and /var/spool/output/lpd
was the way to go.  But I seem to be the only one that read that. 8-)

lpr myfile.ps

or

lpr -Plp myfile.ps

should print fine with this.

-Warren Block * Rapid City, South Dakota USA


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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