Utility Tool
Setting Up a BSD Remote Printer to Use lpd
To set up a remote printer on the host that sends jobs to the network
interface card using printer resident lpd, add an entry to the /etc/printcap file
on your host for each printer you use. Perform the following procedure:
1
Open the /etc/printcap file.
–
Make an entry naming the network interface card as the remote
host and PRINT as the remote printer name. A typical printcap entry
is as follows:
–
<printer_name>\ (for example, lprprinter)
:lp=:\
:rm=<remote_host>:\ (for example, name as entered in /etc/hosts)
:rp=PRINT
: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 PRINT (the
internal connection to the printer) of the network interface card
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 are done. You are now ready to print.
VarioPrint 1105
11
11-43