Jump Start II Configuring a Remote Printer Using the CUPS Web Interface

This JumpStart explains how to use the CUPS Web interface to configure either (1) a printer connected to a different UNIX/Linux system that provides IPP support or an LPD/LPR queue or (2) a printer that is connected directly to the network.

If the printer you are configuring is on an older Linux system or another UNIX-like operating system that does not run CUPS, the system is probably running LPD/LPR. Newer versions of Linux and UNIX variants that support CUPS (including Mac OS X) support IPP. Most devices that connect printers directly to a network support LPR/LPD and may support IPP.

Printers connected directly to a network are functionally equivalent to printers connected to a system running a print server: They listen on the same ports as systems running print servers and queue jobs.

shadow group At some point the CUPS Web interface will ask you for a username and password.

Supply your username and password. (You must be a member of the shadow group [page 660] to change the printer configuration using the CUPS Web interface.)

Display the CUPS Web interface by pointing Firefox, or another browser, at localhost:631 on the system on which you are configuring the printer (Figure 15-6).

Figure 15-6 CUPS home page

£11« ¿4M Y low History gookmarks £üoft U«p j

_ . - & '


/7>Add Printer

I iwnf % i --

^^ ^t'-'ll'-P Administration M.41U-U.1» ■ »J.'J 11,,TJ.'<MJ[-5.f 1!fJ1 ■JinOTTW

Add New Printer

Name: M 1320

(Ma y contain any printable fhartcfpri IfxCDpt T, anc


(Human.rçjiJjWo lot.Jlion i-uch a "Lali t*>

iHuman-readafcie description such as "HP Lasecjet wth Di


The Common UNIX Pflnlrlig Syilert*. CUf5. ami the CUfS I090 are the bade copyright 1997-2D0? by gasy Süftwato Product'.. All R.iJhK Hi-'.frvf-rl

mailc property of Easy joltwin Produt

t». CUM la

Figure 15-7 Add New Printer page

Clicking Add Printer on the row of buttons near the top of the page displays the Add New Printer page (Figure 15-7). Enter the name of the printer in the Name field; this name must start with a letter and not contain any SPACEs. You must supply a name—supply any name you like. Optionally, you can fill in the Location and Description fields with text that will help users identify the printer. Click Continue.

Specifying a The next page asks you to select the device that the printer is attached to protocol (Figure 15-8). Click the down arrow at the right of the list box labeled Device to display a list of printer devices. Select Internet Printing Protocol (ipp) or LPD/LPR Host or Printer, depending on what the printer is attached to. Select AppSocket/HP JetDirect for an HP JetDirect-compatible network printer. Click Continue.

Figure 15-8 Device page
Figure 15-9 Device URI page

Specifying the URI Next the Device URI page (Figure 15-9) asks for the URI (location on the network) of the printer. For an LPD/LPR printer, use the form lpd://hostname/printer-name; for an IPP printer, use ipp://hostname/printers/printer-name; for an HP JetDirect-compatible network printer, use socket://hostname. Replace hostname with the name of the host the printer is attached to (the server) or, for a network printer, the name of the printer. You can specify an IP address instead of hostname. Replace printer-name with the name of the printer on the server. Give the command lpstat -p on the server to display the names of all printers on that system. Enter the appropriate URI in the text box labeled Device URI. Click Continue.

Next is the Make/Manufacturer page (Figure 15-10). Select and highlight the brand of printer from the list. Click Continue.

Next the Model/Driver page (Figure 15-11) allows you to choose the model and specify a driver for the printer. If the printer is PostScript capable but is not listed,

Figure 15-10 Make/Manufacturer page
Figure 15-11 Model/Driver page

select a PostScript printer such as the Apple LaserWriter 12/640ps. If the printer is not PostScript capable and is not listed, check whether the printer supports PCL; if it does, select another, similar PCL printer. If all else fails, determine which listed printer is most similar to the one you are configuring and specify that printer. You can also try configuring the printer using system-config-printer (page 614), which offers a different choice of models.

After you click Add Printer, CUPS briefly displays a message saying that the printer has been successfully added and then displays the Set Printer Options page (Figure 15-12). This page allows you to set printer options and configuration information. Browse through the page and make any changes you like, although frequently you need change nothing. Click one of the Set Printer Options buttons.

Figure 15-12 Set Printer Options page
Figure 15-13 Printers page

After another brief message, CUPS displays the Printers page (Figure 15-13) showing the new printer. Click Print Test Page to confirm that the new setup works. If you want to make this printer the default printer, click Set As Default.

The bottom of the Printers page allows you to cancel or move jobs in the print queue. Figure 15-14 shows this page displaying information about a job the printer is printing. In addition to these tasks, the CUPS Jobs page enables you to reprint jobs.

Was this article helpful?

0 0

Post a comment