Installation guide

10.9.1 Setting Up TCP/IP Printing
The following steps describe how to set up TCP/IP printing on a local host.
1. Set up the printer. Assign a TCP/IP address and node name to each
printer with a network card. Also, determine the TCP/IP socket
number on which the printer will listen for connection requests. You
will need the socket number in Step 2b when you edit the
/etc/services file. Table 10–8 lists the socket numbers for three
printers made by Compaq and one made by Hewlett Packard.
Table 10–8: TCP/IP Socket Numbers
Printer Socket Number
DEClaser 3500 (LN14) 10001
DEClaser 5100 (LN09) 10001
HP Laserjet 4m+ 9100
LN17 2501
To obtain the socket number for other printers, see your printer
documentation. Some printers may allow you to specify this number
yourself.
2. Configure the local host This step describes the utilities that you need
to run and the files that you need to modify on the local host in order
to configure TCP/IP printing. You must have superuser (root)
privileges to perform the following tasks:
a. Configure the printer using lprsetup Execute the
/usr/sbin/lprsetup command and answer the questions to
create an entry in the /etc/printcap file for your printer. When
it prompts you to enter values for printcap control variables,
assign the following values to the ct and lp variables:
ct=tcp
lp=@
nodename
/
servicename
Replace
nodename
with the name of the printer’s node as
registered for use on your network and replace
servicename
with
the name you will choose to enter in the /etc/services
database in the next step. If you want to modify an existing
/etc/printcap printer entry to use TCP/IP printing, edit the
/etc/printcap file using a text editor, such as vi, and modify
the values for the ct and lp variables. You can also remove the
values for the xs, xc, fs, and fc control variables which establish
Administering the Print Services 10–33