System Administration Guide: Advanced Administration

Example—Adding a New Attached Printer With PPD Files by Using LP Print Service Commands

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:


# 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. 
  1. Defines the printer name and the port device that the printer will use

  2. Sets the file content types to which the printer can print to directly

  3. Specifies the interface script for utilizing PPD files

  4. Specifies the PPD file

  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