Mac OS X Tiger for Unix Geeks

 < Day Day Up > 

If you're using a popular USB printer under Mac OS X, it is likely that all you'll need to do is connect it to the USB port and choose the printer in the Print dialog when you want to print a document. However, there are some circumstances where it's not so simple:

  • Perhaps your USB printer does not automatically show up as an available printer in the Print dialog

  • Maybe you want to share your printer with other computers on your LAN

  • Perhaps you want to use a network printer such as one listed in Open Directory, an AppleTalk printer, or one for which all you have is an IP address

If you haven't already set up a printer using the Printer Setup Utility, there are three ways to add a new printer in Mac OS X:

Add a printer automatically

Attempting to print a document from virtually any application automatically launches the Printer Setup Utility. Mac OS X first informs you that you have no printers available, and then asks if you'd like to add a printer. Click on the Add button to start the setup procedure.

Launch Print Center

You can also add a new printer in the Printer Setup Utility by clicking the Add button. The /Applications/Utilities folder also contains an icon for Print Center. In Tiger, the Print Center is provided as an alias to Printer Setup Utility, to maintain backward compatibility with earlier versions of Mac OS X.

Use System Preferences

Open System Preferences, choose Print & Fax Printing, click the + sign, and click Add when the Printer Setup Utility appears. To share your printers with other computers, open System Preferences, choose Print & Fax Sharing, select the printers you want to share, and click "Share these printers with other computers."

Whichever way you end up clicking the Add button, Printer Setup Utility automatically searches for Rendezvous-enabled printers on your network. If a Rendezvous-enabled printer is found, you can easily add this printer and you'll be ready to use it immediately. If a Rendezvous-enabled printer is not found, a dialog box appears, informing you that "You have no printers available"; you're then asked if you want to add a printer to your list. If you click Add you can kick off the setup procedure in the Printer Browser window as shown in Figure 6-1.

6.1.1. Adding an IP Printer

If you have a printer on your network that is not Rendezvous-enabled, you'll need to have some information about it on hand:

  • The printer's IP address or hostname.

  • The manufacturer and model of the printer.

If you don't know the exact model of the printer, you may be able to set up the printer, albeit with reduced functionality. For example, if all you know is that you've got some kind of HP DeskJet, you could configure the printer as a generic DeskJet by selecting ESP HP New DeskJet Series CUPS from the Printer Model options when you are adding the printer. However, knowing the exact model will probably let you take advantage of special printing features such as duplex printing.

Figure 6-1. Specifying the printer type in the Printer Setup Utility

To set up an IP printer, click the IP Printer icon in the printer Browser window, and select the protocol as shown in Figure 6-2.

You need to select a Protocol from the following choices:

  • Internet Printing Protocol - IPP

  • Line Printer Daemon - LPD

  • HP Jet Direct - Socket

For example, suppose you have a Tektronix Phaser 750P with Plus Features on your LAN and that its IP address is 192.168.0.77. In this case, you would select Line Printer Daemon - LPD as the Printer Type, enter 192.168.0.77 as the Address, specify a Queue Name if required (otherwise it is called

Figure 6-2. Selecting the IP printing protocol in the Printer Setup Utility's Printer Browser

"default"), and select Tektronix in the Print Using box and Tektronix Phaser 750P with Plus Features under Model as shown in Figure 6-3.

After clicking the Add button, you are be prompted to enter printer-specific information such as printer installable options, as shown in Figure 6-4.

Once you've added a printer, the printer shows up in the Print & Fax preference pane, as shown in Figure 6-5.

If you can't find your printer model, try selecting the Generic option; in most instances, that should work.

Setting up an LPD printer in this manner allows you to print documents not only by selecting Print from GUI-based applications, but to also manipulate

Figure 6-3. Adding an IP printer in the Printer Setup Utility's Printer Browser

the print queue from the Terminal using the CUPS lp, lpstat, and cancel shell commands. By selecting "More Printers..." in the Printer Browser window, you'll see options for selecting your IP printer, as well as any of the following printer types:

  • AppleTalk

  • Bluetooth

  • Windows Printing

    Figure 6-4. Specifying printer model-specific installable options

  • Canon BJ Network

  • EPSON AppleTalk

  • EPSON FireWire

  • EPSON TP/IP

  • EPSON USB

  • HP IP Printing

  • Lexmark Inkjet Networking

Figure 6-5. Print & Fax System Preference

6.1.2. Modifying a Printer's Settings

Once your printer has been added, you can change some of its settings (location, printer model, and any installable options) using the Printer Setup Utility. To do this, open the Printer Setup Utility, highlight the printer whose settings you want to change, and click the Show Info icon in the toolbar; this opens the Printer Info window, which you can use to make the changes. Click Apply Changes to make your changes take effect.

6.1.3. Creating a Desktop Icon for a Printer

You can use the Printer Setup Utility to create and place an icon for your printer on the Desktop. To do this, open the Printer Setup Utility, highlight the printer in the list, and choose Printers Create Desktop Printer from the menu bar. You can save the printers Desktop icon to the desktop or to any folder in which you have write permission. After you create the icon, you can place it in the left section of the Dock with icons of applications, in the lower section of the Finder's Places sidebar, or just leave it on your Desktop. In each case, you'll be able to print a document by dragging its icon to the printer's icon.

Double-clicking a Desktop printer icon opens a window that shows you the status of the printer and any items in the print queue. This comes in handy for times when you need to quickly cancel a print job or start/stop the print queue to service a printer.

6.1.4. Printer Sharing

Printers with a network adapter are not necessarily the only printers available on your LAN. You can share a printer that's connected to your computer with other computers. For example, you can share your USB printer with all the computers on your LAN by opening Preferences Sharing, clicking the Services tab, and enabling Printer Sharing.

When you change a system preference you may need to click the lock in the lower left corner to authenticate yourself as an administrative user before you make any changes.

If you've activated the firewall, enabling Printer Sharing opens up ports 631 (Internet Printing Protocol) and 515 (lpd) for printing. As noted earlier, you can share selected printers using the Print & Fax preference panel's Sharing pane, as shown in Figure 6-6.

Figure 6-6. Print & Fax Sharing interface

Once you've shared your printer, other Macs on your subnet should automatically see your printer in their Print dialog boxes. If a user is on your local network, but not on your subnet, she can connect to the printer using the IP address or hostname of your Macintosh.

In addition to sharing your printer with Mac users, you can also share it with Linux, Unix, and Windows users. If a Unix or Linux computer is on the same subnet as the computer sharing its printers and has CUPS installed, it sees the shared printer (assuming it's capable of browsing for printers). If not, you will need to provide the IP address of the computer sharing the printer (see "Printing from Remote Systems," later in this chapter).

To let Windows users connect to your printer, activate both Printer Sharing and Windows Sharing in the Sharing pane of System Preferences. Windows users on your network can now add the printer.

After you've activated printer sharing, you may want to add some information about the physical location of the printer. You can do this by opening the Printer Setup Utility, highlighting the shared printer, clicking the Show Info icon, and entering that information in the Location field. For example, if the marketing group is sharing a printer, type Marketing in the Location field.

It is easy to print to a printer that is shared by a Windows computer. If your Mac is on the same subnet as the Windows machine, you should see it listed with other available printers in the Printer Setup Utility. In this case, just check the In Menu box to the left of the printer name. Subsequently, this printer will be available in Print dialogs. If the Windows printer does not show up in the list, you can add it by clicking the Add icon, selecting Windows Printing in the pop-up dialog, and choosing the appropriate network workgroup. Once you've done this, any available Windows printers will appear in the Printer Setup Utility printer list; select the one that you'd like to use. For additional information, select Help Printer Setup Utility Help and search for SMB (Server Message Block , the Windows networking protocol).

     < Day Day Up > 

    Категории