How to print from a Maths Managed Desktop

List of Printers

Obviously it is most convenient to use the printer closest to where you are actually working. You may check what printer is closest to you either by looking around the neighbourhood of your office or by checking

All printers are available to Linux users at all times, but Windows users can choose which printers are available on their computer. This is done by running the program Add Pavilion Printers. It should run automatically when you log on, and can also be found under Start -> All Programs -> Maths Faculty Extra Programs. Make sure that your pavilion and room number are set correctly before clicking Install.

Setting my Default Printer

Once you know the name of the printer of your choice you can set it to be your default printer.

Windows users can open "Devices and Printers", right-click on the printer and choose "Set as default printer". If the printer you want is missing, run Add Pavilion Printers as described above before reporting the problem.

Linux users need to set their default printer in two places:

• Via the menus for graphical apps.
• Via the PRINTER environment variable for the lpr command and printing from programs run from the command line.

• Go to Applications -> Settings Manager -> Printers.
• Right-click on your chosen printer and select "Set as Default".
• Select "Set as my personal default printer" before clicking OK.

To set the PRINTER environment variable, edit your shell startup files.

bash users (the vast majority) should add the line

export PRINTER=printer-name

to their .bashrc, replacing printer-name with the name of their preferred default printer.

setenv PRINTER printer-name

to their .cshrc.

How to Print and Printing Tips

Printing from a graphical application should be straightforward (usually you select "Print" from the "File" menu).

GSview (for Windows)
You need to be a little careful when printing from GSView. Select Windows GDI Printer, click on "Settings" and ensure that "Full Colour" is selected.
PDF files
PDF files can be a pain to print. Try printing from a different PDF viewer or using a different printer. Other things to try if you can't print.

More ways to print

A few of the printers can take USB sticks and print PostScript and PDF files directly from them.

Linux users can also send files to the printer from a terminal using a variety of commands:

lpr
send a text, PostScript or pdf file directly to the printer, can use all the CUPS options by use of -o option. Note that things may go wrong if you send any other type of file directly to a printer with lpr.
dvips
convert a .dvi file to Postscript and print it, can't directly use CUPS features since -o means something else
a2ps
(Ascii to Postscript) convert a plain text file to Postscript, with various formatting options, and print it, can't directly use CUPS features since -o means something else. a2ps defaults to 2-up (two pages per side of A4).

All the above commands accept the option -Pprinter_name which will override the value of the PRINTER setting.

See the man pages for full details of the options for these commands.

Linux users can inspect the queue as well from a terminal with lpq, but with CUPS the jobs normally only stay on the queue for a very short time unless there is a problem. You are allowed to remove your own jobs from a queue by using lprm job-number, with job-number listed by lpq etc. Only the owner of a job may remove a job from the queue.