Installation
sudo apt-get install cupsys
Configuration
Save Config File sudo cp /etc/cups/cupsd.conf /etc/cups/cupsd.conf.original sudo chmod a-w /etc/cups/cupsd.conf.original vi /etc/cups/cupsd.conf
ServerAdmin: To configure the email address of the designated administrator of the CUPS server, simply edit the /etc/cups/cupsd.conf configuration file with your preferred text editor, and modify the ServerAdmin line accordingly. For example, if you are the Administrator for the CUPS server, and your e-mail address is ' Diese E-Mail-Adresse ist vor Spambots geschützt! Zur Anzeige muss JavaScript eingeschaltet sein!', then you would modify the ServerAdmin line to appear as such:
ServerAdmin
Diese E-Mail-Adresse ist vor Spambots geschützt! Zur Anzeige muss JavaScript eingeschaltet sein!
Other Help
man cupsd.conf
Cups Start/Stop
sudo /etc/init.d/cups restart , stop , start
Cups WEB Access
Listen: By default on Ubuntu, the CUPS server installation listens only on the loopback interface at IP address 127.0.0.1. In order to instruct the CUPS server to listen on an actual network adapter's IP address, you must specify either a hostname, the IP address, or optionally, an IP address/port pairing via the addition of a Listen directive. For example, if your CUPS server resides on a local network at the IP address 192.168.10.250 and you'd like to make it accessible to the other systems on this subnetwork, you would edit the /etc/cups/cupsd.conf and add a Listen directive, as such:
Listen 127.0.0.1:631 # existing loopback Listen Listen /var/run/cups/cups.sock # existing socket Listen Listen 192.168.10.250:631 # Listen on the LAN interface, Port 631 (IPP)
In the example above, you may comment out or remove the reference to the Loopback address (127.0.0.1) if you do not wish cupsd to listen on that interface, but would rather have it only listen on the Ethernet interfaces of the Local Area Network (LAN). To enable listening for all network interfaces for which a certain hostname is bound, including the Loopback, you could create a Listen entry for the hostname socrates as such:
Listen socrates:631 # Listen on all interfaces for the hostname 'socrates'
or by omitting the Listen directive and using Port instead, as in:
Port 631 # Listen on port 631 on all interfaces
Gibet es Zugriffsprobleme muss an Allow Directiven im Config File gebastelt werden
Cups Commandline Commands
Cups Printing
As a user, in order to print to the default printer, issue the command:
# lpr filename
Print to specific printer:
# lpr -P printer filename
Print multiple copies. For example, in order to print 4 copies:
# lpr -P printer -#4 filename
CUPS status information
As a user, issue the lpstat command with proper options:
# lpstat <options> Options can be: * -t : show all CUPS info * -d : show default printer * -p : show all printers * -a : show all printers that accept jobs * -o : show active print jobs
Cancel a print job
As a user, issue the command:
# lprm <job-id>
Only the jobs that have been submitted by the same user can be canceled.
Setting options for a specific print job
Sometimes, the user needs specific print options. A general way to define specific options for a print job is:
# lpr -P printer -o option1=value -o option2=value filename
Modify the default print options
A user can define his own options for all his print jobs for a specific printer. They are saved in the ~/.lpoptions file and override the default options that have been defined by the system administrator for this specific CUPS printer.
Add or modify print options
A user can set his own default options for a specific CUPS printer by issuing the command:
# lpoptions -p printer -o option1=value -o option2=value
Remove print options
Previously defined print options can be removed from ~/.lpoptions by:
# lpoptions -p printer -r option1 -r option2
List a printer’s options
To list print queue’s current options:
# lpoptions -p printer
To list print queue’s current options:
# lpoptions -p printer -l
Create sets of options – Printer Instances
A very useful CUPS feature is that sets of options can be defined. These can be system-wide if they are set by root, or user specific if they are set by a user. Printer instances are extra options for a specific printer that are saved as an extra printer in the form printer/set. This virtual printer’s settings override the default options.
To create a printer instance, as a user issue the command:
# lpoptions -p printer/set1 -o option1=value -o option2=value
To delete a printer instance issue the command:
# lpoptions -x printer/set1
The printer instance is listed as a printer in lpstat. The user can send a document to the printer instance:
# lpr -P printer/set1 filename
Appendix I – Common print options
Some common print options are listed below. If an option accepts a value, then it is listed in the form option=value:
landscape – for landscape printing media=A4 – check your ppd file for possible media values Collate=true | false – useful when printing multiple copies sides=two-sided-short-edge – used for landscape prints [the default is sides=one-sided] sides=two-sided-long-edge – used for portrait prints [the default is sides=one-sided] page-ranges=1-4,7,9-12 – print specific pages or page ranges page-set=odd | even – print only odd or even pages outputorder=normal | reverse – the pages are printed from first to last or the other way around cpi=10 – characters per inch lpi=6 – lines per inch columns=2 – format the text in two or more columns page-left=value – specify the left margin in points [1pt = 1/72inch] page-right=value – specify the right margin in points [1pt = 1/72inch] page-top=value – specify the top margin in points [1pt = 1/72inch] page-bottom=value – specify the bottom margin in points [1pt = 1/72inch] job-sheets=none – front and back cover pages job-sheets=standard job-sheets=classified,classified