System Administration Guide: Solaris Printing

ProcedureHow to Specify a PPD File When Adding a New Printer by using LP Print Commands

When you use the lpadmin command with the -n option to specify a PPD file, you are required to provide the full path to the PPD file. If you choose to use a PPD file that is located in a different directory, you must specify the full path to that file.

  1. Become superuser or assume an equivalent role.

    Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.

  2. To specify a PPD file, use the lpadmin command with the following options:

    # lpadmin -p foo -n /home/user/stuff/ppd-file -m \
    standard_foomatic -I postscript -v /device

    Specifies the printer name


    Specifies to use a PPD file


    Specifies the interface script for utilizing PPD files


    Specifies the port device that the printer will use

Example 4–11 Specifying a PPD File When Setting Up a Printer

For example, to specify the xyz.ppd file that is located in the user's home directory, you would type the following command:

# lpadmin -p foo -n /home/user/stuff/xyz.ppd -m \
standard_foomatic -I postscript -v /device