
Settings and Printing
Network
Network
Maintenance and Spec.
Setup in UNIX
143
[For BSD UNIX]
The following is an example for Sun OS4.1.3. The command and paths may differ depending
on the OS version. Please refer to the workstation manual.
1
Create printer queue.
(1) Log in as root.
# login root
(2) Add an entry for the printer in /etc/printcap file.
Registering printer queue port as “dpcl21mlp”.
dpcl21mlp:\
:lp=:\
:rm= dpcl21m:\
:rp=lp:\
:sd=/usr/spool/dpcl21mlp:\
:lf=/usr/spool/dpcl21mlp/dpcl21mlp_errs:
<Description of each parameter>
lp : device name to open. Not required.
rm : remote printer host name. Enter host name added to /etc/hosts file.
rp : printer name of remote printer. Enter "lp" in this case.
sd : spool directory.
lf : error log file.
For more information, refer to your UNIX manual.
(3) Create and set up the spool directory and error log file.
# mkdir /usr/spool/dpcl21mlp
# touch /usr/spool/dpcl21mlp/dpcl21mlp_errs
# chown -R daemon /usr/spool/dpcl21mlp
# chgrp -R daemon /usr/spool/dpcl21mlp
(4) Check lpd function.
# pa aux | grep lpd
(5) Validate created printer queue.
# lpc restart dpcl21mlp
2
• Print using "lpr" command.
# lpr -P dpcl21mlp <file name>