This chapter is divided in two parts: Installing and managing printers, devoted to people administering their machine; and Printing documents, that explains how to use an advanced printing tool: XPP.
cups being now the default printer manager for Mandrake Linux, all necessary packages should be installed by default. If it is not the case, make sure that at least the packages cups, cups-drivers and xpp are installed.
![]() | There are basically two ways to manage your printers with cups: a web interface and an application for KDE called kups. We already talked about the latter in the User Guide and we will now concentrate on the web interface as it is accessible from any platform. |
From your preferred web browser, simply type http://localhost:631/ in the location or URL field. It will display the main cups menu (figure 12-1).
You can now browse the configuration interface like a web site.
Depending whether your LAN already has machines with cups installed and running, you may see a list of printers under the Manage Printers link. We will assume that you are now installing a printer connected to your stand-alone computer. For more complex configurations consult the On-Line Help.
The Manage Printers page (figure 12-2) should look empty for now.
To configure a new printer, now click on the Add Printer button at the bottom of the page. It will begin a four-step procedure. To go from one step to the following click the Continue button after filling-in all required fields on the page.
![]() | The first time you want to perform an administrative task with cups, it will ask you for the root password (figure 12-3). Simply provide the root login and password here. |
This first form presents three fields you can fill-in at your convenience to help other users know which physical printer they deal with. The text has no influence on the printer's behavior, but fill them in carefully anyway, to save confusion later.
The printer's name is the only required field here.
You need to tell cups where the printer is physically located. For a printer directly connected to your computer, then choose Parallel Port #1, Serial Port, or USB depending on the type of connection.
Many types of connections are available:
For printers directly connected to a local area network.
For printers that directly implement this type of behavior, or printers served by this type of queue. Unix OSes, generally provide this type of connection.
For printers served by Windows servers. Note that to connect to that kind of printer, you need to install the Samba package.
It is now time to tell cups which printer you are installing. You simply need to highlight the manufacturer's name in the list.
This is the final step, according to your previous choice, the list now shows all models from that specific manufacturer. Choose your model carefully.
If all goes well, you should now see your new printer in the Printers page.
Before testing the printer, you must ensure that the paper size configuration for that printer is correct. Go to the printer page, and click on Configure Printer. From the printer's parameters page, go to the General section and choose the appropriate Page Size. Some printers refuse to print if they do not have the appropriate paper loaded.
![]() | Concerning the parameters page: whenever you change a parameter in a section, you must click the corresponding Continue button in order to make your changes take effect. |
By default whenever you configure a printer on your machine, it becomes available for other people on your local area network. If you prefer that people should'nt be able to print on your printer, you need to manually edit the cups configuration file: /etc/cups/cupsd.conf. You simply need to replace the line
#BrowseInterval 30 |
by
BrowseInterval 0 |
Also, this file contains a lot of options that allow you to finely tune your printer server. In particular, you can restrict access from specific machines or sub-networks. For more information consult the many comments within the configuration file or consult the online help from the web interface.
![]() | Whenever you make changes to the configuration file, do not forget to restart the cups daemon server by issuing:
|
This feature is mostly useful for very busy printers, but you may need it occasionally to cancel a wrong printout of 10,000 pages for example. When you send a job to a printer you can consult your jobs, and possibly all jobs from all users if you are the administrator for the machine hosting that printer, by displaying the page specific to the printer (figure 12-8).
You can then perform two different actions on a specific job:
Hold Job: To put the job on a waiting list, it'll be printed only when you come back to this job and press the green Release Job button.
Cancel Job: to definitely cancel this job (take it out of the queue).
If you wish to make your printer temporarily unavailable (to change the toner for example) you can simply click on the Reject Jobs button. Then when the printer is ready to accept jobs again, click on the Accept Jobs button.
![]() | If you are interested in job handling capabilities, please refer to the kups program. |
[1] | Common Unix Printing System |