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):||15 April 2009|
|PDF File Size:||3.7 Mb|
|ePub File Size:||19.4 Mb|
|Price:||Free* [*Free Regsitration Required]|
All other trademarks are the property of their respective owners. Sets the accounting period for per-user quotas. The default xups is “true”. The CUPS sample drivers the “drv: To remove a CUPS printer from the printer configuration file, you can use the -x ckps as shown below:. Any print-time option can be defaulted, e. The user ‘root’ is not granted special access – using “-u allow: The material in this document is available under a free license, see Legal for details.
The lpadmin accepts several additional options after -p printername when adding or modifying a printer:. The default value is “true”. The first form of the command -d sets the default printer or class to destination. Lpadmih default program is “none”.
Enter the following at a terminal prompt to install CUPS:. The specified port monitor must be listed in the printer’s PPD file. The value is the integer number of pages that can be printed; double-sided pages are counted as two pages. Enter the following at a terminal prompt to install CUPS: The cupsctl 8 program is used to manage the printing system as a whole, including things like debug logging and printer sharing.
Options The following options are recognized when configuring a printer queue: Prior to editing the configuration file, you should make a copy of the original file and protect it from writing, so you will have the original settings as a reference, and to reuse as necessary. CUPS manages print jobs and queues and provides network printing using the standard Internet Printing Protocol IPPwhile offering support for a very large range of printers, from dot-matrix to laser and many in between.
The lpadmin command is used to create, modify, or delete a class. Upon the conclusion of installation, the CUPS server will be started automatically.
lpadmin – Unix, Linux Command
Use the -v option with the lpinfo command to get a list of supported device URIs and schemes. 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:. The value is the integer number of pages that can be printed; double-sided pages are counted as two pages. Sets the page limit for per-user quotas. You can choose the displayed language by adding a language suffix to the web address so it ends with e.
A complete CUPS install has many package dependencies, but they may all be specified on the same command line. The -p option specifies a printer to create or modify:.
To install CUPS on your Ubuntu computer, simply use sudo with the apt command and give the packages to install as the first parameter. PPD options can be listed using the -l option with the lpoptions command. The -c option specifies a class to create or modify and is combined with the -p option:.
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 as such:.
Any jobs that are pending for the destination will be removed and any job that is currently printed will be aborted. The value is an integer number of kilobytes; one kilobyte is bytes. The second form of the command -p configures the named printer or class.
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.
It can also be used to set the server default printer or class. The third form of the command -x deletes the printer or class destination.
Printing — MacAdmins Community Documentation documentation
The printing system log files track the activity of the scheduler, printer drivers, and backends. The second form of the command -p configures the named printer or class. Names starting with ” ” are interpreted as UNIX groups. The lpadmin command is used to create, modify, or delete lpadmkn printer.
Command-Line Printer Administration
Sets the device-uri attribute of the printer queue. For security reasons, CUPS won’t authenticate a user that doesn’t have a password. If class does not exist it is created automatically.
The name must be defined in the cupsd. When specified before the -d, -p, or -x options, the -E option lpad,in encryption when connecting to the server. Lpadmib additional options are described below. These files should not be edited directly and are an implementation detail of CUPS that is subject to change at any time. The -m option to lpadmin specifies the driver “model” to use for the printer.
To change the resolution of the printer to xdpi, you can use the lpadmin command as shown below:. The default error policy is “stop-printer” for printers and “retry-current-job” for classes.