In this section, we walk you through printer setup under Fedora Core. You can connect a printer directly to the Fedora Core machine through a parallel, serial, or USB port. You could also connect a printer across a network over another type of print spooler or through another operating system, such as HPJetDirect, UNIX using Line Printer Daemon (LPD), NetWare using NCP, CUPS using IPP, or Windows using SMB. If you're installing a local printer, you might choose to share it with other users across the network.
If you have a local printer that connects to your machine through the parallel, serial, or USB port and you have not yet installed Fedora Core Linux, make sure that the printer is connected when you begin installation. The kudzu utility may identify and configure your printer automatically if it is plugged in during the installation process.
Tip |
This works best with relatively new and widely available printers. During one Fedora Core installation during the writing of this book, we connected an old DeskJet 722C printer to the parallel port. It was properly detected and configured during Fedora installation. |
Even if kudzu identifies and configures your printer during installation, you should check the Printer Configuration tool once the system restarts. Use Printer Configuration to make sure that the printer was installed properly. If there are special functions available for your printer, you can configure them at this point.
If you have already installed Fedora Core or Red Hat Linux on your machine and now want to add a printer to the system, the process is slightly more involved. One of the easiest ways to install a printer on a Red-Hat-based system is to use the Printer Configuration tool. Follow these steps:
From the Red Hat menu, select System Settings⇨Printing or issue the command redhat-config-printer. Supply the root password when prompted.
The main Printer Configuration window appears (Figure 14-4).
Click the New button. The Add A New Print Queue window appears (Figure 14-5).
Click the Forward button. The Queue Type window appears. In this window, enter a name and description for the printer. The name is required; the description is optional, but quite helpful if you have multiple printers on this network.
Click Forward. In the next window, you must enter a queue type (Figure 14-6). Choose from several different types of queues describing local and several types of network connections. In this example, we chose a Networked CUPS queue. When you have made your selection, the screen changes so that you can enter the name or IP address of the print server, and the path to the queue (Figure 14-7).
Click Forward. A new Printer Configuration window appears, the Printer Model screen. Here, you can select the make and model of your printer. Use the drop-down box to select the make, and that manufacturer's models will appear in the following frame (Figure 14-8). Select the appropriate model.
Click Forward. The final screen appears, containing the information you entered previously. If anything here is not correct, use the Back button to step back through the sequence and change the information. If the information is correct, click Finish.
Note |
You will be prompted to print a test page. This is usually a good idea, but if you don't want to at this point, you can always print one later using the main window's Test menu. |
At this point, the printer should appear in the listing in the main Printer Configuration window (Figure 14-9). Assuming the test page printed successfully, the printer is configured and ready for use.
If you prefer to use a web tool, you can configure a printer with the CUPS web configuration tool. This is particularly useful if you are at a remote machine on the network. The CUPS daemon runs a small web server that listens on port 631, so be sure that you have configured that port appropriately if you want to use this service. If you have blocked this port while configuring a firewall with iptables, you will need to unblock it before using this tool.
To use the CUPS tool, follow these steps:
Open a web browser, and type http://localhost:631 into the location bar. If you are working remotely, replace localhost with the correct IP address. The CUPS configuration main page loads (Figure 14-10).
Click Do Administration Tasks. The Administration page loads.
Click Add Printer. The Add New Printer page loads (Figure 14-11). On this page, add the name, location (IP or DNS name), and an optional description of the printer.
Click Continue. The Device page loads. On this page, use the drop-down box to choose the type of device that the printer is attached to. In this case, we selected Internet Printing Protocol (ipp) (Figure 14-12).
Click Continue. On the next page, you must add the URI for the printer. Several examples are shown. Enter the URI that describes the location and queue, as shown in Figure 14-13.
Click Continue. On the next page, select the make of your printer.
Click Continue. On the next page, select the model of your printer and the appropriate driver.
Click Continue. You should see a message that the printer has been added successfully.
Click Printers in the navigation bar. In the list that appears, you should see the new printer listed (Figure 14-14). You can now print a test page, using the button under the printer's icon. If the test page prints successfully, the printer is ready to go.
In general, Red Hat recommends using the Printer Configuration tool. However, the CUPS interface is good for configuring additional printer connections using Internet Printing Protocol (http and ipp) and for managing printer classes.
There are a few things to keep in mind while using the CUPS web-based printer interface:
You need the root password to do CUPS administration.
To allow remote administrative access, you must change these lines in the /etc/cups/ cupsd.conf file:
<Location /admin> AuthType Basic AuthClass System Order Deny,Allow Deny From All Allow From 127.0.0.1 </Location>
You can add more Allow From lines to let other hosts (names or IP addresses) have access to CUPS administration on your server.
Note |
In general, it's best to choose one printing administration interface and stick with it. Sometime hand-editing configuration files or using an alternate graphical user interface (GUI) tool can make the new entries unreadable by other GUI tools. |