Printers on Macs

Overview

There are two ways to configure printing on OSX. You can use LPD or CUPS.

LPD Printing on OSX

The good news is that it is relatively easy to set up a TCP/IP printer on a MAC.

In order to do this, you must follow three steps:

1. Determine the name of the printer you wish to use
2. Ensure that your Mac has a well-formed hostname (This is a real gotcha)
3. Configure the printer via the native Mac "Desktop Printer Utility"

Selecting a Printer

The easiest way to determine the name of the printer you want to use is to walk over and look at it. All the printers we support should have their queue name on a label on the front or top of the printer.

Mac Hostname

Our printer daemon balks when it receives print jobs from machines with malformed hostnames. In the context of our print system, a malformed hostname is any hostname that contains spaces or non-alphanumeric characters. For example, "Bob's Laptop" is malformed, because it contains a space and an apostrophe, while "BobLaptop" is fine. Likewise, a "NULL" name is malformed, whereas "myname" is suitable.

In order to check and change the hostname of your Mac laptop please consult the appropriate section below.

On a Mac OSX:

On toolbar -> Go -> Applications -> System Preferences ->
Sharing
Supply a well-formed computer name

Please Note: MAC OSx's tend to set their own computer name in a variation of the form "Bob's Machine". Again, this is not well-formed, and must be changed to "FredsMachine".

Desktop Printer Utility

After ensuring that you have the name of the printer you wish to use and that you have a well-formed hostname, start up your Mac's Desktop Printer Utility and proceed as follows. Please be aware that on certain versions of Mac OSX that you select TCP/IP printing and not CPP/IP printing.

1. Supply for Print Server Address: lpd.cs.toronto.edu
2. Supply for Queue: lw-nameofprinter i.e. lw-ba4242
3. Select "verify"
4. Test print.

CUPS Printing on OSX

Start up a terminal window and become 'root'. Unfortunately, the method for enabling root is different depending on what version of OSX you are running. You will need to consult your documentation.

Add the following line to '/etc/cups/client.conf':
ServerName 128.100.3.185 <-- The IP address of cups.cs.toronto.edu
Do not substitute ServerName for cups.cs.toronto.edu

Startup an utility/application that provides printing capabilities (e.g. Firefox, Text Edit, Word:MAC, etc.) and the following will list *all* of the CUPS available printers:

File -> Print -> Printer Select the printer you wish to use.

You may need to go to System Preferences > Print & fax and select a printer from the Default Printer drop down menu.

'lpstat -v' will also display available printers. Small caveat, this process seems to trigger the MAC OSX multi-colored spinning beach ball that indicates there is a bit of a time lag.

WARNING! Sometimes the default paper size is set to be A4, make sure it is changed to US legal.

Duplex-Printing

In order to configure your MAC printer to do duplex (i.e. doubled-sided) printing, please consult the Duplex-Printing page.