Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Oct 2007 20:16:18 -0700
From:      Martin Alejandro Paredes Sanchez <mapsware@prodigy.net.mx>
To:        freebsd-questions@freebsd.org
Subject:   Re: How to set up a network-attached printer
Message-ID:  <200710142016.18374.mapsware@prodigy.net.mx>
In-Reply-To: <20071014085536.B35972@wonkity.com>
References:  <20071014085536.B35972@wonkity.com>

index | next in thread | previous in thread | raw e-mail

El Dom 14 Oct 2007, Warren Block escribió:
> Create print queue dir:
>
>      mkdir -p /var/spool/lpd/netlaser
>      chmod 770 /var/spool/lpd/netlaser

       chown daemon:daemon /var/spool/lpd/netlaser

>
> Make /etc/printcap entry with rm= and rp= :
>
>      netlaser:\
>
>              :lp=:\
>              :sh:\
>              :mx#0:\
>              :rm=netlaser:\
>              :rp=raw:\
>              :sd=/var/spool/lpd/netlaser:\
>              :lf=/var/log/lpd-errs:

               :lf=/var/spool/lpd/netlaser/filter-errors:

since you are not specifying a filter for this printer, the lf capability may 
not be necessary, but since LPD will launch a process to send the print job 
to the networked printer, and this process will have:

stdin ---> to the print job
stdout --> (I really don't know)
stderr --> to the log file (lf capability)

I recommend that you had a log for each printer defined, and 
leave /var/log/lpd-errs for LPD errors

> For extra points, add another printcap entry for lp: that will print
> plain text.  /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.
>

I recommend apsfilter, but don't only read the documentation, also read the 
code of the filter.

maps


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200710142016.18374.mapsware>