From owner-freebsd-questions@FreeBSD.ORG Fri Sep 17 18:39:08 2010 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 8A2A910656AA for ; Fri, 17 Sep 2010 18:39:08 +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 447498FC12 for ; Fri, 17 Sep 2010 18:39:07 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.4/8.14.4) with ESMTP id o8HId7SS074244; Fri, 17 Sep 2010 12:39:07 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.4/8.14.4/Submit) with ESMTP id o8HId7JS074241; Fri, 17 Sep 2010 12:39:07 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Fri, 17 Sep 2010 12:39:07 -0600 (MDT) From: Warren Block To: Frank Shute In-Reply-To: <20100917171056.GA72692@orange.esperance-linux.co.uk> Message-ID: References: <20100917171056.GA72692@orange.esperance-linux.co.uk> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.6 (wonkity.com [127.0.0.1]); Fri, 17 Sep 2010 12:39:07 -0600 (MDT) Cc: questions@freebsd.org, Chabane HEMDANI Subject: Re: The nightmarish problem of installing a 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: Fri, 17 Sep 2010 18:39:08 -0000 On Fri, 17 Sep 2010, Frank Shute wrote: > I'm not going to tell you how to print with CUPS as it's too > complicated and fragile for my liking. Agreed. > Have you thought about using lpd(8)? If your printer can understand > Postscript (and I believe HP Laserjets can) then this can be a fairly > simple process as you just send the raw PS to the printer with lpr(1) > via a spool and filter. > > My filter: > > #!/bin/sh > > cat - > echo "\f" > > # That might not even be necessary; it just adds a formfeed to the job, which PostScript doesn't need. Helps with some PCL jobs, and PS printers usually do PCL also. > and my printcap(5) isn't overly complicated either and the format is > well documented in it's manpage. My lpd doc is an attempt to put everything about lpd in one place, with simple but complete examples: http://www.wonkity.com/~wblock/docs/html/lpdprinting.html