Log in as superuser or lp on the print server.
Determine 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. |
Copy the standard printer interface program.
# cp /var/spool/lp/model/standard custom-interface |
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.
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.
Verify that the custom printer interface program has been added in the /etc/lp/printers/printer-name/configuration file.
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 |