Printing
The printer in the main CS Lab is called TheDicer. The printer in the overflow CS lab (room 238) is called TheMincer. To print text files or postscript files, use the lpr command as follows:
$ lpr -P TheDicer filename
You may have an environment variable (PRINTER) already
set to be TheDicer, in which case the
-P option is not necessary.
To find out your enviornment variable, run the env command:
$ env
Use lpq to see your
place in the print queue. This is particulalry useful if your
print job seems to be taking longer than usual.
For postscript files, it is often useful to preview them first, before printing. Try ghostview as follows: gv postscript_file.
To save paper, please try mpage or enscript, which allow more than one page to be printed on a single sheet of paper. This is highly recommended for printing large programs. Here are a few examples to try:
$ mpage -4f filename | lpr
$ enscript -2rhGj filename
$ enscript -C -Ec -2rGhj prog.c (pretty print for C progs)
The numbers specify how many pages are printed to one page. It can be changed depending on what you want.
To print a postscript file:
$ mpage -2 -M-10 -dp filename.ps | lpr prints 2 pages to a page
$ mpage -4 -M-10 -dp filename.ps | lpr prints 4 pages to a page
To print two pages to one in mozilla, select print, then hit the Properties button and change the print command to something like this (mpage output piped into lpr):
mpage -2f | lpr -PTheDicer
Finally, Computer Science has a limited fund for printing supplies. Please print only CS-related documents on the CS Lab printers. Use the Beardsley public-area printers for other printouts.