Ricoh ap2600 用户指南

下载
页码 434
UNIX Configuration
6
1
Setup
The printing environment is set up automatically when the installation shell
script is executed.
This section describes the set up contents when the installation shell script is ex-
ecuted under Red Hat Linux, Solaris and HP-UX.
Linux
❖ Adding the IP address and host name to the /etc/hosts file
The following line is added to the /etc/hosts file.
192.168.15.16  nphost  # Network Printer
• 192.168.15.16 is the IP address, nphost is the host name, from # to the end
of the line is a comment.
Note
❒ The /etc/hosts file contains a list of the IP addresses and their host names
of all of the hosts communicating on the network. Each entry is delimited
with a space or a tab, and each line is separated with a return.
❒ If you do not use NIS or DNS, you must manually enter the IP address and
host name of each workstation using the network printer in the /etc/hosts file.
❖ 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.
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.