From owner-freebsd-questions@FreeBSD.ORG Mon Oct 15 02:26:43 2007 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 825D816A417 for ; Mon, 15 Oct 2007 02:26:43 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 251E313C480 for ; Mon, 15 Oct 2007 02:26:42 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.1/8.14.1) with ESMTP id l9F2Qgpt037894; Sun, 14 Oct 2007 20:26:42 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.1/8.14.1/Submit) with ESMTP id l9F2QflP037891; Sun, 14 Oct 2007 20:26:41 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Sun, 14 Oct 2007 20:26:41 -0600 (MDT) From: Warren Block To: Chris Hill In-Reply-To: <20071014152136.L27592@tripel.monochrome.org> Message-ID: <20071014200749.N37845@wonkity.com> References: <20071014085536.B35972@wonkity.com> <20071014152136.L27592@tripel.monochrome.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (wonkity.com [127.0.0.1]); Sun, 14 Oct 2007 20:26:42 -0600 (MDT) Cc: questions@freebsd.org, perryh@pluto.rain.com Subject: Re: How to set up a network-attached printer X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Oct 2007 02:26:43 -0000 On Sun, 14 Oct 2007, Chris Hill wrote: > On Sun, 14 Oct 2007, Warren Block wrote: > >> For extra points, add another printcap entry for lp: that will print plain >> text. > > I did something essentially identical to what Warren outlined, and it's > worked fine for many years now, since long before I'd ever heard of CUPS. > Here's the printcap entry: > > # HP color laser > lp|snow|snowball|lj|ps|HP ColorLaserJet 4550N:\ > :sh:\ > :sd=/var/spool/output/lpd:\ > :mx#0:\ > :lp=:rm=snowball:rp="auto": Some printers are pickier about the queue name than others; depends on the print server. > By using various names separated by pipe symbols, they are all equivalent. There's not much reason to have more than one name for a printer. I use lp for text-only queues, and other names for non-text queues. > Since one of them is lp, you can just send text to the printer and it works, > e.g. > > $ lpr textfile >> /usr/ports/print/enscript* is nice for that, or lots of people use >> /usr/ports/print/apsfilter so they can send about anything to the printer >> and let it do the conversion. > > The printer should already know how to print text. Just send it via lpr; no > additional software needed. Sometimes, depending on the printer. Without a text filter, you might get the stairstep effect described in the handbook Troubleshooting section. enscript is nice because it does page numbers and titles and other formatting. -Warren Block * Rapid City, South Dakota USA