Setting up LPD

Devuan/ascii

LPRNG Install

apt install foomatic-db foomatic-db-engine foomatic-db-gutenprint foomatic-filters foomatic-filters-beh
#foomatic-db-compressed-ppds
apt install libpoppler-cil enscript ghostscript
apt install lprng lprng-doc

Note. BSD LPD is also available on Debian,

#apt install lpr

LPRNG Config

Talking RFC1179 (LPD) to the remote printer xerox,

cd /usr/share/doc/lprng/examples
gunzip *

nmap -p 515 xerox

cd /etc/
vi printcap

.common:
   :sd=/var/spool/lpd/%P
   :sh:mx=0:mc=0

lp:tc=.common:lp=lp@xerox

/etc/init.d/lprng status

Usage

printf test\\ntest\\n | lpr
printf test\\nenscript\\n | enscript

References