Skip to content Skip to navigation

Printing on Linux


Printing from Linux machines

by Hanz Makmur - Oct 2009


These instruction will show you how to print to Computer Science public printers.The first section is for LCSR maintained machines and second is for user maintained machines. See list of available CS printers for more details info.

1. Setting Up Printing from CUPS on Linux
IMPORTANT: by default all print jobs will print with a header/banner page. If you have private printer or plan to print to any color or poster printers, you shouldturn off the banner page printed before each job.

Other Linux/Unix machines not maintained by LCSR staff may have their own printing engine. These machines are normally administered by the user and beyond the control of LCSR staff. For these machines, the simplest way to print to Computer Science printers is as follow the following:

  1. Install cups software for your Linux OS.
  2. Edit or add if one does not exist a file named  /etc/cups/client.conf and enter this line and save it.
    ServerName printserver.cs.rutgers.edu

    After your restart your CUPSD, you can print to all printers available on printserver.cs.rutgers.edu. To test it, you can check the queue by using lpqcommand or lpstat to check the status of the queue.

2. Printing from Linux/Unix.

A. Printing to the printer queue from Unix Shell

Once you have setup your linux printer queue, to print you would need to issue one of the following commands: To print from a Unix shell, normally you would enter:


lpr -Pprintername filename

To print without banner page, enter the following command


lpr -h -Partisan filename

To print in single sided on printers defaulting in duplex , you would enter:


lpr -Pprintername -o sides=one-sided filename

There are a lot options you can set with CUPS driver. See CUPS printing options for further details. CUPS options do not work with SunOS machines.

 Note on Printing from SunOS Unix System - Athos/Aramis/Research


Due to lack of drivers on our Unix installation currently, Single sided printing can not be achieved when using lpr command. If you would like to print single side, please print from Linux systems with CUPS driver installed or system with built in driver like Windows, MacOS.


If you have problems or questions, please email help@cs.rutgers.edu.