124
12
13
14
15
16
17
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
sec tio n
UNIX /Lin ux-Sy stem Netw ork
You wil l nee d to perf orm t he t asks below , log ged i n as the
“supe ruse r” (r oot) . To c onfig ure your UNIX /Lin ux ho st fo r pr intin g:
1. Optio nally, ass ign a name cor resp ondin g to the P rint
Serve r’s I P add ress . You can add t his a ddre ss to
the “/e tc/h osts ” fil e, by addi ng a line such as:
203. 66.191 .186 pser ver
2. Create a sp ool direc tory for the p rint er in the same
direc tory wher e spo ol d irec torie s ar e nor mall y kep t on
the ma chin e, su ch as “/va r/spo ol” or “/v ar/sp ool /lpd ”:
mkdir /var /spo ol/ lpd/ pser ver d
chown dae mon / var/ spoo l/lp d/p serv erd
chgrp dae mon / var/ spoo l/l pd/p ser verd
chmod 775 /var/ spoo l/l pd/p ser verd
3. Add an entr y to the host ’s “/et c/pr intca p”
file, simi lar t o the foll owing :
print er-nam e:\
:lp= :\
:rm= 203.6 6.191.186 :\
:rp= lpt1: \
:lf= /var/s pool/ lpd/p server d.log :\
:sd= /var/s pool/ lpd/p serve rd:\
:mx# 0:
Lines shou ld be ind ented with tab s. Mo re th an on e pr inter nam e can
be use d, w ith va rian ts s epara ted by ver tic al ba rs ( name1|n ame2 ).
The “r m=” entr y sh ould corr espo nd to the I P ad dress you have
assig ned t o the Prin t Se rver. You ca n al so us e a h ostna me i f you have
assig ned o ne in the “/etc /hos ts” f ile.
The “s d=” entr y sho uld corr espon d to the s pool dire ctor y you
create d in the previ ous s tep.
The “r p=” entr y sh ould corr espo nd to the p ort name of t he re mote
printe r. Th e val ues s houl d be one o f lpt 1, lpt 2, or lpt3 , dep endi ng on
the pr inte r por t.
The Pr int S erve r sh ould now b e ava ilab le fo r pri ntin g fro m you r UNI X/
Linux host .