Carnegie Mellon University

Print from Linux 

Note: The steps below have been tested on a machine using Ubuntu 8.04 with GNOME.  Ubuntu is a community developed, Linux-based operating system. GNOME is a desktop for your GNU/Linux or UNIX computer.

  1. Select System > Administration > Printing
  2. Select New Printer.  It may take some time to search.
  3. Go to LPD/LPR Host or Printer.
  4. Enter the following: 
    • Host: UserID@printing.andrew.cmu.edu
      Where UserID is your Andrew UserID (e.g., juser@printing.andrew.cmu.edu).
    • Queue: andrew, andrew-color, hunt-color, mellon-color, or library-color
  5. Select Forward.  The system will unsuccessfully search for drivers.
  6. Select HP Laserjet 4100 PostScript as the driver.
  7. Name the printer Andrew Central B&W.
  8. Check the box that enables duplexing.

Guide to printing on your personal Linux computer using CUPS

  1. Go to http://localhost:631 in a browser on your personal machine.
  2. Click Administration at the top.
  3. Click Add Printer under the Printers heading.
  4. You will be prompted for a username and password. Enter the your local machine login and your root password.
  5. Under Other Network Printers, select LPD/LPR Host or Printer and click Continue.
  6. In Connection, enter lpd://YourAndrewID@printing.andrew.cmu.edu/ChosenQueue, where YourAndrewID is your Andrew UserID, and ChosenQueue is one of the following:
    Note: This will determine which printer queue your printing jobs are sent to; choose andrew for the default black and white queue.
    • andrew
    • andrew-color
    • hunt-color
    • mellon-color
    • library-color  Click Continue.
  7. Chose a name, such as AndrewCentralB&W, and click Continue. You do not need to fill in any of the other fields.
  8. Select HP as the Make and click Continue.
  9. Select HP LaserJet 4100 Foomatic/Postscript (en) as the Model and click Add Printer.
  10. Set Media Size to US Letter, Resolution to 300dpi, Media Source to Printer Default, and 2-Sided Printing to Long-Edge. Click Set Default Options.
    Repeat steps 1 through 10 to add additional print queues andrew-colorhunt-color, mellon-color, or library-color.
  11. You will be redirected to the main configuration screen for your new device. Below the new device name, click the Administration drop down menu and select Set As Server Default.
  12. Release the print job.

NoteVPN is required to queue a print job using LPD from off-campus.

Commands that must be typed are shown in bold at a unix prompt (%). Type everything after the prompt, but not the prompt character (%). For more information about any of the commands described in this document, use the "man" command; for example:

% man lpr
% man lpq
% man lprm

Selecting a Printer

With the implementation of the central print queue, the default printer should already be set to andrewcentral, which will push the print job to all of the public printing stations.

Print Command

To print, use the lpr command followed by the name of the text or postscript file that you want to print. For example, to print the myjob.ps postscript file to your default printer type, use the following command:

% lpr myjob.ps

This will send your print job into the central Andrew queue for public printers.

Print Queue

To view a list of the jobs in the print queue, use the lpq command. For example, to view print queue information for the central print queue, you would type:

% lpq

The print job will remain in the central print queue until you manually release it from the station.

Note: VPN is required to queue a print job using LPD from off-campus.

Next Step - Release the print job.