Configuring LPR

From SlugWiki
Revision as of 09:24, 9 April 2009 by Spoothead (Talk)

(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:

  1. juntonian

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:

  1. Make lpd work from Athena (Athena has a setuid lpq/lpr and so will use ports < 1024)

client_lpd_ports="any"

  1. Under internal NIC

server lpd accept

  1. Under external NIC

server lpd accept server custom lpdcli "tcp/721:731" "default" accept server custom lpdsrv "tcp/515" "default" accept

  1. Under router wan2lan inface ...

route lpd accept