CUPS and Gimp-Print Introduction CUPS is an acronym which stands for Common Unix Printing System. It is assumed that the reader has properly installed the CUPS software and the Gimp-Print software. This section will discuss adding a printer to CUPS that uses a Gimp-Print printer driver, as well as how to modify the various settings supplied by Gimp-Print. This will be a rather quick explanation, as the CUPS software is quite well documented, and it is not my intention to attempt to duplicate the CUPS documentation here. CUPS Printer Installation This explanation will use the web interface provided by CUPS. First, aim your favorite web browser at the CUPS server. The following screen should appear within your browser.
The CUPS Startup Window The CUPS Startup Window
Now, you may click on either the word Printers in the bar at the top of the page, or you may click on the Manage Printers text. In either case, the next screen you see will look like this one if you have not yet configured any printers.
The CUPS Printers Window The CUPS Printers Window
At this time, click on the Add Printer button. You will then see the Admin screen (shown below).
The CUPS Admin Window The CUPS Admin Window
Notice in the screenshot that the three boxes are shown after the author filled them in for his printer at home. You will need to fill in an appropriate name of your printer, its location, and a description which meets your own needs. Once this is done, click on the Continue button, and then this screen will appear.
The CUPS Admin Device Window The CUPS Admin Device Window
Click on the drop down menu next to the word Device and a list of possible printer devices appears. Select the device appropriate for your printer. Note that there are a range of serial, parallel, USB, and other devices from which to choose. Once the selection is made, click the Continue button. Now, this screen appears.
The CUPS Admin Model/Driver Window The CUPS Admin Model/Driver Window
Caution Regarding USB Printers CUPS versions 1.1.11 and later REQUIRE the user to insure that the desired USB printer is powered on AND physically connected to the USB bus BEFORE starting the CUPS software. CUPS must see the USB printer when the software starts. The CUPS software is typically started when the computer boots. Note that one cannot simply plug in the USB printer and power it on after CUPS has started. (Note that this does not apply to parallel port printers). If the USB printer was not connected and powered on at the time CUPS was started, there will not be a USB printer shown in the list of devices on the CUPS Admin Device Window (see ). In this event, stop the CUPS software, properly connect and power on the USB printer, and restart the CUPS software. From the list of devices shown in the CUPS Admin Device Window (see ), a clever user might attempt to avoid this issue by selecting Internet Printing Protocol and then enter something similar to 'usb:/dev/usblp0' in the next screen. However, this fails later in the configuration process with a "client_error_not_possible" error message with no other explanation. Note that entering 'file:/dev/usblp0' will not work either. While CUPS will allow this, printing will not actually work in some situations. CUPS versions 1.1.10 and earlier exhibit similar behavior with regard to not displaying the USB printer if it was not connected to the USB bus and powered up prior to starting the CUPS software. However, these versions of CUPS will indeed allow the user to enter the name of the USB connection, unlike versions 1.1.11 and later. Select the manufacturer of your printer and click the Continue button. A window will appear which asks you to select the specific model number for your printer. Scroll through the long list and find the model number for your printer. Notice carefully that there are many different languages supported for each printer, as denoted by the initials in parenthesis. (en) would be for English, (da) for Danish, (sv) for Swedish, (fr) for French, (no) for Norwegian, (pl) for Polish, and (en_GB) for British English (see ). Also take note of the Gimp-Print revision for the driver, and ensure that it is indeed the version of Gimp-Print which you have most recently installed. Once you have made the proper selection, click on the Continue button.
The 2nd CUPS Admin Model/Driver Window The 2nd CUPS Admin Model/Driver Window
The CUPS Admin Success Window The CUPS Admin Success Window
Congratulations! You should now see the CUPS window indicating that your printer was successfully installed. Notice the sentence which reads "Printer your_printer has been added successfully". Click on your_printer, which will be the underlined name for your printer.
The CUPS Window for Your Printer The CUPS Window for Your Printer
After clicking on your_printer (epson_870 in this example), a window will appear similar to that shown in . It would probably be a good idea at this point to click on the Print Test Page button to ensure that everything is working properly. Take note of the Gimp-Print revision printed on this screen and confirm once again that it is the expected revision.
Configuring your Printer in CUPS With reference to , click on the Configure Printer button. A partial screenshot of the printer configuration window appears in . The contents of this window will vary depending on precisely which printer you selected when you configured CUPS for your printer. The screenshot shows the selections made by the author for his printer. The individual selections will not be explained in detail here, as they are the same selections which are available when using the Gimp-Print plugin to the GIMP. These selections are explained in detail in various sections of .
The CUPS Printer Cofiguration Window The CUPS Printer Configuration Window
Using CUPS from the Command Line It is possible to use the CUPS printing system from the command line. While this document will not delve into all of the specifics of the CUPS command line interface, there are portions of this interface which are specific to the Gimp-Print software. The command line is in some cases a more convenient way to generate printed output (e.g. when printing from a script). However, most people (including the author) cannot easily predict what a command line option of "-o stpCyan=1350" will do to the output. It is therefore a good idea to use the GIMP to view the image and the Gimp-Print plugin to preview these settings before relying on the command line. When using CUPS from the command line, the command will have this general format: \ -o option2= \ /path/to/printfile ]]> When typing the command directly onto the command line, put all of the command line options on one line, and do not type the "\" characters. The list of possible options which are specific to Gimp-Print, followed by some of the supported choices, are shown below: -o InputSlot= -o MediaType=< ..| Inkjet | Plain | GlossyPaper | ...> -o Resolution=<360sw | 360swuni ...| 1440x720 > -o ColorModel= -o stpBrightness=<0...2000> -o stpContrast=<0...2000> -o stpCyan=<0...4000> -o stpDensity=<0...2000> -o stpDither=<0...4000> -o stpGamma=<0...4000> -o stpImageType= -o stpInkType= -o stpMagenta=<0...4000> -o stpSaturation=<0...9000> -o stpYellow=<0...4000> ]]> For more detailed information, consult the appropriate sections of .