Manual LPR/LPD Host Setup
119
2. Create the spool directory specified by the sd= entry in the
printcap entry for this printer.
Example:
touch /usr/spool/lpd/ P5000
3. Create the log and account files specified by the
lf=
and
af=
entries in the printcap entry for this printer.
Example:
touch /usr/spool/lpd/P5000/log
touch /usr/spool/lpd/P5000/acct
4. Change permissions and ownership on the spool directory and
everything within it.
Example:
chmod -R g+rwX,o+rX /usr/spool/lpd/ P5000
chmod -R daemon.daemon /usr/spool/lpd/ P5000
5. Start the printer daemon for this new printer.
Example:
lpc start P5000
You now have a new printer which relies on LPR/LPD to print to a
NIC printer. Use the following command to test printing:
Syntax:
lpr -P printername filename
Example:
lpr -P P5000 /etc/hosts