From owner-freebsd-questions@FreeBSD.ORG Sun Aug 24 23:54:33 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 99F74E1B for ; Sun, 24 Aug 2014 23:54:33 +0000 (UTC) Received: from nlpiport18.prodigy.net.mx (nlpiport18.prodigy.net.mx [148.235.52.18]) by mx1.freebsd.org (Postfix) with ESMTP id 5EA39321B for ; Sun, 24 Aug 2014 23:54:32 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.04,393,1406610000"; d="scan'208";a="1008490055" Received: from nlpiport20.prodigy.net.mx ([148.235.52.90]) by nlpiport18.prodigy.net.mx with ESMTP; 24 Aug 2014 18:49:24 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AokRAAZ5+lO9qqdB/2dsb2JhbABZgw1TV41WoUYBAQEBAQEGhD2YZIIWhTcBgQsXd4QEAQQBVjMLIRMSDyoeBgESCYgxCgvBDReFfIh/AQFWhEwFiyKRJgGVDIN+HS+BCAcXBoEjAQEB Received: from dsl-189-170-167-65-dyn.prod-infinitum.com.mx (HELO morena.maps.net) ([189.170.167.65]) by nlpiport20.prodigy.net.mx with SMTP; 24 Aug 2014 18:49:23 -0500 Date: Sun, 24 Aug 2014 16:49:23 -0700 From: Martin Alejandro Paredes Sanchez To: Beeblebrox , 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> <53C919E0.6070008@bananmonarki.se> <20140718183958.1864052a@rsbsd.rsb> <20140727221419.35efb9b0@morena.maps.net> <1406966714419-5934110.post@n5.nabble.com> <1406986762673-5934162.post@n5.nabble.com> <20140803083513.47e21f3b@rsbsd.rsb> <20140807225729.69db80ef@morena.maps.net> <20140819090205.111cba9a@rsbsd.rsb> X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.22; i386-portbld-freebsd10.0) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Aug 2014 23:54:33 -0000 El Tue, 19 Aug 2014 09:02:05 +0300 Beeblebrox 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