M a n u a l I n s t a l l a t i o n P r o c e d u r e
C h a p t e r 5 : U s i n g t h e P r i n t e r w i t h U N I X T C P / I P
❖
5-33
4
Edit the
/usr/xrx/printcap
file to include an entry for the
Xerox printer(s).
If you are using the rprint precompiled binary, the
printcap file must be in the
/ e t c
directory.
For example, the following entry defines a printer on the
XNIO port (port 1, TCP port 2501):
x r x _ p c l | x r x _ 1 | X N I O p r i n t e r : \
: l p = x r x _ p c l : \
(dummy device name)
: x r x _ n = 1 3 8 . 2 3 9 . 1 1 1 . 1 1 1 : \
(IP address)
: x r x _ p = 2 5 0 1 :
(TCP port number)
If this printer will be used for PostScript or graphic image files,
include the following line in the printcap entry:
: x r x _ t e x t = d i s a b l e : \
5
Edit the printer interface script file. First copy the sample
Xerox printer interface file,
lp_dumb
, to another file that
corresponds to the printer name you selected.
For example:
c p l p _ d u m b l p _ x r x _ p c l
6
Edit the
lp_xrx_pcl
file to specify the correct path to the
rprint program. Assuming that the rprint program is kept in
/usr/xrx
, enter the second to the last line of the
lp_xrx_pcl
file
as follows:
(shell commands)
| / u s r / x r x / r p r i n t ` b a s e n a m e $ 0 ` $ 1 $ 5
e x i t $ ?
If you are familiar with UNIX bourne shell script
programming, you can edit the
lp_xrx_pcl
file and modify the
banner page that precedes the printed output to suit your
needs.
Etr-ch05 Page 33 Thursday, October 24, 1996 7:31 PM