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>

next in thread | previous in thread | raw e-mail | index | archive | help
El Dom 14 Oct 2007, Warren Block escribi=F3:
> 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=3D and rp=3D :
>
>      netlaser:\
>
>              :lp=3D:\
>              :sh:\
>              :mx#0:\
>              :rm=3Dnetlaser:\
>              :rp=3Draw:\
>              :sd=3D/var/spool/lpd/netlaser:\
>              :lf=3D/var/log/lpd-errs:

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

since you are not specifying a filter for this printer, the lf capability m=
ay=20
not be necessary, but since LPD will launch a process to send the print job=
=20
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=20
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=
=20
code of the filter.

maps



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