U N I X P r i n t i n g
C h a p t e r 5 : T C P / I P C o n f i g u r a t i o n
❖
5-25
1. Open the /etc/printcap file. Make an entry naming the
NIC as the remote host and PORT1 as the remote printer
name. A typical printcap entry is shown below:
<printer_name>\ (for example, lprprinter)
:lp=:\
:rm=<remote_host>:\ (for example, name as entered in
/etc/hosts)
:rp=PORT1:\
:sd=/usr/spool/lpd/<printer_name>: (for example,
spool directory on system used to spool data and
control files)
This entry will send jobs spooled at /usr/spool/lpd/
<printer_name> to the printer designated <printer_name> to
be printed at port 1 (the internal connection to the printer) of
the NIC designated as <remote_host>.
2. Create the spooling directory. For example, type:
mkdir /usr/spool/lpd/<printer_name>
3. To print via the spooler, use the lpr command. Type:
lpr-P <printer_name>< file_name>
Installation and testing is done. You are now ready to print.
Setting Up an AIX Version 2.5 Remote Printer to
Use lpd
Set up a remote printer on the host that sends jobs to the NIC
using the NICs lpd. Use the following procedures to do this:
1. At the prompt, type:
#smit spooler <cr>
2. When a window appears, select
Manage Remote
Printers
.
3. When a menu appears, select
Client Services
.
4. Another menu appears, select
Remote Printer Queues
.
Book.frm : CHAP5.FRM Page 25 Saturday, October 12, 1996 7:43 AM