- You can inspect traffic between your lpd server and the printer with tcpdump(8).
- 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: