How to set up a network-attached printer

Martin Alejandro Paredes Sanchez mapsware at
Sun Oct 14 21:22:19 PDT 2007

El Dom 14 Oct 2007, Chris Hill escribió:
> On Sun, 14 Oct 2007, Warren Block wrote:
> > For extra points, add another printcap entry for lp: that will print
> > plain text.
> I did something essentially identical to what Warren outlined, and it's
> worked fine for many years now, since long before I'd ever heard of
> CUPS. Here's the printcap entry:
> # HP color laser
> lp|snow|snowball|lj|ps|HP ColorLaserJet 4550N:\
>          :sh:\
>          :sd=/var/spool/output/lpd:\
>          :mx#0:\
>          :lp=:rm=snowball:rp="auto":
> By using various names separated by pipe symbols, they are all
> equivalent. Since one of them is lp, you can just send text to the
> printer and it works, e.g.
>   $ lpr textfile

A name of lp don't make a printer to print text files, it just save you to 
specify the printer (the -P option of lpr)

> I think that "lp" being the first entry makes it lpr's default; not
> positive about that.

It is not necessary be the first alias, it can be in any position, in my case 
I have:

stylus-c65|lp|Epson Stylus C65:\

> > /usr/ports/print/enscript* is nice for that, or lots of people use
> > /usr/ports/print/apsfilter so they can send about anything to the
> > printer and let it do the conversion.
> The printer should already know how to print text. Just send it via lpr;
> no additional software needed.

Not all the printer know how to print text, but if the Samsung ML-2571N 
doesn't print text, I would use apsfilter.

I know that all HP LaserJet support PCL and text, some models also support 
PostScript, I see you use rp="auto" for your HP LaserJet 4550N, I had only 
use rp=raw and I also know that can be rp=text (to convert CR -> CRLF) but I 
never used.


More information about the freebsd-questions mailing list