6.2 UNIX Printing
5.“Is this printer PostScript?”
Type yes or no and press Enter .
6.The script creates a printcap entry for the printer just config- ured. The screen displays the entry and asks if you want the
script to append it to your /etc/printcap file. See below for a sample printcap file. Type yes or no and press Enter . If you type no, you may perform manual edits.
In your /etc/printcap file, be sure not to change the name of the device given NIC in Step 2. You must reference the same lp: entry you wrote on the lp command line of the printcap file. For example:
<printer_name> NIC printer:\
:lp=/dev/<printer_name>:\
:if=/usr/nic/infilter:\
:sd=/usr/spool/<printer_name>:
All printcap entries must be prefaced with a tab except for the entry on the first line.
7.The script creates a spool directory in /usr/spool and starts the daemon for the newly configured printer. It also displays the path used if you ever need to restart the daemon. For example:
/usr/nic/lpr_print /dev/nic/<printer_name>
printfast 10001 &
8.Run the ps command so that you can view all your lpd pro- cesses. Type:
#ps
9.Kill all of your lpd processes. Type:
#kill
(this will stop ALL printing).
10.Restart the daemon. Type:
#/usr/lib/lpd
TCP/IP Configuration Chapter 6