Printronix P5000LJ Printer User Manual


 
200
Chapter 10 Unix Host Configuration
LPR/LPD Printing Setup On BSD Systems
(Sun 4.x, DEC
Ultrix
, Free BSD, etc.)
NIC also supports Unix operating systems which follow a BSD print system
(e.g., SunOS 4.1.x). This means a printcap file is used to define all printers
available on the host and interface scripts are not commonly used. Instead,
LPR/LPD printers are defined.
To manually configure an LPR/LPD printer on a BSD Unix system:
1. Define an entry for this new printer within the printcap file, /etc/printcap.
Syntax:
printername:
:sh:pw#80:mx#0:\
:rm=P5000LJname:\
:rp=P5000LJdestination:\
:lp=:\
:sd=/usr/spool/lpd/printername:\
:lf=/usr/spool/lpd/printername/log:\
:af=/usr/spool/lpd/printername/acct:
where
printername
is any name you would like to give to this new
printer,
P5000LJname is the host or IP name of the print server, and
P5000LJdestination is one of the pre-defined destinations/queues
on the device.
Example:
1000Q:
:sh:pw#80:mx#0:\
:rm=spike:\
:rp=d1prn:\
:lp=:\
:sd=/usr/spool/lpd/ 1000Q:\
:lf=/usr/spool/lpd/ 1000Q/log:\
:af=/usr/spool/lpd/ 1000Q/acct:
2. Create the spool directory specified by the sd= entry in the printcap entry
for this printer.
Example:
touch /usr/spool/lpd/ 1000Q
3. Create the log and account files specified by the
lf=
and
af=
entries in
the printcap entry for this printer.
Example:
touch /usr/spool/lpd/1000Q/log
touch /usr/spool/lpd/1000Q/acct
4. Create the spool directory to use, set the correct permissions and
ownership of the spool directory and objects within it, and start the printer
daemon for this new printer:
mkdir /usr/spool/lpd/1000Q
chmod -R g+rwx,o+rx /usr/spool/lpd/1000Q
chmod -R daemon.daemon /usr/spool/lpd/1000Q
lpc start 1000Q