From owner-freebsd-questions Tue Mar 4 16:13:54 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0214237B401 for ; Tue, 4 Mar 2003 16:13:53 -0800 (PST) Received: from wonkity.com (wonkity.com [65.173.111.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2128843F3F for ; Tue, 4 Mar 2003 16:13:52 -0800 (PST) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.12.6/8.12.6) with ESMTP id h250Dp1Y057209; Tue, 4 Mar 2003 17:13:51 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.12.6/8.12.6/Submit) with ESMTP id h250DoPb057200; Tue, 4 Mar 2003 17:13:50 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Tue, 4 Mar 2003 17:13:49 -0700 (MST) From: Warren Block To: Darren Spruell Cc: questions@FreeBSD.ORG Subject: Re: printing to HP LaserJet 4050 TN In-Reply-To: <3E64E658.5080108@sento.com> Message-ID: <20030304170655.O45239@wonkity.com> References: <3E64E658.5080108@sento.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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, 4 Mar 2003, Darren Spruell wrote: > We have this printer set up to print to from the network and I have > printed to it by IP address before. It is connected to a Windows server > but I would like to print directly to it by IP from my fbsd 4.7 box. > > I have installed the cups-base, cups-pstoraster, and ghostscript-gnu > packages. Afterwards I looked through the Handbook but didn't see > anything that cleared up the process of configuring this printer. It's a PostScript printer, so you shouldn't need ghostscript. I can't help you with CUPS, never tried it. Good old ordinary printcap entries work fine: lpraw:\ :lp=:\ :sh:\ :mx#0:\ :rm=laser:\ :rp=raw:\ :sd=/var/spool/output/lpd/lpraw:\ :lf=/var/log/lpd-errs: After creating the spool directory (sd=) and entering an IP address for "laser" in /etc/hosts, this works fine. This is just for sending raw PostScript output, of course. The queue name is lpraw, so you'd print to it with # lpr -Plpraw postscriptfile.ps My lp queue runs through a little Perl program that detects PostScript and passes it through. Text is formatted with enscript and then printed. I can post the whole setup if you'd like. -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