From owner-freebsd-questions@FreeBSD.ORG Sun Oct 14 19:49:40 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 1B76F16A417 for ; Sun, 14 Oct 2007 19:49:40 +0000 (UTC) (envelope-from chris@monochrome.org) Received: from mail.monochrome.org (b4.ebbed1.client.atlantech.net [209.190.235.180]) by mx1.freebsd.org (Postfix) with ESMTP id B9D3D13C44B for ; Sun, 14 Oct 2007 19:49:39 +0000 (UTC) (envelope-from chris@monochrome.org) Received: from [192.168.1.11] (tripel [192.168.1.11]) by mail.monochrome.org (8.13.8/8.13.8) with ESMTP id l9EJUFKE021723; Sun, 14 Oct 2007 15:30:15 -0400 (EDT) (envelope-from chris@monochrome.org) Date: Sun, 14 Oct 2007 15:29:41 -0400 (EDT) From: Chris Hill To: Warren Block In-Reply-To: <20071014085536.B35972@wonkity.com> Message-ID: <20071014152136.L27592@tripel.monochrome.org> References: <20071014085536.B35972@wonkity.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed 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: Sun, 14 Oct 2007 19:49:40 -0000 On Sun, 14 Oct 2007, Warren Block wrote: [snip] > 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": By using various names separated by pipe symbols, they are all equivalent. Since one of them is lp, you can just send text to the printer and it works, e.g. $ lpr textfile I think that "lp" being the first entry makes it lpr's default; not positive about that. > /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. -- Chris Hill chris@monochrome.org ** [ Busy Expunging <|> ]