Printing With CUPS
Summary:Setup And Configuration I
- Printerdrake
- KUPS
- WWW Interface
- lpadmin
- Installing Postscript Printers
- Configuring The CUPS Daemon
lpadmin
There are also special tools like
kupsdconf
~PrinterDrake
'~PrinterDrake' is Mandrake's default configuration tool for CUPS. It is first started during the installation of Linux Mandrake 7.2 when you are configuring your printer(s). You can also call it when your system is installed by clicking on the printer icon in "~DrakConf" or by typing/usr/sbin/printerdrake &
For many printers there is more than one choice. The best choice are usually the GIMP-Print drivers: the "CUPS + GIMP-print v4.0" drivers allow a comfortable color calibration, and the "Foomatic + stp-4.0 (GIMP-Print)" drivers have more adjustment possibilities.
"Foomatic" means that this PPD file is generated by linuxprinting.org, the second part refers to the Ghost Script driver. "CUPS + GIMP-Print" means that the driver is based on the filters provided with CUPS and on the special CUPS drivers of GIMP-Print. You should consult linuxprinting.org/printer_list.cgi, to see which driver is recommended for which printing task on your printer. Do not hesitate to set up more than one queue for one printer to be able to choose between different drivers. If the printed test page is of poor quality or at a wrong paper size, you usually should accept this driver anyhow.
Many drivers (especially GIMP-Print) are preconfigured poorly and thus the test pages of a rather bad quality. Unfortunately, '~PrinterDrake' has no possibility to change the default options. You should run 'Kups' or the WWW administration tool afterward to fine tune the options.
When you answer "No", you get back to the model menu to try another driver. article index
KUPS
The most sophisticated printer administration program for CUPS is the KDE-based 'Kups' (Menu: "Configuration"/"Printing"/"Kups", command line:kups &
The most important thing here are the "Configure Printer" and "Test Printer" options in the printer menus. They let you change the default options (like resolution, color/gray scale, paper size, and so on) and print a test page, so you can optimize the defaults for your typical printing tasks. For changing the printer's name, driver, or description, use the "Properties" button in the lower right corner of the main window (only when the "Infos" view and a local printer is selected). For adding a printer or class there is a very sophisticated wizard: you simply choose "Printer" and then "Add" in the menus of CUPS and the wizard starts. It auto-detects local printers (parallel, serial, USB) and when you install an SMB (printer on server running Windows) or a Socket (printer connected by Ethernet) printer, the wizard scans the local network to search for available printers of this type. Just press the "Scan" button on the appropriate screen of the wizard. Afterward you simply click on the desired Socket printer or you choose the SMB server in the workgroup tree and double-click it, and then choose the desired printer. In the model/driver selection you can look at the available options with the "Show Options" button before you choose the driver for your printer. The options dialog also shows the driver type (for example "CUPS + GIMP-Print"). If there is more than one driver for a model entry, you get a little menu to choose the driver from. Note that for some driver entries the model name is preceded by the manufacturer's name whereas for others not, so check both locations in the list (especially when you search for the "CUPS + GIMP-Print" drivers). To configure a remote CUPS server, choose "File" and then "options" in the menu and replace the "localhost" in the "CUPS host" field with the name of the server. If you have started 'Kups' as 'root', you can also configure the CUPS daemon by choosing "File" and then "Configure CUPS daemon" in the menu. article index
WWW Interface
The WWW interface of CUPS can either be invoked by "Configuration"/"Printing"/"CUPS WWW admin tool" or by pointing your browser at http://localhost:631/ (local CUPS daemon) or to http://lpadmin
To add, remove and configure printer and class queues from the command line or from scripts ('~PrinterDrake' is such a script) uselpadmin
Here are some examples: To add a queue named "deskjet" for an HP ~DeskJet 840C on the USB enter: lpadmin -p deskjet -E -v usb:/dev/usb/lp0 -m HP/~DeskJet_840C-stp.ppd To change the driver for the "deskjet" queue and add some information, enter: lpadmin -p deskjet -m HP/gimp-print/pcl-840.ppd -D 'New driver1.1 ' You get information about the available PPD files with
poll_ppd_base
lpadmin -x laserjet
lpadmin -d lp
man lpadmin
Installing Postscript Printers
All Postscript printers (with hardware Postscript interpreters) are perfectly supported by CUPS and thus by Linux Mandrake 7.2.You only need the PPD file of your printer supplied by the printer's manufacturer. You find this file either on the CDs or floppy disks that came with the printer (as part of the Windows/Mac OS drivers), or you can download it from the web site of the printer's manufacturer or from the web site of Adobe. On Adobe's site all PPDs are in Windows-self-extracting "
.EXE
unzip -L {filename}.EXE
/usr/share/cups/model/
service cups restart
Configuring The CUPS Daemon
The configuration of the CUPS daemon (broadcasting behavior, directories, access permissions, and so on) is stored in the file/etc/cups/cupsd.conf
service cups restart
kupsdconf
kupsdconf
- "0" for a size or a quantity normally means something special, like "unlimited" or similar.
- The line "Printcap /etc/printcap" ('kupsdconf': "Server"/"Misc") lets the CUPS daemon generate a simple '/etc/printcap' file only containing the names of the printers. This is necessary for printing from KDE programs and from many other applications.
- Usually, the line "~FilterLimit 0" ('kupsdconf': "Server"/"Misc") should allow an unlimited number of print jobs to be done simultaneously. Due to a bug in CUPS this does not work. Therefore in Linux Mandrake is used.
~FilterLimit 999999
- In Mandrake, ('kupsdconf': "Browsing") is set. This means that CUPS does not generate any printer classes automatically. If you set this options to "On", you automatically get a so-called "implicit" class for every set of eponymous printers.
~ImplicitClasses Off
Example: You have an Ethernet-connected printer and you define a queue for it on two servers, on both of them with the name "lp". Withyou do not only get the two entries "lp@server1" and "lp@server2", you also get a class "lp", which forward printing jobs to the first of the two servers which responds. So you have redundancy: when one of the servers is down, you print through the other.~ImplicitClasses On
- With or
~BrowsePoll {server}
('kupsdconf': "Browsing"/"Connection",~BrowsePoll {server}:{port}
can be the name or the IP address of the desired server), you can poll the printer information from a server which is not in your local network. So you can also print on printers outside your local network.{server}
- With the line ('kupsdconf': "Browsing"/"Timeouts"), you can turn off broadcasting of your CUPS daemon. So other machines running CUPS do not get entries for your local printers and they will only be available on your machine.
~BrowseInterval 0
Related Resources:
See Resources on article index Modified: Nov. 13, 2000Author: Till Kamppeter Legal: This page is covered by the GNU Free Documentation License. Standard disclaimers of warranty apply. Copyright LSTB and Mandrakesoft.
Printing With CUPS
Version 1.3 last modified by AdminWiki on 22/03/2004 at 09:44
Version 1.3 last modified by AdminWiki on 22/03/2004 at 09:44
Document data
- Lost account?
- Join the community, be part of the Club: it's free!
- Get the PWP Download Subscription!
Mandriva.com
Store
Club

