printcap configuration problem (if-MAPS 1/4)

Martin Alejandro Paredes Sanchez mapsware at
Sun Aug 24 23:54:33 UTC 2014

El Tue, 19 Aug 2014 09:02:05 +0300
Beeblebrox <zaphod at> escribió:
> Hello Alejandro,

Hello Beeblebrox

> 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

> * 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= 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
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:\\

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

More information about the freebsd-questions mailing list