Apple Color LaserWriter 12/600 PS User Manual
Page 72
Note: To start the
lpd
daemon automatically when the system boots, add
the
lpd
command to the
/etc/rc
file. The following is an example
/etc/rc
file (syntax varies across operating systems):
if [ -f /usr/lib/lpd ] ; then
rm -f /dev/printer /var/spool/lpd.lock
/usr/lib/lpd;echo -n ' printer'
fi
5
Add the following entry to the
/etc/printcap
file:
printer_queue_name
|[
description_of_ printer
]:\
:lp=:mx#0:rm=
printer_IP_name
:\
:rp=
printer_queue_name
:\
:sd=
path_to_this_queue’s_spool_directory
:\
:lf=
path_to_this_queue’s_log_ file
:
Fill in the parameters in italics as follows:
m Replace printer_queue_name with the name the user should use to
reference the printer.
m Replace description_of_printer with a comment describing the printer.
m Replace printer_IP_name with the IP name you assigned to the printer in
“Step 3
:
Assigning an IP Address to the Printer,” earlier in this chapter.
m Replace path_to_this_queue’s_spool_directory with the pathname of the
unique directory created for this queue.
m Optionally replace path_to_this_queue’s_log_ file with the unique pathname
of the file where error information from the
lpd
command will be logged.
Here’s an example of a
printcap
entry:
Example
GarysLW|[LaserWriter_12_660_PS]:\
:lp=:mx#0:rm=LaserWriterFloor2:\
:rp=GarysLW:\
:sd=/usr/spool/lpd/GarysLW:\
:lf=/usr/spool/lpd/printerlog
58
Chapter 4