Printing from Outland Unix and Mac OS X Systems

Printing from Outland Unix and Mac OS X Systems

Unix and Mac OS X machines use the CUPS print server, printhost.cc.gatech.edu, which provides access to all networked printers and their drivers. All applications should be set up to use CUPS so printing simply involves selecting a printer from a pulldown menu, and optionally setting specific options like landscape printing.

If you need to configure your Unix or Mac CUPS client, you will need root access. Edit the file /etc/cups/client.conf to contain the line ServerName printhost.cc.gatech.edu. If the CUPS daemon cupsd is running, you will need to stop it: use ps ax | grep cups to determine the process id (in this example it is 168).

168 ?? Ss 0:02.57 /usr/sbin/cupsd
5295 p2 R+ 0:00.01 grep cups

Then use kill pid to kill the process (replace pid with the actual process id).

If your computer must use System 5 or BSD spooling, it is not a problem as CUPS provides backends to handle these protocols. Here is a sample printcap and printers.conf entry:

rosalyn|lp|ps|postscript|PostScript:\
     :lp=:mx#25000:rm=printhost.cc.gatech.edu:rp=rosalyn:\
     :sd=/var/spool/rosalyn:

rosalyn|lp|ps|postscript|PostScript:\
     :lp=:\
     :sd=/var/spool/rosalyn:\
     :mx=25000:\
     :bsdaddr=printhost.cc.gatech.edu,rosalyn:

A default printer should already be selected in any print dialog window, but you can use the pulldown menu to select another. Linux users can change the default printer using the print manager supplied by their window manager. Mac OS X uses the Print & Fax manager under System Preferences. From the command line, use lpoptions to view your default printer and lpoptions -d printer to set your default printer.

A default printer should already be selected in any print dialog window, but you can use the pulldown menu to select another. Linux users can change the default printer using the print manager supplied by their window manager. Mac OS X uses the Print & Faxmanager under System Preferences. From the command line, use lpoptions to view your default printer and lpoptions -d printer to set your default printer.

A complete list of COC printers can also be obtained by accessing printhost.cc.gatech.edu or by entering the command lpstat -a. You will find that most printers have a duplex counterpart, e.g. susie, and susie-duplex. The duplex queue is currently just a convenience for users that print from the command line, and find it easier to use the command lpr -P susie-duplex myfile.ps, instead of lpr -P susie -o sides=two-sided-short-edge myfile.ps.

CUPS comes with its own versions of lp, lpq, lpr, lprm, lpstat, and cancel. The syntax is very similar to the tradiditonal System 5 and BSD commands. On-line versions of man pages can be found at www.cups.org/documentation.php and a very good summary of using CUPS print commands can be found at open-systems.ufl.edu/services/printing/cups/cups_cmds.html. If you wish to permanently keep cupsd from starting when you reboot, remove CUPS from your /etc/rc directories on Linux. On Mac OS X, edit the file /System/Library/StartupItems/PrintingServices/PrintingServices and comment the following line by placing a # at the beginning of the line:

# /usr/sbin/cupsd