|
|
|
How do I print in Linux?
Printing in Linux depends on the kind of file you wish to print.
| Filetype |
Command
(using a terminal window) |
Example |
| PostScript,
Text |
lpr
command |
lpr
filename.ps |
DVI
a dvi file is the result of latexing a document. |
file must be
converted to PostScript first, using the dvips command |
dvips
filename.dvi; lpr filename.ps |
| PDF |
|
open file in
Acrobat Reader, choose Print |
| |
file can also
be converted to PostScript, using the pdf2ps command |
pdf2ps
filename.pdf; lpr filename.ps |
| Other files |
|
print using the
appropriate program.
Do NOT use lpr except for
printing PostScript and text files. |
Linux Printing Tips
Troubleshooting Linux Printing
In most Linux labs, a printer will be automatically selected for
you.
Type lpq to see which one it is.
However, if no default printer has been selected, you will need to
set one.
Setting a default printer
- Type: nsetprint
If this doesn't work, ssh to ra-clay.its.monash.edu.au first, and then try it.

- A list of printers will be displayed.
You will need to know the name of the
printer you wish to use.
NOTE: This is not a complete list of available
printers.
- Choose the desired printer from this list by using
the arrow keys and press Enter.
Your printer has now been selected. If you need to select another printer in the future, you will have to run the
nsetprint command, and select
another printer.
- Once you have set a printer, you can print your
work.
Credit from your account balance will be deducted for printing as normal.
|