The system is a HP-UXB.11.31 and the printer is the maid. The installation procedure is described as follows: 1. install HPJetDirectPrinterInstallerforUNIX #/usr/sbin/swsintall? S/var/tmp/hp11e134. sdJ4189-11001C verify installation successful: #/usr/sbin/sw
The system is HP-UX B .11.31 and the printer is HP LaserJet 5100. The installation steps are described as follows:
1. install HP JetDirect Printer Installer for UNIX
# /usr/sbin/swsintall ?s /var/tmp/hp11e134.sd J4189-11001C
Verify whether the installation is successful:
# /usr/sbin/swlist -l product J4189-11001C # Initializing... # Contacting target "systemname"... # # Target: systemname:/ # # J4189-11001C E.10.34 Hewlett-Packard JetDirect Printer Installer for Unix J4189-11001C.HPNPL E.10.34 Hewlett-Packard JetDirect Printer Installer
for Unix
2. download the driver for HP LaserJet 5100
The HP printer driver (Modelscript) can be downloaded here: http://www.hp.com/pond/modelscripts/index2.html
After downloading net_lj5100.sh.Z, follow these steps:
# uncompress net_lj5100.sh.Z# sh net_lj5100.sh.Z
3. install the printer
Access SMH (https :// : 2381/), select Tools, and select Print Management-> Configure Printer or Plotter. Next, you need to start Xserver on your machine, and then click the "Run" button to start the "Printer and Plotter" setup program.
Choose "Action"> "Add Network-Based Printer/Plotter"> "Add Printer/Plotter connected to JetDirect" from the menu of the Printer and Plotter setup program ", the hppi program will be started through the terminal, as shown below. (In fact, if you do not use the SMH and Printer and Plotter setup programs, you can also press hppi directly from the command line to access the following screen. However, after adding a Printer, you cannot find the added Printer through hppi itself,
Therefore, we recommend that you use SMH to ensure security .)
**************************************************************** *****] **** **** ] **** JetDirect Printer Installer for UNIX **** ]]]]] ]]]]] **** Version E.10.34 **** ] ] ] ] **** **** ] ] ]]]]] **** M A I N M E N U ***** ] **** ****** ] **** User: (root) OS: (HP-UX B.11.31) I N V E N T **************************************************************** 1) Spooler Administration (super-user only) 2) JetDirect Configuration (super-user only) - TCP/IP configurable parameters 3) Diagnostics: - diagnose printing problems ?) Help q) QuitPlease enter a selection (q - quit):
Select 1 and the following menu appears:
Spooler: 1) Add printer to local spooler 2) Delete printer from local spooler 3) Modify existing spooler queue(s) 4) Install New Model Script 5) Remove Model Script
Select 1 and Enter the printer IP address: Enter the network printer name or IP address (q-quit): 192.168.1.10.
The parameter setting screen is displayed:
Configurable Parameters: Current Settings ------------------------ ---------------- 1) Lp destination (queue) name: [192_1] 2) Status Log [(No Log)] 3) Queue Class [(Not assigned)] 4) Default Queue [NO] 5) Additional printer configuration...
Select 5 here to go to the advanced option change:
Configurable Parameters: Current Settings ------------------------ ---------------- 1) Model Script: [net_lj8150] 2) Default Printing Language [AUTO] 3) Job Recovery [ON] 4) True End-of-Job [ON] 5) Banner Page [ON] 6) PostScript Level [Level 2] 7) Banner Tray [default] 8) Banner Paper Size [default] 9) Duplex print [default]
Select 1 and enter the name of the Model Script you just installed:
Enter model script name (q-quit): net_lj5100
Press q to return to the top menu, and then press 0-> y to start configuration.
Finished adding "192_1" to the spooler.
Possible Errors
If the following error occurs, it may be caused by permission issues:
Addprinter error: cant find /usr/spool/lp/interface/192_1
Check whether the owner of the/var/spool/lp,/etc/lp,/usr/lib/lp directories is lp: bin. What I encounter is,
For the purpose of development, other project team members deleted the lp account that comes with the system and added the printer.
If the following warning appears, run the lpsched command once as prompted:
WARNING : The spooler is not running!To print, turn on the spooler (lpsched)
After successful installation, select List-> Printers and Plotters on the Printer and Plotter configuration programs page,
The successfully installed printer is displayed ,.
Select the printer and select "Set as System Default Destination" from the right-click menu to Set it as the System Default printer.
4. print the test page
Execute the lp command in the command line to print.
$ lp readme.txt
To print a postscript file, you can write it as follows:
$ lp -o postscript readme.ps
You can use the lpstat command to view the print queue.
$ lpstat
Remarks
If you encounter problems during printing, you can view the log file:
tail -f /var/adm/lp/log
The print spool is located under/opt/hpnpl/tmp. if the print is abnormal, check whether the directory has permission issues.