7.4 Configure Remote lpd Printing on the Host
The procedure you use to configure your UNIX host(s) to allow printing to your
network remote print server varies between different UNIX varieties. The
procedure below can be used for UNIX variants that are related to BSD UNIX,
such as Sun OS or Linux. For other UNIX versions, consult your system
documentation, keeping in mind:
1. The print server should be treated as a BSD networked print server host.
2. The host name should be the name (or IP address) that you have assigned to
the print server.
3. The printer name (or queue name) on the remote host should be the print
server's printer port's name (lpt1, lpt2, or lpt3).
You will need to perform the tasks below, logged in as the superuser (root). To
configure your UNIX host for printing:
1. Assign a name corresponding to the print server's IP address. You can add
this address to the /etc/hosts file by typing a line such as:
203.66.191.186 pserver
2. Create a spool directory for the printer in the same directory where spool
directories are normally kept on the machine, such as /var/spool or
/var/spool/lpd:
mkdir /var/spool/lpd/pserverd
shown daemon /var/spool/lpd/pserverd
chgrp daemon /var/spool/lpd/pserverd
chmod 775 /var/spool/lpd/pserverd
3. Add an entry to the host's /etc/printcap file, similar to the following:
printer-name:\
:lp=:\
:rm=203.66.191.186:\
:rp=lpt1:\
:lf=/var/spool/lpd/pserverd.log:\
CHAPTER 7: UNIX System Network
73