Quick Start Guide

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
14.5.1 Conguring CUPS with Command Line Tools
CUPS can be congured with command line tools like lpinfo, 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 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 specied PPD le (-P). This
means that you must know the PPD le and the device URI to congure the printer
manually.
Do not use -E as the rst option. For all CUPS commands, -E as the rst 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 congures 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(8).
During printer setup, certain options are set as default. These options can be modied
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:
Resolution/Output Resolution: 150dpi *300dpi 600dpi
The activated default option is identied by a preceding asterisk (*).
Printer Operation 171