Chapter5
This chapter describes how to add network printers to Unix/Linux PC.
5.1
Configuring Host File
If using IP administration system like DNS, manually registering the Server Name and
IP address may be not required. Otherwise, you have to edit hosts file and contact
your network administrator.
1.
Log in to Linux machine by "root".
# login root
2. Register the Server's Server Name and IP address into /etc/hosts file.
To edit host file, use an editor, e.g. "vi".
Example: The IP address is "192.168.1.100", Server Name is "DN-13007"
192.168.1.1
192.168.1.2
192.168.1.100
3. Switch on the Server. Verify the network connection by using the ping
command.
# ping DN-13007
If there is no response or error occurs, there may be problems with IP address
configuration, host file editing or network status. Please contact your network
administrator.
5.2
Printing by LPD/LPR
This section explains how to print using LPD protocol of TCP/IP.
For further information on "lpr" and "lp" commands, refer to your workstation manual.
LPD Protocol: LPD (Line Printer Daemon) is a protocol that enables you to execute
printing to a printer on the network.
Remote-Printer Queue: The Server has two remote printer queues: USB1_LQ and
USB2_LQ with respect to USB port 1 and UB port2.
To print files using a printer driver, use "lp" or "lpr".
5.3
Using the Server on BSD UNIX/Linux
1. Log in to the BSD Unix machine through "root".
# login root
2. Register the Server into /etc/printcap file.
Example: To register the printer of USB1 port by the printer name "Printer1".
Printer1:\ ---(A)
:lp=:rm=DN-13007:rp=USB1_LQ:\ ---(B)
Print Server in Unix/Linux
dns
mail
DN-13007
# DNS Server
# Mail Server
# Server
37