System Administration Guide

How to Set Up a Custom Printer Interface Program

  1. Log in as superuser or lp on the print server.

  2. Find your next step based on whether you have a custom printer interface program.

    If You ... 

    Then ... 

    Need to create a custom printer interface program 

    Go to Step 3.

    Already have a custom printer interface program 

    Go to Step 5.

  3. Copy the standard printer interface program.


    # cp /var/spool/lp/model/standard custom-interface
    
  4. Change the copy of the standard printer interface program to meet your needs.

    Refer to the description of the program in "The Standard Printer Interface Program" to determine what you need to change.

  5. Set up the custom printer interface program for a specific printer.


    # lpadmin -p printer-name -i custom-interface
    
    -p printer-name
    

    The printer that will use the custom printer interface program. 

    -i custom-interface
    

    Name of the custom printer interface program. 

    The custom printer interface program is registered with the LP print service, and will be used by that printer when users submit print requests.

  6. Verify that the custom printer interface program has been added in the /etc/lp/printers/printer-name/configuration file.

Examples--Setting Up a Custom Printer Interface Program

In the following example, the command sets up a custom printer interface program named custom for the printer luna.


# lpadmin -p luna -i custom

In the following example, the command sets up a custom printer interface program that the system venus is using on the printer asteroid.


# lpadmin -p asteroid -e venus