Consult the printer vendor's installation documentation for information about hardware switches and cabling requirements.
For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.3.
Only the most commonly used options of the CUPS lpadmin command are shown here. For information about other options, see the lpadmin(8) man page.
$ /usr/sbin/lpadmin -p printer-name -E -v device - P full path to ppd file
Specifies the name of the printer to add.
Enables the destination and accepts jobs.
Sets the device-uri attribute of the print queue.
Specifies a PPD (Postscript Printer Description) file to use with the printer. The following are standard locations of PPD files:
/usr/share/cups/model/foomatic-db-ppds/manufacturer name
/usr/share/cups/model/SUNWhplip
/usr/share/ppd/SUNWhpijs/HP
See the examples at the end of this procedure.
$ cupsaccept printer-name $ cupsenable printer-name
$ lpstat -l -p printer-name
This example shows how to add an HP LaserJet printer LaserJet by using a JetDirect network interface with the IP address 203.0.113.1.
$ /usr/sbin/lpadmin -p LaserJet -E -v socket://203.0.113.1 \ -P /usr/share/ppd/SUNWhpijs/HP/hp-laserjet_p4515-ps.ppd.gz
Once a printer is configured, a copy of the PPD file is placed in the /etc/cups/ppd directory and renamed to queue-name.ppd. To find the path this copy of the PPD file, type the following command:
# lpstat -l -p queue-nameExample 2 Adding a Printer That Is Connected to the Parallel Port
This example shows how to add an HP DeskJet printer DeskJet that is connected to the parallel port . This example assumes that the PPD file is in the /usr/share/cups/model directory.
$ /usr/sbin/lpadmin -p DeskJet -E -v parallel:/dev/lp1 -m drv:///sample.drv/ deskjet.ppd
Sets a PPD file for the printer
PPD file for the HP DeskJet drivers included with CUPS
This example shows how to add a dot matrix printer that is connected to the serial port. This example assumes that the PPD file is in the /usr/share/cups/ model directory.
$/usr/sbin/lpadmin -p DotMatrix -E -m epson9.ppd \ -v serial:/dev/ttyS0?baud=9600+size=8+parity=none+flow=soft
Specify the serial port, baud rate, number of bits, parity, and flow control. If you do not need flow control, delete the +flow=soft attribute.