Unix Environment
10-6
July 1998
U
N
I
X
Enable
LPD
on System V systems by using
SAM
on HP/UX,
admintool
on Solaris, or any other system administration tool. To install the printer/
NIC manually, use the following procedure.
1. Log in as
root
.
2. Create a dummy device in the
/dev
directory for use with the printer
(e.g., ÒkodakÓ).
touch /dev/kodak
3. Change its ownership, group and access rights with these commands:
chown lp /dev/kodak
chgrp lp /dev/kodak
chmod 660 /dev/kodak
4. Shut down the
lp
scheduler.
/usr/lib/lpshut
5. Add a line in this format to the
/etc/lp/
systems Þle.
kodak:x-:bsd:-:1:10:-:-:
where kodak is the host name of the printer/NIC.
6. Use the lpadmin command to add a new printer.
/usr/lib/lpadmin -p <printer> -s <host name>! <remote queue>
where
printer
is the printerÕs name,
host name
is the printers host
name, and
remote queue
is a predeÞned queue.
Issue the following command when adding a PostScript printer on
Solaris:
lpadmin -p
<printer name>
-I any
Printer name of the device may be same as the host name. Interface
directory usually has these paths:
For SCO, Solaris, DG/UX, UnixWare 2.X and Interactive systems, it is
/usr/spool/lp/admins/lp/interfaces.
For HP/UX and Silicon Graphics systems, it is
/usr/spool/lp/interface
.
For SGI Irix system, it is
/varspool/lp/interface.
For AT&T and Sequent systems, it is
/usr/spool/lp/admins/lp.