U N I X P r i n t i n g
C h a p t e r 5 : T C P / I P C o n f i g u r a t i o n
❖
5-45
8. Restart the daemon with:
startsrc -s daemon."
The installation script then will create the named pipe and
starts the supplied print daemon using the printer name and
NIC information you supplied. Since the AIX System
Management Interface Tool (SMIT) will not accept a named
pipe as a printer device, the installation script also creates a
null character device in /dev/printer_name.
Virtual Printer Commands
Virtual printers can be added either through SMIT or through
the
mkvirprt
command, entering the device name
printer_name for configuration purposes. During this process
you also select a particular printer type for the new printer,
which inherits the set of predefined attributes for that printer
type. In most cases, this set of attributes will be sufficient, but
it can be changed either through SMIT or by using the
chvirprt
command. If you need more extensive changes on
your printer, see the
AIX RISC System/6000
documentation
for assistance. After the virtual printer has been added, there
will be a stanza in /usr/lpd/qconfig for device printer_name
that looks like the following:
printer_name:
file=/dev/printer_name
backend=/usr/lpd/piobe
Edit /usr/qconfig and change
file=/dev/printer_name to file=/dev/nic/printer_name.
Output spooled on the virtual printer as defined above, will
now be sent to the named pipe and routed to NIC. Before you
edit the files above, be sure that the following daemon is
running:
/usr/nic/lpr_print /dev/nic/printer_name printfast 10001 &
Book.frm : CHAP5.FRM Page 45 Saturday, October 12, 1996 7:43 AM