This example shows how to add a new attached printer with PPD files. The -n option to the lpadmin command enables you to add a new print queue by specifying PPD files. The following information is used as an example. The information that you provide will vary:
Printer name: paper
Port device: /dev/printers/0
File content type: postscript
PPD file: /usr/lib/lp/model/ppd/Lexmark/Lexmark-Optra_E312-Postscript.ppd.gz
# lpadmin -p paper -v /dev/printers/0 1 # lpadmin -p paper -I postscript 2 # lpadmin -p paper -m standard_footmatic 3 # lpadmin -p paper -n /usr/lib/lp/model/ppd/Lexmark/ \ Lexmark-Optra_E312-Postscript.ppd.gzmake4 # lpadmin -p paper -D "Color printer on third floor, rm 3003" 5 # cd /etc/lp/fd # for filter in *.fd;do > name=`basename $filter .fd` > lpfilter -f $name -F $filter > done 6 # accept paper destination “paper” now accepting requests # enable paper 7 printer “paper” now enabled # lpstat -p paper 8 printer paper is idle. enabled since Feb 28 11:21 2004. available. |
Defines the printer name and the port device that the printer will use
Sets the file content types to which the printer can print to directly
Specifies the interface script for utilizing PPD files
Specifies the PPD file
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 for printing