Configuring LPR

From SlugWiki
Revision as of 23:26, 25 August 2015 by Ivanaf (Talk | contribs) (3 revisions imported)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Install lprng, ifhp

/etc/lprng/printcap

To print to a printer with a JetDirect:

 juntonian|:
 :lp=juntonian.bemix%9100:
 :ifhp=model=hp8000:
 :filter=/usr/lib/ifhp/ifhp:
 :sd=/var/spool/lpd/%P:
  • juntonian|: - specifies the queue on the server
  • lp=juntonian.bemix%9100 - tells lpd to send the document to the address and port of the printer
  • ifhp=model=hp8000 - tells lpd to use ifhp's filter for correct rendering of the document
  • filter=/usr/lib/ifhp/ifhp - location of this filter file varies
  • sd=/var/spool/lpd/%P - spooling directory

/etc/lprng/lpd.perms

To print from outside of localhost, you have to comment out the REJECT statements in this file

/etc/firehol/firehol.conf

need:

  • Make lpd work from Athena (Athena has a setuid lpq/lpr and so will use ports < 1024)
 client_lpd_ports="any"
  • Under internal NIC
 server lpd accept
  • Under external NIC
 server lpd accept
 server custom lpdcli "tcp/721:731" "default" accept
 server custom lpdsrv "tcp/515" "default" accept
  • Under router wan2lan inface ...
 route lpd accept