System Administration Guide: Advanced Administration

Example—Adding a New Network Printer Without PPD Files by Using LP Print Service Commands

This example shows how to add a new network printer without PPD files. The commands must be executed on the print server. The following information is used as an example. The information that you provide will vary.


# lpadmin -p luna1 -v /dev/null 1
# lpadmin -p luna1 -m netstandard 2
# lpadmin -p luna1 -o dest=nimquat:9100 -o protocol=tcp 
-o timeout=5 3
# lpadmin -p luna1 -I postscript -T PS 4# lpadmin -p luna1 -D "Room 1954 ps" 5
# cd /etc/lp/fd
# for filter in *.fd;do	
	   > name=`basename $filter .fd`	
	   > lpfilter -f $name -F $filter	
	   > done 6
# accept luna1
	destination "luna1" now accepting requests
# enable luna1	 7
printer "luna1" now enabled 
# lpstat -p luna1 8
 printer luna1 is idle. enabled since Feb 28 11:21 2003.  available.
  1. Defines printer name and sets the device to /dev/null

  2. Defines the interface script for network printers

  3. Sets the destination, protocol, and timeout

  4. Specifies the file content type to which the printer can print directly, and the printer type

  5. Adds a description for the printer

  6. Adds print filters to the print server

  7. Accepts print requests for the printer and enables the printer

  8. Verifies that the printer is ready for printing