Only the most commonly used options of the CUPS lpadmin command are shown here. For information about other options, see the lpadmin(8) man page. CUPS stands for Common UNIX Printing System. lpadmin is a command line tool used to configure printer and class queues provided by. CUPS manages print jobs and queues and provides network printing using the . root account enabled on your server, or authenticate as a user in the lpadmin.

Author: Shakree Barisar
Country: Tunisia
Language: English (Spanish)
Genre: Environment
Published (Last): 27 February 2014
Pages: 371
PDF File Size: 1.45 Mb
ePub File Size: 10.48 Mb
ISBN: 820-9-29204-421-6
Downloads: 68035
Price: Free* [*Free Regsitration Required]
Uploader: Yozshutaur

The model “raw” clears any existing PPD file and the model “everywhere” queries the printer referred to by the specified IPP device-uri. To report errors in lpadimn serverguide documentation, file a bug report. The name must be defined in the cupsd. For more examples of configuration directives in the CUPS server configuration file, view the associated system manual page by entering the following command at a terminal prompt:.

Sets the binary communications program to use when printing, “none”, “bcp”, or “tbcp”. The CUPS sample drivers the “drv: This printing system is a freely available, portable printing layer which has become the new standard for printing dups most Linux distributions.

Enter the following at a terminal prompt to install CUPS: The value is an integer number of seconds; 86, seconds are in one day. To enable listening for all network interfaces for which a certain hostname is bound, including the Loopback, you could create a Listen entry for the hostname socrates cupe such:.


To remove a CUPS printer from the printer lpzdmin file, you can use the -x option as shown below:. Sets the device-uri attribute of the printer queue.

Sets the IPP operation policy associated with the destination. The -p option specifies a printer to create or modify:. To change the resolution of the printer to xdpi, you can use the lpadmin command as shown below:.

The user ‘root’ is not granted special access – using “-u allow: The value is an integer number of kilobytes; one kilobyte is bytes. The name must be one of “abort-job” abort the job on error”retry-job” retry the job at a future time”retry-current-job” retry the current job immediatelyor “stop-printer” stop the printer on error.

The default error policy is “stop-printer” for printers and “retry-current-job” for classes. The printing system log files track the activity of the scheduler, printer drivers, and backends. PriSets the kilobyte limit for per-user quotas. The lpadmin accepts several additional options after -p printername when adding or modifying a printer:.

Use the -m option with the lpinfo 8 command to get a list of supported models. Destinations are individual printers and classes pools of printers.

lpadmin(8): configure cups printers/classes – Linux man page

Sets the accounting period for per-user quotas. Classes are associated with one or more printers and are typically used to distribute print jobs amongst a group of printers or provide lpaxmin or high availability when printing.


Sets a PPD option for the printer. If the error log does not show enough information to troubleshoot any problems you encounter, the verbosity of the CUPS log can be increased by changing the LogLevel directive in the configuration file discussed below to “debug” or even “debug2”, which logs everything, from the default of “info”.

Names starting with ” ” are interpreted as UNIX groups.

To add a user to the lpadmin group, run at the terminal prompt: If you make this change, remember to change it back once you’ve solved your problem, to prevent the log file from becoming overly large. The web interface can be used to perform all printer management tasks.


If problems occur lpadmon the log files do not provide sufficient details to diagnose the problem, you can enable debug logging using the cupsctl command:. For example, the following command creates a destination for a printer at IP address The second form of the command -p configures the named printer or class.

For security reasons, CUPS won’t authenticate a user that doesn’t have a password.