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):||27 April 2005|
|PDF File Size:||14.81 Mb|
|ePub File Size:||17.68 Mb|
|Price:||Free* [*Free Regsitration Required]|
This configuration information is stored in several files including printers. To change the resolution of the printer to xdpi, you can use the lpadmin command as shown below:.
lpadmin – Unix, Linux Command
The second form of the command -p configures the named lpadmni or class. The lpadmin accepts several additional options after -p printername when adding or modifying a printer:. The material in this document is available dups a free license, see Legal for details. CUPS can be configured and monitored using a web interface, which by lpadminn is available at http: The default operation policy is “default”.
Models other than “everywhere” are deprecated and will not be supported in a future version of CUPS. The cupsctl 8 program is used to manage the printing system as a whole, including things like debug logging and printer sharing.
Also to list all the available ports or interfaces available to configure the printer can be displayed using lpinfo command:.
lpadmin(8): configure cups printers/classes – Linux man page
For security reasons, CUPS won’t authenticate a user that doesn’t have a password. The latter two forms turn user-level access control off.
Some examples of settings you may wish to change initially will be presented here. These files should not be edited directly and are an implementation lpadin of CUPS that is subject to change at any time. The CUPS web interface “http: Each line contains the backend “class” followed by the backend name or a full printer device URI, for example:. The default program is “none”.
The third form of the command -x deletes the printer or class destination. 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:. A complete CUPS install has many package dependencies, but they may all be specified on the same command line.
Sets a System V style interface script for the printer. Enter the following at a terminal prompt to install CUPS: Once you know the correct URI for the printer, set it using the lpadmin command’s -v option:. Sets a PPD option for the printer.
PPD options can be listed using the -l option with the lpoptions 1 command. For example, to share two printers “foo” and “bar” on the local network, run the following commands:.
This printing system is a freely available, portable printing layer which has become the new standard for printing in most Linux distributions. The value is an integer number of seconds; 86, seconds are in one day. 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”.
The name must be one of “abort-job”, “retry-job”, “retry-current-job”, or “stop-printer”.
lpadmin – Unix, Linux Command
Two cupsctl options control the general printer sharing features:. Culs everywhere driver is used for nearly all modern networks printers sold since about The lpadmin 8 program is used to add, modify, or delete destinations, while the lpinfo 8 command is used to list the available printer drivers and backends. The specified port monitor must be listed in the printer’s PPD file.
Names starting with ” ” are interpreted as UNIX groups. For information on contributing see the Ubuntu Documentation Team wiki page.
The name must be defined in the cupsd. The default program is “none”. The second form of the command -p configures the named printer or class. The value is an integer number of lpadmij one kilobyte is lpadmni. All other trademarks are the property of their respective owners. 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 -m option to lpadmin specifies the driver “model” to use for the printer. 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:. It can also be used to set the server default printer or class.
Sets the IPP lpadmim policy associated with the destination. The network class of backends is used for all network protocols. The CUPS sample drivers the “drv: Interface scripts are not supported for security reasons. The default value lpadjin “true”. Interface scripts are not supported by CUPS. In the example above, you may comment out or remove the reference to the Loopback address Sets user-level access control on a destination.
Command-Line Printer Administration
CUPS supports lpadmkn of printers with other computers and mobile devices. This option cannot be specified with the -P option PPD file and is intended for providing support for legacy printer drivers. Sets the page limit for per-user quotas.