Date: Sun, 24 Aug 2014 16:49:23 -0700 From: Martin Alejandro Paredes Sanchez <mapsware@prodigy.net.mx> To: Beeblebrox <zaphod@berentweb.com>, freebsd-questions@freebsd.org Subject: Re: printcap configuration problem (if-MAPS 1/4) Message-ID: <20140824164923.43152843@morena.maps.net> In-Reply-To: <20140819090205.111cba9a@rsbsd.rsb> 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> <20140727221419.35efb9b0@morena.maps.net> <1406966714419-5934110.post@n5.nabble.com> <1406986762673-5934162.post@n5.nabble.com> <alpine.BSF.2.11.1408021027580.67716@wonkity.com> <20140803083513.47e21f3b@rsbsd.rsb> <20140807225729.69db80ef@morena.maps.net> <20140819090205.111cba9a@rsbsd.rsb>
next in thread | previous in thread | raw e-mail | index | archive | help
El Tue, 19 Aug 2014 09:02:05 +0300 Beeblebrox <zaphod@berentweb.com> escribi=F3: > Hello Alejandro, Hello Beeblebrox >=20 > So far what I have: > * printcap setup complete, no problems. Printer supports PS level-2 That means that we can setup a PostScrip printer in this case or use the driver "pxlmono" recommended by OpenPrinting http://www.openprinting.org/printer/HP/HP-LaserJet_2100 > * I would prefer not to install and have to learn/maintain a 3rd or > 4th package to get the job done, so preferably no lprng/printtools if > I can avoid it. That was one of my objectives, if FreeBSD has a print spool manager LPR/LPD use it and avoid installing CUPS, LPRng > > What are you printing? > From what program? > Many things put mostly ps/pdf/text. My filter can handle this 3 formats OK > > You should try apsfilter > Already using enscript. apsfilter is an input-filter or text filter compatible with LPD In the printcap if=3D identifies the input filter that will be used Enscript converts ASCII files to PostScript, HTML, or RTF (is not a filter), not compatible with LPD > * I need a filter where I can a) set HWresolution, and b) set pages > per sheet, like 4 pages of pdf file on one A4 sheet, landscape mode, > minimum or no margins between pages so as to minimize white space. Let's see if we can handle this options =20 First, create a directory for the new spool root# mkdir -p /var/spool/lpd/lj2100 root# chmod 770 /var/spool/lpd/lj2100 root# touch /var/spool/lpd/lj2100/filter-errors root# touch /var/spool/lpd/lj2100/if-MAPS.MappingOptions root# touch /var/spool/lpd/lj2100/if-MAPS.conf root# chmod 660 /var/spool/lpd/lj2100/* root# chown -R daemon:daemon /var/spool/lpd/lj2100 Add this entry in your /etc/printcap lj2100|lp|HP LaserJet 2100TN:\ :tty.device=3D:remote.host=3D192.168.1.9:remote.queue=3Draw:\ :filt.input=3D/usr/local/bin/if-MAPS:\ :spool.log=3D/var/spool/lpd/lj2100/filter-errors:\ :spool.dir=3D/var/spool/lpd/lj2100:\ :max.blocks=3D0:banner.disable: To validate the printacap, run: root# chkprintcap If there are no errors, Nothing is going to be printed to screen This is the 1st of 4 mail
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140824164923.43152843>