Datasheet

“main” (Installation and Administration) 2004/6/25 13:29 page 304 #330
i
i
i
i
i
i
i
i
smb://user:password@workgroup/server/printer
smb://user:password@host/printer
smb://server/printer
The protocol supported by the printer must be determined prior to the
configuration. If the manufacturer does not provide the needed informa-
tion, the command nmap (nmap package) can be used to guess the protocol.
nmap checks a host for open ports. For example:
nmap -p 35,137-139,515,631,9100-10000
13.5.3 Configuration Tasks
Configuring Network Printers
Network printers should be configured with YaST. YaST facilitates the con-
figuration and is best equipped to handle the security restrictions in CUPS
(see Section 2.4.3 on page 69).
Configuring with Command-Line Tools
Alternatively, CUPS can be configured with command-line tools. If the
preparatory work has been done (i.e., if you know the PPD file and the
name of the device), the following steps are necessary:
lpadmin -p <queue> -v <device-URI> \
-P <PPD-file> -E
Do not use -E as the first option. For all CUPS commands, -E as the first
argument implies the 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
Example for a network printer:
lpadmin -p ps -v socket://192.168.1.0:9100/ -P \
/usr/share/cups/model/Postscript-level1.ppd.gz -E
304 13.5. Configuring the Printer