Skip to main content

Printer Setup for UNIX/Linux


On Department-Managed Computers

Department-managed computers running UNIX/Linux should already have all of the department printers pre-configured for immediate use.

In any UNIX/Linux CLI shell prompt:

  • Type "lpr -P<printer> myfile.txt" (substitute the name of the department printer for <printer> as in "lpr -Pp2331 myfile.txt", etc.)

In any UNIX/Linux GUI application:

  • Go to the "File" menu and select the "Print..." option.
  • In the "Printer:" popup menu on top, select the department printer you want to print to.

On Self-Managed Computers

To configure your own computer to print to a department printer, follow the below instructions:


Quick Printer Setup

  • Protocol: LPD/LPR
  • Print Server: math-print.ucsd.edu
  • Queue: p2331 (or color2331, etc.)
  • Driver/PPD: HP LaserJet 4350 (or HP Color LaserJet 3800, etc.)
  • Installable Options: Duplex ON, Tray 3 500-Sheet, >=352MB Memory

Detailed Printer Setup

For CUPS CLI

  1. Login as "root" or a user account with sudo administrator privileges.
  2. Open a new CLI shell prompt by launching Terminal.app, xterm, or a similar program.
  3. For the black-&-white printers, copy-and-paste the following lines (change "p2331" to the printer you prefer to use):
    lpadmin -p p2331 \
    -v "lpd://math-print.ucsd.edu/p2331" \
    -o printer-is-shared=false \
    -E
  4. For the color printers, copy-and-paste the following lines (change "color2331" to the printer you prefer to use):
    lpadmin -p color2331 \
    -v "lpd://math-print.ucsd.edu/color2331" \
    -o printer-is-shared=false \
    -E
  5. Type "lpq -Pp2331". It should return back that "p2331 is ready".
  6. That's it! Now go print something useful. Try "lpr -Pp2331 myfile.txt".

Extra

  • To delete a printer (change "p2331" to the printer you want to delete):
    lpadmin -x p2331
  • For Ubuntu Linux, you can add in the following extra flags BEFORE the last "-E" flag in the above lpadmin command to specify the correct PPD and printer options:

    For B&W Printers (e.g. p2331, etc.):
    -m "postscript-hp:0/ppd/hplip/HP/hp-laserjet_600_m601_m602_m603-ps.ppd" \
    -o HPOption_Tray3=HP500SheetInputTray \
    -o HPOption_Duplexer=True \

    For Color Printers (e.g. color2331, etc.):
    -m "postscript-hp:0/ppd/hplip/HP/hp-laserjet_500_color_m551-ps.ppd" \
    -o HPOption_Tray3=True \
    -o HPOption_Duplexer=True \
  • For CentOS Linux, you can add in the following extra flags BEFORE the last "-E" flag in the above lpadmin command to specify the correct PPD and printer options:

    For B&W Printers (e.g. p2331, etc.):
    -m "lsb/usr/HP/hp-laserjet_600_m601_m602_m603-ps.ppd.gz" \
    -o HPOption_Tray3=HP500SheetInputTray \
    -o HPOption_Duplexer=True \

    For Color Printers (e.g. color2331, etc.):
    -m "-m "lsb/usr/HP/hp-laserjet_500_color_m551-ps.ppd.gz" \
    -o HPOption_Tray3=True \
    -o HPOption_Duplexer=True \

For Ubuntu Linux GUI

  • Login as "root" or a user account with sudo administrator privileges.
  • Coming soon...

For CentOS Linux GUI

  • Login as "root" or a user account with sudo administrator privileges.
  • Coming soon...