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 Firefox, go to http://localhost:631. Do not use Chrome, otherwise, your credentials will not pass correctly and you will receive an "unauthorized" error when you try to add the printer.
  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 text box, enter the following path: 
    • Note: The chosen queue refers to the printer you are printing to. The choices are:
      • Andrew-BW (default black and white printer queue)
      • andrew-color
      • library-color
  6.  Leave the remaining fields blank. Click Continue.
  7. Select HP as the Make.
  8. Click Continue.
  9. Select HP LaserJet4100 Foomatic/Postscript (en) as the Model.
  10. Click Add Printer.
  11. Enter the following:
    • Media Size: US Letter
    • Resolution: 300dpi
    • Media Source: Printer Default
    • 2-sided Printing: Long-Edge
  12. Click Set Default Options.
  13. Repeat steps 1 - 9 if you want to add color printer queues: andrew-color and library-color. Otherwise, you will be redirected to the main configuration screen for your new device.
  14. Click the Administration menu below the new device name, then select Set As Server Default.
  15. 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 postscript file to your default printer type, type % lpr 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.