From owner-freebsd-questions@FreeBSD.ORG Fri Jul 18 23:19:51 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B2D75A9C for ; Fri, 18 Jul 2014 23:19:51 +0000 (UTC) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 72E342A94 for ; Fri, 18 Jul 2014 23:19:51 +0000 (UTC) Received: from r56.edvax.de (port-92-195-69-249.dynamic.qsc.de [92.195.69.249]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 8BDF43CC79; Sat, 19 Jul 2014 01:19:47 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id s6INJkMA002508; Sat, 19 Jul 2014 01:19:46 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sat, 19 Jul 2014 01:19:46 +0200 From: Polytropon To: Warren Block Subject: Re: printcap configuration problem Message-Id: <20140719011946.91061c9c.freebsd@edvax.de> In-Reply-To: References: <1405676044178-5929730.post@n5.nabble.com> <53C919E0.6070008@bananmonarki.se> <20140718183958.1864052a@rsbsd.rsb> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org, Beeblebrox X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jul 2014 23:19:51 -0000 On Fri, 18 Jul 2014 09:55:48 -0600 (MDT), Warren Block wrote: > In practice, it may be somewhat involved. Unless you change models of > printers frequently, it is probably easier to just manually set up the > filter to do what is desired. An existing printer configuration can be used to create a new one, or a variation (for example the same printer with and without duplex, or the use of tray 2, 3 or 4 instead of the default -> different printers to the system, so it's easy to select features according to the printer name). This can be done with individual printer filters (for PS + adding features like paper format definition, duplex or tray selection; PS to PCL; PS to Splix or whatever you need) stored as individual files. The use of $PRINTER makes it easy to switch the default printer - /etc/printcap doesn't need to be modified and "rebuilt" (cap_mkdb). For example, I have those: /opt/libexec/ps2pcl-dup.sh /opt/libexec/ps2pcl-nodup.sh /opt/libexec/ps2splix.sh They correspond to "Laserjet" (default per $PRINTER), "Laserjet-nodup", and "Samsung". The really fantastic thing is that you can name the printers as you wish, representing brand, model, features, or even location. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...