User`s manual

CN2510 User’s Manual Setting Up Printer
11-12
Setting up a LINUX Host
Steps SCO UNIX Command Description
Uncompress all programs #tar /dev/fd0 ./
Uncompress printer.tar.Z
to ./printer
#tar xvf printer.tar.Z
compile/link #make -f sco_unix.mak
make printer node #mknod /dev/iop1 p Create a unique pipe name for each
printer group. Since there are 16 groups
of TCP port numbers (from 2048 to
2063), you need to create 16 respective
pipe names. For example: iop1, iop2,
iop3, etc.
set it to printer #chown lp /dev/iop1 Change the pipe owner to 1p
set rw #chmod 600 /dev/iop1 Change access permission to 600 or
rw-----
set printer name #/usr/lib/lpadmin
-pLaser1 -v/dev/iop1
Redirect the printer spooler to write to
pipe ‘iop1’. Assumes the printer name is
Laser1.
add one line to
/etc/printcap file
Laser1:lp=/dev/iop1,sd=/
usr/spool/Laser1
make spool directory #mkdir /usr/spool/Laser1
1.
execute asprint for Group 01 #/asprint /dev/iop1
‘CN2510 IP address’
2048 &
Start ‘asprint’ utility to read from pipe
‘iop1’ and write to the CN2510 printer
port.
‘/dev/iop1’: the device name the spooler
is writing to.
‘CN2510’: the host name of the CN2510
as defined in /etc/hosts, or its IP address.
‘2048’: the TCP port number (Group01)
of the printer port on the CN2510.
accept printer Laser1 #lpr -PLaser1
file_name.txt
Set Laser 1 to accept print request.
Repeat Repeat the above steps to set up another
printer. For printers in the same group, it
is not necessary to repeat every step.