Configuring HP-UX For Peripherals
Chapter 8 209
Configuring Printers and Plotters
Configuring a Printer Using HP-UX Commands
See shutdown (1M) or reboot (1M) in the HP-UX Reference.
a. Power off and unplug all peripherals, then the SPU.
b. Install the hardware, as described in the manual accompanying the
(card and) printer.
c. Connect the printer to the card.
d. Plug in and power up the printer.
e. Set the hardware switches for the printer address.
f. Plug in and power on any other peripherals and then the SPU.
When the system reboots from the new kernel, HP-UX detects the
printer and associates it with its driver.
In most instances, insf automatically creates the device special files
necessary to communicate with the printer, although in some cases you
will need to create the device special files as a separate operation. (Two
cases — configuring a printer to a serial port and guidelines for
configuring a non-HP printer to a parallel port — are documented
following this procedure.) Also refer to Appendix C , “Major and Minor
Numbers,” for instructions on using mknod to create a custom device
special file, if needed.
Step 5. Invoke /usr/sbin/ioscan -fn -d
printer_driver
again to confirm
that the I/O subsystem finds the printer and has created the necessary
device special files. Your output should now resemble that shown in step
3.
Your next task is to configure the LP spooler to enable you to send print
jobs to the printer or plotter. See "Managing Printers and Printer
Output," in Managing Systems and Workgroups.
Creating a Device Special File for a Printer or Plotter
Configured to a Serial Port
By default, insf creates device special files for parallel and SCSI ports
that can be easily associated with a printer or plotter.
However, the device special files insf creates for serial ports (ports
controlled by asio0, mux0, mux2, and mux4) are named to accommodate
terminals more intuitively than printers or plotters. To use the serial
port for a line printer, you should create a new device special file with a