Date: Sat, 19 Jul 2014 01:19:46 +0200 From: Polytropon <freebsd@edvax.de> To: Warren Block <wblock@wonkity.com> Cc: freebsd-questions@freebsd.org, Beeblebrox <zaphod@berentweb.com> Subject: Re: printcap configuration problem Message-ID: <20140719011946.91061c9c.freebsd@edvax.de> In-Reply-To: <alpine.BSF.2.11.1407180952160.39487@wonkity.com> References: <1405676044178-5929730.post@n5.nabble.com> <alpine.BSF.2.11.1407180554080.77290@wonkity.com> <53C919E0.6070008@bananmonarki.se> <alpine.BSF.2.11.1407180725500.77290@wonkity.com> <20140718183958.1864052a@rsbsd.rsb> <alpine.BSF.2.11.1407180952160.39487@wonkity.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140719011946.91061c9c.freebsd>