Carnegie Mellon University

Print from Linux 

Note: Each Linux distribution has its own method for setting up printing, and uses various graphical interfaces in addition to the method below. For assistance, including help setting up printing if you do not use CUPS, consult the documentation for your distribution.

Printing from Your Personal Linux Computer With CUPS

  1. In a browser, go to http://localhost:631.
  2. Click Administration at the top of the page.
  3. Click Add Printer in the Printers heading, then enter your local machine login and root password when prompted.
  4. Select LPD/LPR Host or Printer from Other Network Printers, then click Continue.
  5. In the Connection textbox, enter lpd://YourAndrewID@printing.andrew.cmu.edu/ChosenQueue, then click Continue. YourAndrewID is your Andrew UserID, and ChosenQueue is one of the following:
    - Andrew-BW (default black and white printer queue)
    - andrew-color
    - library-color
  6. Select a name, for example, AndrewBW, then click Continue. You do not need to enter information in the other fields.
  7. Select HP as the Make, then click Continue.
  8. Select HP LaserJet4100 Foomatic/Postscript (en) as the Model, then click Add Printer.
  9. Enter the following, then click Set Default Options:
    - Media Size: US Letter
    - Resolution: 300dpi
    - Media Source: Printer Default
    - 2-sided Printing: Long-Edge
  10. Repeat steps 1 - 9 if you want to add color printer queues: andrew-color and library-color.
  11. You will be redirected to the main configuration screen for your new device. Click the Administration menu below the new device name, then select Set As Server Default.
  12. Release the print job.

Note: To queue a print job using LPD, you must be on campus, or connected to VPN .

Commands that you must type are shown in bold at a unix prompt (%). Type everything after the prompt, except 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 be set already to andrewcentral, which will push the print job to all public printing stations.

Print Command

To print, use the lpr command, followed by the name of the text or postscript file you want to print. For example, to print the myjob.ps postscript file to your default printer type, type % lpr myjob.ps. This will send your print job into the central Andrew queue for public printers.

Print Queue

To view a list of jobs in the print queue, use the lpq command. For example, to view print queue information for the central print queue, type % lpq. The print job will remain in the central print queue until you release it manually from the station.

Note: To queue a print job using LPD, you must be on campus, or connected to VPN .

To print, release the print job.