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.
|Published (Last):||24 July 2013|
|PDF File Size:||6.79 Mb|
|ePub File Size:||9.13 Mb|
|Price:||Free* [*Free Regsitration Required]|
Names starting with ” ” are interpreted as UNIX groups. Sets the page limit for per-user quotas. Lpwdmin differs from the System V version which requires the root user to execute this command. The double meaning of the -E option is an unfortunate historical oddity.
lpadmin – Unix, Linux Command
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.
For security reasons, CUPS won’t authenticate a user that doesn’t have a password. The lpadmin command communicates with the scheduler cupsd to make changes to the printing system configuration. When specified before the -d, -p, or -x options, the -E option forces encryption when connecting to the server.
Use the -v option with the lpinfo 8 command to get a list of supported device URIs and schemes.
The value is an integer number of seconds; 86, seconds are in one day. The second form of the command -p configures the named printer or class. The value is an integer number of kilobytes; one kilobyte is bytes. The second form of the command -p configures the named lpaadmin or class.
Use the -m option with the lpinfo 8 command to get a list of supported models. PPD options can be listed using the -l option with the lpoptions command. The additional options are described below.
lpadmin(8): configure cups printers/classes – Linux man page
If specified, this option overrides the -i option interface script. In the example above, you may comment out or remove the reference to the Loopback address Subsequent print jobs lpadmjn via the lp or lpr commands will use this destination unless the user specifies otherwise with the lpoptions command. The CUPS sample drivers the “drv: The default value is “true”.
Otherwise, enables the destination and accepts jobs; this is the same as running the cupsaccept 8 and cupsenable 8 programs on the destination. Any jobs that are pending for the destination will be removed and any job that is currently printed will be aborted. Models other than “everywhere” are deprecated and will not be supported in a future version of CUPS. The specified port monitor must be listed in the printer’s PPD file.
The lpadmin command is used to create, modify, or delete a printer. The first form of the command -d sets the default printer or class to destination. In order to perform administrative tasks via the web interface, you must either have the root account enabled on your server, or authenticate as a user in the lpadmin group.
If problems occur and the log files do not provide sufficient details to diagnose the problem, you can enable debug logging using the cupsctl command:. Interface scripts are not supported for security reasons. For example, if you are the Administrator for the CUPS server, and your e-mail address is ‘bjoy somebigco.
For example, the following command creates a destination for a printer at IP address Port Listen on port on all interfaces.
If the web address has no language suffix, the preferred language specified in your web browser’s settings is used. This option cannot be specified with the -P option PPD file and is intended for providing support for legacy printer drivers. Upon authenticating with your user password, the packages should be downloaded and installed without error. Enables the destination and accepts jobs; this is the same as running the cupsaccept and cupsenable programs on the destination.
CUPS can be configured and monitored using a web interface, which by default is available at http: Use the -m option with the lpinfo command to get a list of supported models.
Deprecated Options The following lpadmin options are deprecated: To report errors in this serverguide documentation, file a bug report. Enter the following at a terminal prompt to install CUPS:. The specified port monitor must be listed in the printer’s PPD file.
Print jobs sent to a class are forwarded to the next available printer in the class.
For example, to share two printers “foo” and “bar” on the local network, run the following commands:. Installation Configuration Web Interface References. Sets the error policy to be used when the printer backend is unable to send the job to the printer.
The -p option specifies a printer to create or modify:. All other trademarks are the property of their respective owners. The first form of the command -d sets the default printer or class to destination. The CUPS web interface “http: Sets the device-uri attribute of the printer queue.
The latter two forms turn user-level access control off. This printing system is a freely available, portable printing layer which has loadmin the new standard for printing in most Linux distributions. The name must be one of “abort-job”, “retry-job”, “retry-current-job”, or “stop-printer”.
If the resulting class becomes empty it is removed.