From owner-freebsd-questions Tue May 28 12:43:59 2002 Delivered-To: freebsd-questions@freebsd.org Received: from chen.org.nz (chen.org.nz [210.54.19.51]) by hub.freebsd.org (Postfix) with ESMTP id E86CF37B400 for ; Tue, 28 May 2002 12:43:52 -0700 (PDT) Received: from grimoire.chen.org.nz (localhost [127.0.0.1]) by chen.org.nz (8.12.3/8.12.3) with ESMTP id g4SJhXNg060150; Wed, 29 May 2002 07:43:33 +1200 (NZST) (envelope-from jonc@grimoire.chen.org.nz) Received: (from jonc@localhost) by grimoire.chen.org.nz (8.12.3/8.12.3/Submit) id g4SJhX0M060149; Wed, 29 May 2002 07:43:33 +1200 (NZST) Date: Wed, 29 May 2002 07:43:33 +1200 From: Jonathan Chen To: gjh292@263.net Cc: freebsd-questions@FreeBSD.ORG Subject: Re: How to Configure a HP Laserjet Printer to Use Message-ID: <20020529074333.A60075@grimoire.chen.org.nz> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from gaojhn@hotmail.com on Tue, May 28, 2002 at 06:08:40PM +0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, May 28, 2002 at 06:08:40PM +0800, Jianhong Gao wrote: > I've just configured a HP Laserjet 5L to my computer running Freebsd 4.2. > The hardware configuration seems to be ok. But I just don't know how to > print to it. When I run "lptest > /dev/lpt0", the output is just a line of > characters including something untelligible. After setupping > /etc/printcap(without any filter specified) and invoking lpd, "lptest | lpr" > get the same result. When I try to print sth. to it, using "ps | lpr" or > "myls | lpr" or "lpr -r myfile", though the paper is fed in, nothing is > printed. I've consulted quite lots of books as well as handbook listed on > the site, but I still got no idea about how to solve this problem. Is there > some special filter I should use to make my HP laserjet printer work > correctly? If so, what's it and where can I get it? Your problemm is described in the Handbook. It's the staircase effect, since text files contain a newline, whereas the printer requires a carriage-return + newline to print properly. To print standard text files you need a filter. Try the print/apsfilter port. -- Jonathan Chen ---------------------------------------------------------------------- Experience is a hard teacher because she gives the test first, the lesson afterwards To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message