System Administration Guide: Advanced Administration

How to Set Up a Custom Printer Interface Program

  1. Log in as superuser, lp, or assume an equivalent role on the print server.

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

    Custom Printer Interface Status 

    Action 

    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

The following example shows how to set up a custom printer interface program named custom for the printer luna.


# lpadmin -p luna -i custom

The following example shows how to set up a custom printer interface program that the system venus is using on the printer asteroid.


# lpadmin -p asteroid -e venus