3. NETWORK SETUP FOR EACH OPERATING SYSTEM
27
3.2.7.2 Printer data base
To allow the printer to function correctly in the UNIX line printer system,
you must create the /etc/printcap file. In the printcap data base, informa-
tion on the line printer directly connected to a certain machine and the
printer(s) that can be used via network is registered.
For the details of the printcap, please refer to the UNIX On-Line Manual
Page or Reference Manual.
This subsection describes how to create the /etc/printcap file, using an
example in which the remote machine name, the printer name and the
spool directory name were set to OKIPAGE 12i.
First, create a directory OKIPAGE 12i under the directory /ver/spool/lpd.
The printcap entry is composed of fields enclosed with colons ( : ). The
last field must end with a colon. Describe the name of the printer in the
first field of each entry. Start from the left margin, without placing a colon
at the head.
Example:
# printcap entry for OKIPAE 12i PAGEPRINTER on Network
OKIPAGE 12i:\
:lp=\
:rm=OKIPAGE 12i:\
:rp=OKIPAGE 12i:\
:lf=/var/adm/lpd-errs: \
:sd=/var/spool/lpd/ OKIPAGE 12i:
If there is # at the beginning of the line, this line becomes a comment.
If you enter a carriage return without a space character after a back slash
(\), this entry continues to the next line. Please note that if you enter a
space character at the end of the printcap line, by mistake, a serious error
will occur. In this example, a tab is set for the left margin for the continuing
lines. And a continuing line of any entry must begin with a space character,
normally with a tab character. If an entry continues to the second line or
more, you must place a colon at the end of each line and the beginning of
next line.
Meaning of each entry