This example shows how to add a new network printer with PPD files. The -n option to the lpadmin command enables you to add a new print queue by specifying PPD files. The commands used in this example must be executed on the print server. The following information is used as an example only. The information that you provide will vary.
Printer name : luna1
Device: /dev/null
Interface: /usr/lib/lp/model/netstandard_foomatic
Network printer access name: nimquat:9100
Protocol: tcp
Timeout: 5
File content type: postscript
PPD file: /usr/lib/lp/model/ppd/manufacturer/ppdfile
# lpadmin -p luna1 -v /dev/null 1 # lpadmin -p luna1 -m netstandard_foomatic 2 # lpadmin -p luna1 -o dest=nimquat:9100 -o protocol=tcp -o timeout=5 3 # lpadmin -p luna1 -I postscript 4 # lpadmin -p luna1 -n /usr/lib/lp/model/ppd/manufacturer/ppdfile 5 # lpadmin -p luna1 -D "Second floor color printer"6 # cd /etc/lp/fd # for filter in *.fd;do > name=`basename $filter .fd` > lpfilter -f $name -F $filter > done 7 # accept luna1 destination "luna1" now accepting requests # enable luna1 8 printer "luna1" now enabled # lpstat -p luna1 9 printer luna1 is idle. enabled since Mon Apr 19 15:31:15 2004. available. |
Defines printer name and sets the device to /dev/null
Defines the interface script for network printers
Sets the destination, protocol, and timeout
Specifies the file content types to which the printer can print to directly
Specifies the PPD file to use
Adds a description for the printer
Adds print filters to the print server
Accepts print requests for the printer and enables the printer
Verifies that the printer is ready to print