Difference between revisions of "Printing.old"
m (Protected "Printing" [edit=sysop:move=sysop]) |
|
(No difference)
|
Revision as of 14:06, 21 February 2007
Contents
Quota
- Each student have a printing quota of 200 pages per semester.
- The quota applies only for printers in the CS network.
- If a course requires extensive printing, the TA or lecturer should request additional quota for the course's students.
- If a student requires additional quota as part of his project or thesis, he should request from his supervisor.
Printers
- Undergraduate students can print in the printers located at the open space:
- Ross -2: st1 and st2
- Rothberg lab (Aquarium): xl1 and xl2 (down stairs)
- Levi: dk
- The printer st (the default printer) will print to the closest printer (in the open space).
- The open space printers should to be handled by students at all. If any problem occur, please notify the System Group.
Printing
Printing from the shell
There are several commands for printing from the shell:
- lpr
- The basic printing command, will print postscript (e.g. file.ps) or any text files (e.g. file.txt, file.java, etc.)
lpr file.java
- mpage
- Prints multiple pages per sheet, i.e. can save paper/quota if you don't mind printing a bit smaller
mpage -2P file.java
Will print file.java, with 2 pages per sheet to the default printer. see also man mpage. - a2ps
- Prints all kind of file formats (postscript, text, code, images, etc.), and can print several pages per sheet:
a2ps -2 file.java
Will print the java file in a nice format (keywords and comments are recognized) with 2 pages per sheet. See also man a2ps.
a2ps -2 -Pst1 file.javaWill print the java code in the st1 printer.
Printing from X window environment
Most of the graphical programs that support printing, simply use one of the above commands to print (e.g. gv, acroread, and more).
In the print dialog of those programs, you can set the printing command as mentioned above and print with a different layout or to a different printers (or all the other options that those commands support).
Utilities
lpq
To see the printing queue type:
lpq
To see the printing queue of the st1 printer, type:
lpq -Pst1
lprm
To remove all your jobs from the queue, execute:
lprm
The lprm utility can receives the -P<printer> flag (otherwise the default is chosen), and can receive a specific job id (job id can be determined with the lpq utility):
lprm -Pst1 234
Will remove job 234 from the st1 queue.
stquota
To see how much printing quota you have left, execute:
stquota
or
psquota
printjobs
To see a log of your printings (time, pages, printers), execute:
printjobs