Oki 6120i User Manual

Page 173

Advertising
background image

IV - 80

Section 4 - Appendix B - Application Considerations

OKI OkiLAN 6120i User’s Guide

If the LPD daemon is running, you should see output
similar to:

root 135 0.0 0.0 52 0 ? IW May 24 0:01
/usr/lib/lpd

If the LPD daemon is not running, start the daemon
by logging into the Sun-OS or Ultrix machine as root
and issuing the following command at the UNIX
prompt:

/usr/lib/lpd

Verify that the daemon is running by using the ps
command described previously.

To start the LPD daemon automatically when the
system boots, make sure that lines similar to the
following exist in the “/etc/rc” file:

if [ -f /usr/lib/lpd ] ; then

rm -f /dev/printer/var/spool/lpd.lock

/usr/lib/lpd; echo -n ‘ printer’

fi

Procedure

To configure the Sun-OS or Ultrix machine so that
users can spool print jobs to the pcl print queue on the
OkiLAN 6120e named OKIPRINTER, do the
following:

1. Login to the Sun-OS or Ultrix machine as root.

2. Using a text editor (such as vi), add this entry to the

“/etc/printcap” file:

lj4:\

:lp=:rm=OKIPRINTER:rp=yourqueuename:\

:sd=/usr/spool/lj4:\

:lf=/usr/spool/lj4/lj4.log

3. At the UNIX prompt, type: mkdir /usr/spool/lj4.

4. Type: touch /usr/spool/lj4/lj4.log.

5. Try printing by issuing the following command:

lpr -Plj4 filename

Advertising