Novell LINUX ENTERPRISE SERVER 10 - INSTALLATION AND ADMINISTRATION 11-05-2007 Installation Manual page 463

Table of Contents

Advertisement

23.5.2 Configuring Network Printers 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.1.0:9100/ -P \
/usr/share/cups/model/Postscript-level1.ppd.gz -E
For more options of lpadmin, see the man page of lpadmin(1).
Printer Operation
445

Advertisement

Table of Contents
loading

This manual is also suitable for:

Suse linux enterprise server 10

Table of Contents