|
|
||
|
||
|
|
| Red Hat Documentation |
Chapter 5. Setting Up Your PrinterMost new Red Hat Linux users want to immediately set up their printer. Here, we'll cover some basic steps to configure a parallel printer on your system. For the most part, the process isn't too complicated, regardless of whether you're using GNOME or KDE.
Because Linux is a multi-user, multi-tasking operating system, it can handle a variety of printing jobs at once. You could have multiple users on the system, all of whom want to send their work to a printer. Linux dutifully handles these requests by spooling them -- storing and printing the files in the order in which they were received. Even if you're the only user on your system, you're still going to send your work to the print spool, where the files wait until it's their turn to be printed. There are some terms and conditions you should know:
Regardless of whether you're using GNOME or KDE, you can configure your printer with Printtool. Printtool provides a graphical means for setting up and managing your printer. Using PrinttoolThe file /etc/printcap defines how lpr should process the print jobs. If you were to take a peek at the file, you'd find it looks something like the following excerpt:
It's not pretty, and unless you know exactly what you're doing, you shouldn't edit the file. Instead, use the utility Printtool to set up the printer (and /etc/printcap) for you. To use Printtool, you'll have to "be root." Whenever you make changes to your system configuration -- such as adding or modifying hardware settings, installing or uninstalling software -- you must be superuser, or root. To become root from your user account:
See Figure 5-1 for an example of how to become root. As you can see in the previous figure, when you're root your prompt changes from a $ to a #. Type printtool -- one word, without capitalization. When the utility starts, you'll see a window similar to Figure 5-2. At first, you won't find any printers listed, because you haven't added a printer to /etc/printcap. Click on the Add button to add your printer. Next, you'll be asked what kind of printer you want to add (see Figure 5-3). Choose from the following:
For this example, we'll add a local printer. Highlight the entry Local Printer and select the OK button. When you select your printer type, Printtool will attempt to detect any printers which are attached to your parallel port; you'll then see the results (see Figure 5-4). Click on the OK button to continue to the main Printtool window.
In our example, a parallel port printer was detected at /dev/lp0. Click on the OK button to continue. In the next dialog (see Figure 5-5), you can specify details about your printer, such as a name of the printer and its related spool directory, the location of the printer device and other options. In the Names field, you can specify a name for your print queue (where print jobs are sent), and the default directory to which you want the jobs sent (the Spool Directory entry). You can probably leave these settings unchanged; note that giving a printer entry the name lp makes it the default printer. The Input Filter contains information about your specific printer and its formatting requirements. To add your printer's information, click on the Select button. The Configure Filter dialog will open. Once the Configure Filter dialog opens, your tasks are to perform the following:
If you're unsuccessful at printing the test page -- or you need to modify the way it printed -- return to the Configure Filter dialog to select a different filter or change settings for your current filter. If you're experiencing trouble, remember to check The Hardware Compatibility List and the The Linux Printing HOWTO, cited in the beginning of this chapter. Selecting Input FiltersThe Configure Filter dialog will look similar to Figure 5-6. Select the appropriate filter for your printer. When you select a filter, you're selecting the correct way to convert file formats so that your printer can use them. The filter dialog is divided into several sections:
In the Printer Type pane, at left, choose the exact make and model listed for your printer. If you can't find an exact match, try to find the closest match to your printer's make and model. If you have questions about which filter may be appropriate for your printer, you'll find information about the driver in the box called Driver Description, at the right of the dialog. Quite a few makes and models of printers are supported, but not all printers are fully supported -- or supported at all. In some cases, printers may require additional drivers; in other cases, the printer may be unsupported by Red Hat Linux. Again, refer to the Hardware Compatibility List at http://www.redhat.com/support/hardware/ to verify that your printer is supported under Red Hat Linux. If you find the manufacturer of your printer, but not your model number, you can check your printer's documentation to find out whether your printer can emulate any of the listed printers. You may also be able to find out whether a filter is suitable for your unlisted model by highlighting the filter in the left window and reading its description in the Driver Description window, at the right of the dialog. Choose the resolution and default paper size for your printer. (Not all printer types will offer optional paper sizes.) In the Color Depth / Uniprint Mode section, select the options you desire.
Other Printing OptionsThe remainder of the Configure Filter dialog allows you to specify other printing options:
Testing Your Printer ConfigurationOnce you've made your selections in the Configure Filter dialog, click on the OK button. You'll return to the Edit Local Printer dialog. Now, the Input Filter field will contain the information you'd chosen about your printer (see Figure 5-7). Leave the item Suppress Headers checked by default if you don't want extra data printed with your documents (such as the date and origination of the print job). Click the OK button to continue; you'll return to the opening dialog of Printtool; this time, with your printer entry, as in Figure 5-8. Now, it's time to test your setup.
If you want to make modifications to your printer selection, highlight the printer and select Edit at the bottom of the Printtool window. When you're satisfied with your configuration, you can exit by selecting Quit from the PrintTool menu, or by clicking on the x in the upper right of the application's window. Once you return to your prompt, you can exit from the root login by clicking on the x in the upper right of the Xterm window, or by typing exit at the prompt. Then, type exit again to close the Xterm. |
|
|