Setup HP Laserjet 1120m over network with LPD

Mark Felder feld at FreeBSD.org
Thu Aug 22 14:56:01 UTC 2013



On Thu, Aug 22, 2013, at 8:19, Juris Kaminskis wrote:
> 
> generally i would prefer to stick with the native freebsd printing system
> which is LPD
>

As you should! CUPS is horrible... I also use apsfilter. I can print
almost any file I want just by doing lpr filename

apsfilter's generated config required some hand tweaking by me, but
here's an example I'll drop for you:

/etc/printcap:

netlaser|netlaser;r=600x600;q=medium;c=gray;p=letter;m=auto:\
    :lp=9100 at netlaser:\
    :if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\
    :sd=/var/spool/lpd/netlaser:\
    :lf=/var/spool/lpd/netlaser/log:\
    :af=/var/spool/lpd/netlaser/acct:\
    :mx#0:\
    :sh:

/etc/hosts:

192.168.94.5 netlaser

/usr/local/etc/apsfilter/netlaser/apsfilterrc:

#
# don't delete these settings
#
PRINTER='PS'
PAPERSIZE='letter'
METHOD='auto'
QUALITY='medium'
COLOR='gray'
RESOLUTION='600x600'
# apsfilter as jukebox
# important if audio playback device is a network print queue
# INTERFACE='network'
INTERFACE='network'


And then I think I just had to create /var/spool/lpd/netlaser with
ownership root:daemon and 755


After that I think restarting lpd and it just works?



More information about the freebsd-questions mailing list