Difference between revisions of "Printing.old"

From CsWiki
Jump to: navigation, search
m (Printing moved to Printing.old)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
==General Information==
+
==Quota allocation==
Undergraduate students have a printing quota of 200 pages per semester. If a course requires extensive printing the Metargel may request additional quota for the students from the system group.
+
At the start of the academic year, the quota of all ordinary users is set to 200 pages.
Files can be printed directly from X software (e.g., eclipse, firefox or PDF readers). Text files and PostScript files can be printed from the editor or using shell commmands.
+
At the start of the second semester, the quota of undergraduates, first-year graduates and non-research graduates, is reset to 200 pages (plus any pages remaining out of a 'bonus').  
 +
Other users can ask their academic contact to request extra quota on their behalf.
 +
If a course requires extensive printing, the Metargel may request additional quota for all his students.
  
==Shell commands for printing and quota management==
+
==How to print==
To print the file ''labaneh.ps'' from the command line, type
+
Jobs are sent to the printer using command ''lpr''.
lpr labaneh.ps
+
Most printers can print only PostScript and Text files.
To print a Java file, uses
+
(Printers ''nrg'' and ''ps4'' can print also PDF files.)
lpr labaneh.java
+
Document viewers e.g. ''firefox'' and ''acroread'', convert a document to PostScript before piping to ''lpr''.
And the file will be printed in the nearest printer.  
+
Various command line utilities are also available for converting to PostScript
 +
e.g. ''enscript'' and ''a2ps'' for Text, and ''pdf2ps'' for PDF.
 +
Other utilities manipulate a PostScript file e.g ''mpage'' can put multiple pages
 +
on one physical page.
 +
Document viewers for PostScript include ''gs'' and ''gv''.
  
Note that ''lpr'' can be used only for text (e.g., source) files and PostScript files. Other types of documents should be printed
+
Examples:
from the applications you use to view them.
+
  mpage -2A file.ps | gs -
 +
  pdf2ps file.ps | mpage -2A | lpr
  
To see a list of all your printed (and queued) jobs, type
+
==Printers==
  printjobs
+
Undergraduates can print only on the printers in the public labs:
 +
* '''xl1''' - Rothberg, upper floor
 +
* '''xl2''' - Rothberg, lower floor
 +
* '''sp''' - Levy
 +
In the public labs, '''st''' is an alias for the nearest printer.
  
The output is formatted in this style:
+
In case of a problem with any of the public printers, mail ''system'' or, if urgent, call 84195, 85691, 85692, 85298, 86156 or 86942
  
        time        | printer | pages |        jobname
+
==Utilites==
  ---------------------+---------+-------+--------------------------
+
Besides '''lpr''', the print suite includes the following utilities
   2006-10-22 10:21:08 | xl1    |    1 | STDIN(Mozilla)
+
* '''lpq''' - list all print jobs
   2006-10-22 10:22:42 | xl1    |    1 | STDIN(Mozilla)
+
* '''lprm''' - remove print jobs e.g.
  ....
+
   lprm -
  ....
+
   lprm 123
  2006-11-30 12:08:27 | xl1    |    4 | STDIN(xpdf/pdftops 3.01)
+
All utilities take argument ''-P<printer>'' where ''<printer>'' is the name of a printer.
  2006-11-30 12:10:55 | xl1    |    10 | STDIN(xpdf/pdftops 3.01)
+
If it is not supplied, the '''PRINTER''' environment variable is used.
 +
The .cshrc file given to new users (or installed by ''reinstall'') sets  '''PRINTER''' to ''st''.
 +
See the relevant man pages.
  
  
To see the left quota use ''psquota''
 
  
psquota
+
==Quota accounting==
 
+
One page of quota is deducted for each side of paper printed.
The output is the number of pages left:
+
The following commands are available:
115
+
* Show current quota:
 
+
  psquota
==Links==
+
* List all quota allocations since quota was last reset
[http://www.cs.huji.ac.il/support/intro.html CS documentation about printing and quotas]
+
  psquota --verbose
 
+
* List all quota deductions since quota was last reset
[http://nersp.cns.ufl.edu/~dicke3/nerspcs/lpr.html lpr man page]
+
  printjobs
 +
Command ''printjobs'' takes a variety of arguments. To see, do
 +
  printjobs --help

Latest revision as of 07:14, 30 June 2008

Quota allocation

At the start of the academic year, the quota of all ordinary users is set to 200 pages. At the start of the second semester, the quota of undergraduates, first-year graduates and non-research graduates, is reset to 200 pages (plus any pages remaining out of a 'bonus'). Other users can ask their academic contact to request extra quota on their behalf. If a course requires extensive printing, the Metargel may request additional quota for all his students.

How to print

Jobs are sent to the printer using command lpr. Most printers can print only PostScript and Text files. (Printers nrg and ps4 can print also PDF files.) Document viewers e.g. firefox and acroread, convert a document to PostScript before piping to lpr. Various command line utilities are also available for converting to PostScript e.g. enscript and a2ps for Text, and pdf2ps for PDF. Other utilities manipulate a PostScript file e.g mpage can put multiple pages on one physical page. Document viewers for PostScript include gs and gv.

Examples:

 mpage -2A file.ps | gs -
 pdf2ps file.ps | mpage -2A | lpr

Printers

Undergraduates can print only on the printers in the public labs:

  • xl1 - Rothberg, upper floor
  • xl2 - Rothberg, lower floor
  • sp - Levy

In the public labs, st is an alias for the nearest printer.

In case of a problem with any of the public printers, mail system or, if urgent, call 84195, 85691, 85692, 85298, 86156 or 86942

Utilites

Besides lpr, the print suite includes the following utilities

  • lpq - list all print jobs
  • lprm - remove print jobs e.g.
 lprm -
 lprm 123

All utilities take argument -P<printer> where <printer> is the name of a printer. If it is not supplied, the PRINTER environment variable is used. The .cshrc file given to new users (or installed by reinstall) sets PRINTER to st. See the relevant man pages.


Quota accounting

One page of quota is deducted for each side of paper printed. The following commands are available:

  • Show current quota:
 psquota
  • List all quota allocations since quota was last reset
 psquota --verbose
  • List all quota deductions since quota was last reset
 printjobs

Command printjobs takes a variety of arguments. To see, do

 printjobs --help