Novell LINUX ENTERPRISE SERVER 10 SP2 - INSTALLATION AND ADMINISTRATION Installation Manual page 467

Hide thumbs Also See for LINUX ENTERPRISE SERVER 10 SP2 - INSTALLATION AND ADMINISTRATION:
Table of Contents

Advertisement

23.5.1 Configuring CUPS with Command
Line Tools
Apart from setting CUPS options with YaST when configuring a network printer, CUPS
can be configured with command line tools like lpadmin and lpoptions. You need
a device URI consisting of a back-end, such as USB, and parameters, like /dev/usb/
lp0. For example, the full URI could be parallel:/dev/lp0 (printer connected
to the first parallel port) or usb:/dev/usb/lp0 (first detected printer connected to
the USB port).
With lpadmin, the CUPS server administrator can add, remove, or manage class and
print queues. To add a print queue, use the following syntax:
lpadmin -p queue -v device-URI -P PPD-file -E
Then the device (-v) is available as queue (-p), using the specified PPD file (-P).
This means that you must know the PPD file and the name of the device to configure
the printer manually.
Do not use -E as the first option. For all CUPS commands, -E as the first argument
sets use of an encrypted connection. To enable the printer, -E must be used as shown
in the following example:
lpadmin -p ps -v parallel:/dev/lp0 -P \
/usr/share/cups/model/Postscript.ppd.gz -E
The following example configures a network printer:
lpadmin -p ps -v socket://192.168.2.202:9100/ -P \
/usr/share/cups/model/Postscript-level1.ppd.gz -E
For more options of lpadmin, see the man page of lpadmin(1).
During printer setup, certain options are set as default. These options can be modified
for every print job (depending on the print tool used). Changing these default options
with YaST is also possible. Using command line tools, set default options as follows:
1 First, list all options:
lpoptions -p queue -l
Example:
Printer Operation
449

Advertisement

Table of Contents
loading

This manual is also suitable for:

Suse linux enterprise server 10 sp3

Table of Contents