Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Jul 2014 06:07:01 -0600 (MDT)
From:      Warren Block <>
To:        Beeblebrox <>
Subject:   Re: printcap configuration problem
Message-ID:  <>
In-Reply-To: <>
References:  <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Fri, 18 Jul 2014, Beeblebrox wrote:

> Hi.
> Cups has been borked for some time, so I must use lpd. Several problems when
> configuring /etc/printcap however. So far what I have:
> 1 HP2100tn:rm=\
> 2  :sd=/var/spool/lpd/hp2100:lf=/var/log/lpd-errs:\
> 3  :if=/usr/local/libexec/lf2crlf:\
> 4  :mx#0:sh:
> The Problems:
> * Line 1 fails completely with "lpr: lp: unknown printer" when using any
> name other than "lp". Tried:
> NO: HP2100tn:lp=9100@\
> NO: HP2100tn:lp=9100@\
> WORKS: lp:lp=9100@\
> WORKS: lp:rm=\

"lp" is the default printer name.  To use another name, that name must 
be given to lpr with -P: lpr -PHP2100tn

Multiple names can be given to a single printer, so one way to get 
around that is to use lp and the other name:


> * I need to specify below options. Placing in /etc/printcap (line 1) as
> lp;r=300x300;q=draft;c=gray;p=a4;m=auto:\

These are CUPS options.  Standard lpd does not understand them.

>   :rm=\
> results in the same "unknown printer" error. I need to either find the
> correct syntax for printcap or I could modify /usr/local/libexec/lf2crlf,
> which has:
> #!/bin/sh
> CR=$'\r'
> /usr/bin/sed -e "s/$/${CR}/g"
> ## will A4 size info here work?
> #page_width=
> #page_height=
> #border=

The page size does not have anything to do with the printer name. 
Unless you're trying to set up multiple names that do different things, 
which can be useful.

> Printer: HP LaserJat 2100, PS-level-2

Want to link to this message? Use this URL: <>