View Single Post
  #2   (View Single Post)  
Old 12th March 2014
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

  1. You can inspect traffic between your lpd server and the printer with tcpdump(8).
  2. When I have used lpd(8) with a network printer, I have always a) set lp to null, and b) set rm to the network address of the printer, as highlighted in the example below. I have never used /etc/hosts.lpd.

    This particular example used foomatic-rip (a component of print/cups-filters) to pass a PPD file to a Postscript printer.
Code:
lp|printer:\
    :lp=:rm=printer:\
    :af=/etc/foomatic/hp-lj_300_400_color_m351_m451-ps.ppd:\
    :if=/usr/local/bin/foomatic-rip:\
    :sh:mx#0:\
    :sd=/var/spool/output:\
    :lf=/var/log/lpd-errs:
Reply With Quote