lpr -PLj8000 filename
where you can replace Lj8000 with another printer name if you wish. See below to set your default printer and for instructions on how to monitor and/or cancel your print job.
If you want to print another type of file, you must convert it to postscript ahead of time. For example, to convert and print a dvi file, type
dvips filename.dvi or dvips -PLj8000 filename.dvi
Note: to convert a dvi file to postscript file without printing, type
dvips -o filename.ps filename.dvi
ps207 HP LaserJet P3015DN (note: the printer name is ps207)
IP address: 18.104.22.168
Lj8000 HP LaserJet 8000dn IP address: 22.214.171.124 (system default printer)
setenv PRINTER ps207
to the file .environment, creating that file if necessary. The reason to use this file, rather than .login, is that it is read by both your .login file when you log in, and by the window manager.
The environment variable LPDEST has equivalent functionality.
Note: for graduate students, the change of default printer is necessary since the Lj8000 printer, which is in Krieger 409, is not accessible. Your default printer should be either ps207, or the printer in your office.
When you print from Mozilla or some other program (Adobe Reader, Kghostview, xdvi, etc), you can choose printers, as well as printing options. In particular for kghostview, by click Print, then Properties, you can have options like if you want banner page (for Lj8000 and ps207), and if you want duplex printing.
Lj8000 is set to no duplex printing as default.
ps207 is set to do duplex printing as default.
If your office PC support duplex printing (HP Laserjet 2200DN, 2300DN, 2420DN)
and you want that as default, please let me know.
to see the printer status and what is in the print queue. (You may insert another printer name; if you omit the printer name, your default printer is used.) If lpq reveals that there is a problem with the printer, you should e-mail the person whose job is at the front of the queue and ask them to remove it (see below). And you should also e-mail firstname.lastname@example.org to report the problem. In the meantime, you may want to print your job on another printer. Before doing so, be sure to remove your job from the queue of the disabled printer so that paper, toner and time aren't wasted.
Removing print jobs from the queue: if you type
this will remove all print jobs in the queue which are owned by you. To specify a printer other than the default, type something like
lprm -PLj8000 -
You can also be more selective and only delete certain print jobs using
lprm -PLj8000 request-id
where request-id is the number displayed by the lpq -PLj8000 command.
Another command that works similarly is cancel.