Go to the U of M home page
School of Physics & Astronomy
School of Physics and Astronomy Wiki

User Tools


computing:department:unix:printing

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
computing:department:unix:printing [2012/03/06 12:20] – [New Toshiba copier: 3sw] allancomputing:department:unix:printing [2021/05/04 16:44] (current) cse-sull0153
Line 1: Line 1:
-<box 20% right right-clear red|More Information> 
-{{indexmenu>:computing:department:unix}} 
-</box> 
- 
 ====== Printing from Unix ====== ====== Printing from Unix ======
  
-For complete information on printing commands and options, please refer to the CUPS (common unix printing system) User Manual at [[http://www.physics.umn.edu:631/]] (within Tate Lab) or [[http://www.cups.org/]].+Printing on Linux is handled through CUPS utilizing the cups.cse.umn.edu print server
  
 The command to print from a Unix system to any of our network printers is: The command to print from a Unix system to any of our network printers is:
Line 11: Line 7:
   lpr -P printer filename   lpr -P printer filename
  
-...where //printer// is the name of the print queue (usually the room number). The queues accept many file types directly, such as image files and PDF as well as text or Postscript.+...where //printer// is the name of the print queue (usually the room number). The queues accept many (but not all!) file types directly, such as image files and PDF as well as text or Postscript. Application-specific files such as HTML web pages, Mathematica workbooks, etc, have to be printed from within the application.
  
 You can use the lpstat(1) command to see a list of available printers: You can use the lpstat(1) command to see a list of available printers:
  
-  lpstat -p -d+  lpstat -
  
-The -p option specifies that you want to see a list of printers, and the -d option reports the current default printer or class. 
  
 ===== Changing printer settings in KDE ===== ===== Changing printer settings in KDE =====
Line 63: Line 59:
   lpstat 216   lpstat 216
  
-You can check queue and job status online by checking the print server [[https://www.physics.umn.edu:631/jobs|jobs listing]] (this link will only work within Tate Lab).+You can check queue and job status online by checking the print server [[https://cups.physics.umn.edu/jobs|jobs listing]] (this link will only work within Tate Lab).
  
 ===== Printing to Toshiba copiers ===== ===== Printing to Toshiba copiers =====
-To print to toshiba copiers you need to specify your Department printing code. This is tedious to specify on the CUPS command line, but it can be done using the DCDigit1... DCDigitX options (1-5 for ''431'', 1-7 for new toshiba copier ''3sw''). 
  
-==== Old Toshiba copier: 431 ====+To print to the Toshiba color copiers in PAN, MIFA and FTPI, you need to specify your Department printing code. This is tedious to specify on the CUPS command line, but it can be done using the DCDigit1... DCDigit5 options.
  
 Say your Department Code is 10203. Your command to print would be: Say your Department Code is 10203. Your command to print would be:
Line 76: Line 71:
 You can avoid having to specify the code every time, by storing it using ''lpoptions''. For example, to first store your code and then print a file: You can avoid having to specify the code every time, by storing it using ''lpoptions''. For example, to first store your code and then print a file:
  
-  lpoptions -o DeptCode=True -o DCDigit1=1 -o DCDigit2=0 -o DCDigit3=2 -o DCDigit4=0 -o DCDigit5=3 -p 358c +  lpoptions -o DeptCode=True -o DCDigit1=1 -o DCDigit2=0 -o DCDigit3=2 -o DCDigit4=0 -o DCDigit5=3 -p toshiba-pan-311 
-  lpr -P 358c filename +  lpr -P toshiba-pan-311 filename
- +
-Note there are several possible places for your output to be delivered; you can control this using the OutputTray option. The default is the Inner tray (beneath the control panel).  +
-==== New Toshiba copier: 3sw ====+
  
-To print to 3sw (new toshiba copier), like above but with 7 digits (prepend zeros to your number if you have less). Example for 1020304: +Note there are several possible places for your output to be delivered; you can control this using the OutputTray option. The default is the Inner tray (beneath the control panel).
-  lpr -P 3sw -o DeptCode=True -o DCDigit1=1 -o DCDigit2=0 -o DCDigit3=2 -o DCDigit4=0 -o DCDigit5=5 -o DCDigit6=7 -o DCDigit7=1 filename +
-or +
-  lpoptions -o DeptCode=True -o DCDigit1=1 -o DCDigit2=0 -o DCDigit3=2 -o DCDigit4=0 -o DCDigit5=3 -o DCDigit6=0 -o DCDigit7=4 -p 3sw +
-  lpr -P 358c filename+
  
 +<note warning>
 +  - The Toshiba driver for linux only supports 5-digit codes - if you have a longer code, your jobs will be held (you can release it from the embedded web page of the copier itself). Contact us if you would like your code changed to 5-digits.
 +  - Adobe's acroread printing doesn't work correctly with DeptCodes. You either have to release the job from the copier web interface, or use an alternative PDF viewer (try evince or qpdfview). You can also send PDF files directly to a printer using lpr.
 +</note>
  
 ===== Hint: Remote Printing ===== ===== Hint: Remote Printing =====
Line 94: Line 86:
  
 <code> <code>
-bash> cat myfile.ps |ssh physics.umn.edu "cat - |lpr -P342"+bash> cat myfile.ps |ssh ssh.physics.umn.edu "cat - |lpr -P342"
 </code> </code>
  
Line 100: Line 92:
  
 <code> <code>
-tcsh> alias lp342 'cat \!\!:1 | ssh physics.umn.edu "lpr -P342"'+tcsh> alias lp342 'cat \!\!:1 | ssh ssh.physics.umn.edu "lpr -P342"'
 tcsh> lp342 myfile.ps tcsh> lp342 myfile.ps
 </code> </code>
Line 106: Line 98:
 Or bash: Or bash:
 <code> <code>
-$ lp342() { cat $1 |ssh physics.umn.edu "lpr -P342" }+$ lp342() { cat $1 |ssh ssh.physics.umn.edu "lpr -P342" }
 $ lp342 myfile.ps $ lp342 myfile.ps
 </code> </code>
computing/department/unix/printing.1331058010.txt.gz · Last modified: 2012/03/06 12:20 (external edit)