
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
Содержание LINUX ENTERPRISE SERVER 10 - INSTALLATION AND ADMINISTRATION 11-05-2007
Страница 1: ...SUSE Linux Enterprise Server www novell com 10 May 11 2007 Installation and Administration...
Страница 14: ......
Страница 19: ...Part I Deployment...
Страница 20: ......
Страница 60: ......
Страница 128: ......
Страница 243: ...Part II Administration...
Страница 244: ......
Страница 274: ......
Страница 312: ......
Страница 348: ......
Страница 380: ......
Страница 381: ...Part III System...
Страница 382: ......
Страница 438: ......
Страница 452: ......
Страница 478: ......
Страница 486: ......
Страница 498: ......
Страница 512: ......
Страница 558: ......
Страница 559: ...Part IV Services...
Страница 560: ......
Страница 652: ......
Страница 670: ......
Страница 742: ......
Страница 754: ......
Страница 796: ......
Страница 817: ...Part V Security...
Страница 818: ......
Страница 858: ......
Страница 886: ......
Страница 910: ......
Страница 911: ...Part VI Troubleshooting...
Страница 912: ......
Страница 924: ......