6.5 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 varieties of Unix. The procedure below can be used for Unix
variants that are related to BSD Unix, such as SunOS or Linux. For other versions of Unix,
consult your system documentation, keeping in mind that:
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 lpt1, lpt2 or lpt3, the name of
the printer port on the print server.
You will need to perform the tasks below, logged in as the superuser (root). To configure your
Unix host for printing,
1. Optionally, assign a name corresponding to the print server’s IP address. You can add this
address to the /etc/hosts file, by adding 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
chown 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:\
:sd=/var/spool/LPD/pserverd:\
:mx#0:
Lines should be indented with tabs. More than one printer name can be used, with variants
separated by vertical bars (name1|name2).