Nevis Printing This page describes some basic commands related to printing on the Nevis Linux cluster. It includes:

The Nevis Linux cluster uses CUPS to manage its print services. On most machines that have CUPS installed, visiting the URL http://localhost:631/help/ will take show you basic documentation; you can also view the manual in the documentation section of the CUPS web site. This web page just covers brief highlights of that manual.

The reason why CUPS is used at Nevis is that it only requires complex configuration of the print servers; the client machines don't have to be configured at all. This means that if you connect a laptop to the Nevis or Pupin networks, and that laptop is running CUPS, you'll be able to print to the Nevis printers and make use of the various printer features without installing any additional drivers. (This only applies to laptops with a direct Ethernet connection; CUPS is not visible on the wireless networks.)


Print commands in Linux

lpr is the basic command for printing a file in UNIX. For example:

lpr filename will print the file "filename" on the default print queue; you can find out the default queue with the command lpstat -d If you want to print a file on a printer that's not your default (a color printer, perhaps), use the -P option to select the print queue: lpr -Pqueue-name filename

To set printer options, use the -o option of the lpr command. Some examples:

lpr -Pbw-research -o Duplex=DuplexNoTumble filename

will print on the main black-and-white printer using both sides of the paper. (See the description of the bw-research printer below.)

For color duplex printing, use:

lpr -Pcolor-research -o InputSlot=Plain -o Duplex=DuplexNoTumble filename

For a list of options available on a print queue, use the lpoptions command:

lpoptions -p color-research -l

To see what jobs are printing, and the status of the print queues, use the lpstat command :

lpstat -u


Printing from laptops

If you connect your laptop to via an Ethernet connection, and your laptop is running CUPS, you will be able to browse the list of available print queues and select one.

However, if you connect via a wireless network, you will not be able to browse the list of queues. You can still print, but will have to add the printer queue to your laptop manually:


Frequently Asked Questions

Some common questions:


Print queues

As of 28-Oct-2008, the following print queues are available. To see a list of all available print queues, use the lpstat command:

lpstat -a

Available print queues

bw-research (or "hp4300" or "qms1")
"bw-research" is the main "workhorse" printer.

Note: The main printer at Nevis used to be called "qms1", and then "hp4300". In order that some old print commands will still work, the old queue names are still available.

"bw-research" is a fast black-and-white HP2430 printer whose maximum speed is about 35 pages per minute. This printer has a duplexing feature, which allows you to print on both sides of a sheet of paper. To use the feature, the command is:

lpr -Pbw-research -o Duplex=DuplexNoTumble <filename> The bw-research printer has three paper input bins: manual, upper, and lower. Typically, both the upper and lower bins are filled with plain white paper; for special jobs you can put transparencies, three-hole paper, or A4 (European metric) paper into the upper tray.

If any sheets are put into the manual bin (transparencies, for example) the printer uses it by default. Otherwise the paper comes from the upper printer bin, while the lower bin must be selected explictly. The correspondence is:

Option lpr option
Manual lpr -o InputSlot=Tray1
Upper lpr -o InputSlot=Tray2
Lower lpr -o InputSlot=Tray3
Duplex lpr -o Duplex=DuplexNoTumble

When the lower bin holds three-hole-punch paper, it's commonly combined with the duplex option to print long documents that can be placed in looseleaf binders. For example:

lpr -Pbw-research -o Duplex=DuplexNoTumble -o InputSlot=Tray3 thesis.ps

Two neat Linux tricks

  1. If you want to print a long text file, consider using the enscript command, which formats a text file into Postscript format. The following commands will print the text file two text pages per side, double-sided (good for long program listings). Both commands do the same thing, but the options are shown in both the short and long forms. enscript -q2rGj -Pbw-research -DDuplex:true <filename> enscript --quiet --columns=2 --landscape --fancy-header --borders \ --printer=bw-research --setpagedevice=Duplex:true <filename>
  2. To print on three-hole-punch paper, check that bin 3 holds the correct type of paper and try the following command: enscript -Gj --margins=36:36:: -o - <filename> | \ lpr -Pbw-research -o Duplex=DuplexNoTumble -o InputSlot=Tray3 filename

bw-design (or hp2300)
This is an HP2420 printer located in the electronics design area of the lower floor of the Nevis Electronics Building, and is intended for the use of the people who work on that floor.

bw-testing (or hp1200)
This is an HP1200 printer located on the upper floor of the Nevis Electronics Building, in the DOE testing area, and is intended for the use of the people who work on that floor.

bw-admin
"bw-admin" is a smaller, slightly slower (25 ppm) black-and-white HP4100 printer located at the end of the west corridor of the upper floor of Nevis. It does not have duplex printing. It is meant for the use of the people who have offices along that corridor, but it can also be used as an "overflow" printer if bw-research is busy.

color-research (or colour-research)
As the name implies, "color-research" is an HP2605 color printer. It is slower than bw-research (10 pages per minute). The color printer has three input bins, similar to bw-research: manual, upper, and lower. The manual "bin" is actually a single-sheet feeder in the front of the upper tray. The lower and upper bins are stocked with plain paper. It is capable of duplex printing.

Option lpr option
Manual lpr -o InputSlot=Tray1
Upper lpr -o InputSlot=Tray2
Lower lpr -o InputSlot=Tray3
Duplex lpr -o Duplex=DuplexNoTumble

Realistically, there's no need to specify an InputSlot option unless you've walked over to the printer and put some special paper (transparencies, labels, A4 paper) into one of the bins. We used to put transparencies into the upper bin, but these are now used so rarely that we don't bother.

bw-elec
This is a B&W printer located in the in Nevis electronics assembly/testing area on the upper floor. It's similar to the bw-research printer. It's intended for the use of those who work in that building.

color-elec (or colour-elec)
This is a color printer located in the in Nevis electronics assembly/testing area, similar to the color-research printer. It's intended for the use of those who work in that building.

bw-annex
This is a B&W printer located in the Nevis Annex at Pupin. It supports duplex printing.

color-annex (or colour-annex)
This is a color printer located in the Nevis Annex at Pupin. It differs from the color printer at Nevis in that it has only one input tray.

There are other print queues in existence, but they are restricted the use of specific working groups at Nevis or Pupin, and are not for general use. You may also see other printers at Pupin in the list; use them at your own risk.


Printer status and control commands

To check the status of a print queue, use the lpstat command. For example:

lpstat -p bw-research -u

If you want to remove one of your jobs from the print queue, use the lprm command. For example:

# lpstat -u printer bw-research now printing bw-research-0. enabled since Jan 01 00:00 bw-research-81 seligman 11264 Mon 15 Dec 2003 05:08:38 PM EST # lprm 81

Note that usually only the number of the job is necessary to cancel it.


Print server

With CUPS, the print server controls which print queues are available on the cluster, and is the only system that requires any printer drivers.

There are actually two print servers on the Nevis cluster: print.nevis.columbia.edu, which manages the printers at the Nevis site, and annex.phys.columbia.edu, which manages the printers at the Nevis Annex. The two print servers relay CUPS information to each other, so that printers at the Annex are available from systems at the Nevis site, and vice versa.

The print servers share their information across the Nevis and Pupin networks, so that laptop users at either site can have access to the Nevis Cluster printers. However, the print servers are configured to deny access to systems outside those networks for security reasons.

If you're using a system outside those networks, and you wish to print on a Nevis cluster printer, see the question above.

A typical setup for your system might be (using bw-research as an example):

Type of queue: lpr Remote server: print.nevis.columbia.edu Remote queue: bw-research

If you're looking for Postscript Printer Description files (PPD files), you can find many of them on the Nevis Linux cluster, in directory ${NevisAppBase}/printing/ppds/.


Back to the Nevis Computing Page.

Up to the Nevis Home Page.

E-mail: Send any comments or questions to the webmaster.