Settings and Printing
Network
NetworkMaintenance and Spec.
Setup in UNIX
72
[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 “kxp7310lp”.
kxp7310lp:\
:lp=:\
:rm= kxp7310:\
:rp=lp:\
:sd=/usr/spool/kxp7310lp:\
:lf=/usr/spool/kxp7310lp/kxp7310lp_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/kxp7310lp
# touch /usr/spool/kxp7310lp/kxp7310lp_errs
# chown -R daemon /usr/spool/kxp7310lp
# chgrp -R daemon /usr/spool/kxp7310lp
(4) Check lpd function.
# pa aux | grep lpd
(5) Validate created printer queue.
# lpc restart kxp7310lp
2 Print
• Print using "lpr" command.
# lpr -P kxp7310lp <file name>