User manual
User’s Manual InterCon-PrintServer
91
3. Creating the Spool Directory
Creating a spool directory for the print server and setting the permissions is described below:
# mkdir /usr/spool/<printername>
# chmod 770 /usr/spool/<printername>
# chown daemon /usr/spool/<printername>
# chgrp daemon /usr/spool/<printername>
In our example, the following command would be:
# mkdir /usr/spool/printer
# chmod 770 /usr/spool/printer
# chown daemon /usr/spool/printer
# chgrp daemon /usr/spool/printer
4. Entering the Printer into the Spooler System
The
/etc/printcap
file is the configuration file for the printers in the BSD spooler system. To
integrate the print server into the spooler system a new printer entry must be edited into the
/etc/printcap
file:
<printername>:\
:lp=/dev/<printername>:\
:of=/etc/printserver/interfaces/<printername>:\
:sd=/usr/spool/<printername>:
The entry in our example would be:
printer:\
:lp=/dev/printer:\
:of=/etc/printserver/interfaces/printer:\
:sd=/usr/spool/printer:
The first line of the entry must be at the beginning of a new line, and all following lines must begin
with a tab character. Lines followed by a new line belonging to the previous entry have to be closed by
a \ (backslash) character. No other characters should be placed between the last character of the line
and the backslash. The backslash must be the last character of the line.
Please note:
For printing
PostScript
data on the print server, the entry of the printer in the
/etc/printcap
file
must to contain the
sh
flag (suppress header). In our example, we would enter:
printer:\
:lp=/dev/printer:\
:of=/etc/printserver/interfaces/printer:\
:sd=/usr/spool/printer:sh: