UNIX Configuration
6
1
❖
❖❖
❖ Adding an entry to the /etc/printcap file
The following entry is added to the /etc/printcap file.
This is the configuration for printing with the lpr command. In order to use
the lpr command to print, you need to edit the /etc/hosts file, add an entry
for the network printer to the /etc/printcap file and create a spool directory.
##PRINTTOOL3## REMOTE
np|Network Printer:\
:rm=nphost:\
:rp=lp:\
:sd=/var/spool/lpd/npd:\
:lf=/var/log/npd-errs:\
:sh:\
:mx#0:
Note
❒
The /etc/printcap file is used to register the name and attributes of a print-
er. You must make an entry for the network printer in the /etc/printcap
file of all workstations using the network printer.
❒
Each entry is separated with colons into several fields. The syntax is to be-
gin each entry with a colon, the entry, and then end the entry with a colon,
a back slash, and then a return.
❒
The first line of the field is the name of the printer. You use this name when
logging on to a network printer from a workstation. You can define several
different names by separating each name with the “|” character.
❒
The second, and the following lines, contain the printer's attributes. At-
tributes of the printer are represented by two character names referred to as
capabilities. For more information about capabilities, see the following table.
Capability Explanation Value Required for the Network
Printer.
lp Device name of the printer Nothing.
rm Host name of the printer The host name that was registered
with the /etc/hosts file.
rp Optional specification Select options for printing.
For printing with PCL or Post-
Script, select “lp”.
For text printing, select “text”.
sd Path name of the spool directory. Path name of the spool directory
that is to be created.
lf Path name of the log file. Path name of log file.
For example /var/log/lpd-errs.
mx Maximum file size which the di-
rectory can copy. When set to 0, the
size is unlimited. If nothing is en-
tered, the size is set to 1024 k.
Nothing or something suitable.