Campuses:
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
computing:department:unix:printing [2011/09/01 13:01] – [Finding other available options and setting defaults] allan | computing:department:unix:printing [2021/05/04 16:44] (current) – cse-sull0153 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | <box 20% right right-clear red|More Information> | ||
- | {{indexmenu>: | ||
- | </ | ||
- | |||
====== Printing from Unix ====== | ====== Printing from Unix ====== | ||
- | For complete information | + | Printing |
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 -a |
- | 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/ |
===== Printing to Toshiba copiers ===== | ===== Printing to Toshiba copiers ===== | ||
- | To print to the Tosiba | + | |
+ | To print to the Toshiba color copiers | ||
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 74: | Line 71: | ||
You can avoid having to specify the code every time, by storing it using '' | You can avoid having to specify the code every time, by storing it using '' | ||
- | 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 |
- | + | ||
- | 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). | + | |
- | + | ||
+ | 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). | ||
+ | <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' | ||
+ | </ | ||
===== Hint: Remote Printing ===== | ===== Hint: Remote Printing ===== | ||
Line 88: | Line 86: | ||
< | < | ||
- | bash> cat myfile.ps |ssh physics.umn.edu "cat - |lpr -P342" | + | bash> cat myfile.ps |ssh ssh.physics.umn.edu "cat - |lpr -P342" |
</ | </ | ||
Line 94: | Line 92: | ||
< | < | ||
- | 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 | ||
</ | </ | ||
Line 100: | Line 98: | ||
Or bash: | Or bash: | ||
< | < | ||
- | $ 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 | ||
</ | </ |