System Administration Guide: Printing

ProcedureHow to Set Up a Custom Printer Interface Program

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

  2. Copy the standard printer interface program.


    # cp /var/spool/lp/model/standard  custom-interface
    
  3. (Optional) If you already have a custom printer interface program, go to Step 5.

  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

    Specifies the printer that will use the custom printer interface program.

    -i

    Is the 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.


Example 7–3 Setting Up a Custom Printer Interface Program

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


# lpadmin -p luna -i custom


Example 7–4 Copying a Custom Printer Interface Program

This example shows how to copy a custom printer interface program from the printer venus to the printer asteroid.


# lpadmin -p asteroid -e venus