❖ ❖ ❖ ❖ Adding an entry to the /etc/printcap file
The following entry is added to the /etc/printcap file, which is the configu-
ration 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 print-
er to the /etc/printcap file and create a spool directory.
##PRINTTOOL3## REMOTE
np|Network Printer:\
:rm=nphost:\
:rp=option:\
: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, followed by the entry, and then end with a co-
lon, 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 following lines contain the printer's attributes. Attributes
of the printer are represented by two character names referred to as capa-
bilities. For more information about capabilities, see the following table.
Capability
rm
rp
sd
lf
mx
Explanation
Host name of the printer
Optional specification
"lp" will be assigned, if the option
is not used.
Path name of the spool directory.
Path name of the log file.
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.
Using the Installation Shell Script
Value Required for the Network
Printer.
The host name that was registered
with the /etc/hosts file.
Select options for printing. For
more information about available
options, see p.16 "Specifying the
Device Option".
Path name of the spool directory
that is to be created.
Path name of the log file.
For example /var/log/lpd-errs.
None or something suitable.
1
7