HP UX Printer Setting
Set printer by running sam after login to root.
- With root permissions, run /usr/bin/sam or /usr/sbin/sam.
- Run by double clicking [Printers and Plotters] -> [LPSpooler] -> [Printers/Plotters] in order.
- Click [Actions] -> [Add remote Printer/Plotter...] in the menu.
- Enter the following in the printer setup screen:
Fig. 2: HP printer setup - Printer Name: Enter the name of a printer to be designated for printing.
- Remote System Name: Enter the name or IP address of a PC with Xlpd installed. In some cases, the program may not be installed with the IP address. In such case, enter the PC name after registering the name in /etc/hosts file as described in 'General Setup'.
- Remote Printer Name: Enter the queue name registered in Xlpd. If the queue name is not registered in Xlpd, print a file with the default queue according to the Xlpd settings or by generating a new queue.
- Remote Printer is on a BSD system: This item must be checked.
- Leave the rest as defaults.
- Click [OK] to end sam.
- The command to print a file in HP UX 10.x is as follows: $ /usr/bin/lpr -dPrinter_name filename