Skip to content

Instantly share code, notes, and snippets.

@rkujawa
Created March 9, 2017 20:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rkujawa/649a8325f67b32465fa1035f2e84a538 to your computer and use it in GitHub Desktop.
Save rkujawa/649a8325f67b32465fa1035f2e84a538 to your computer and use it in GitHub Desktop.
Using Brother HL-L2360DW on NetBSD
$ cat /etc/printcap | grep '^[^#]'
ps|Brother:\
        :lp=:lf=/var/log/lpd-errs:mx#0:sh:\
        :sd=/var/spool/output/lpd/ps:\
        :rm=BRWxxxxxxxxxxxx.local:\
        :rp=pcl_p1:\
        :if=/opt/printing/filter-ps2pcl.sh:
$ cat /opt/printing/filter-ps2pcl.sh
#!/bin/sh
/usr/pkg/bin/gs -q -dNOPAUSE -sDEVICE=pxlmono -sOutputFile=- -

$ cat /etc/rc.conf  | grep ^lpd
lpd=YES
lpd_flags="-r -s"
mdnsd=YES
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment