Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Sep 1998 15:51:48 +0200 (CEST)
From:      Konrad Heuer <kheuer@gwdu60.gwdg.de>
To:        Peng ZhengWen <zhwpeng@stc.sh.cn>
Cc:        "'freebsd-questions@FreeBSD.ORG'" <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Print Files With HP LaserJet 5L
Message-ID:  <Pine.BSF.3.96.980910153056.21847A-100000@gwdu60.gwdg.de>
In-Reply-To: <01BDDCF7.2423CA00@ws2.stc.sh.cn>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 10 Sep 1998, Peng ZhengWen wrote:

>   How to print files with HP LaserJet 5L under FreeBSD 2.2.5?

The FreeBSD handbook contains a well-written chapter about printer setup. 
If your printer doesn't have a PostScript interpreter you need ghostscript
to convert PostScript to PCL; your input filter should be something like: 

#!/bin/sh

exec 3>&1 1>&2
gs -dFIXEDMEDIA -dNOPAUSE -dSAFER -r300x300 -sDEVICE=laserjet \
-sOutputFile="| $CAT 1>&3" -sPAPERSIZE=a4 -q -


If your printer is connected to the network by a JetDirect interface, send 
the data to tcp port 9100 (the handbook helps).

Konrad Heuer

// Gesellschaft fuer wissenschaftliche Datenverarbeitung mbH
// Goettingen (GWDG), Am Fassberg, D-37077 Goettingen, Germany
//
// kheuer@gwdu60.gwdg.de


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.3.96.980910153056.21847A-100000>