Novell LINUX ENTERPRISE SERVER 11 - ADMINISTRATION Administration Manual page 132

Hide thumbs Also See for LINUX ENTERPRISE SERVER 11 - ADMINISTRATION:
Table of Contents

Advertisement

SMB (Windows Share)
CUPS also supports printing on printers connected to Windows shares. The protocol
used for this purpose is SMB. SMB uses the port numbers 137, 138 and 139.
Example device URIs are
smb://user:password@workgroup/smb.example.com/printer,
smb://user:password@smb.example.com/printer, and
smb://smb.example.com/printer.
The protocol supported by the printer must be determined before configuration. If the
manufacturer does not provide the needed information, the command nmap (which
comes with the nmap package) can be used to ascertain the protocol. nmap checks a
host for open ports. For example:
nmap -p 35,137-139,515,631,9100-10000 printerIP
10.4.1 Configuring CUPS with Command
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 parallel, and parameters. To determine
valid device URIs on your system use the command lpinfo -v | grep ":/":
# lpinfo -v | grep ":/"
direct usb://ACME/FunPrinter%20XL
direct parallel:/dev/lp0
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 device URI 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:
118
Administration Guide
Line Tools

Advertisement

Table of Contents
loading

This manual is also suitable for:

Suse linux enterprise server 11

Table of Contents