Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aypac/uhh-print
A solution for remote-printing via ssh
https://github.com/aypac/uhh-print
Last synced: about 1 month ago
JSON representation
A solution for remote-printing via ssh
- Host: GitHub
- URL: https://github.com/aypac/uhh-print
- Owner: Aypac
- Created: 2015-06-15T09:27:12.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-06-15T16:14:46.000Z (over 9 years ago)
- Last Synced: 2023-08-10T09:35:50.295Z (over 1 year ago)
- Size: 242 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
UHH Physnet Printing script
This script is desinged for printing in the physnet remotely from your PC, preferably running linux (developed under Ubuntu).
To archive this, it will log into your account with ssh, scp the files up, print via lpr and check the queue with lpq. If you don't understand this, don't worry, you won't need to.
WHAT YOU'LL NEED
- The files you want to print as PDFs without password in one folder
- Your Physnet-Username (Usually first letter of your first- and first seven letters of
your lastname; e.g. rvollmer for René Vollmer)
- The password
- Internet-AccessHOW TO INSTALL THE SCRIPT
Required libs
sudo apt-get install expectsudo apt-get install expectk
more: http://www.cyberciti.biz/tips/execute-commands-on-multiple-hosts-using-expect-tool-part-iii.html
mkdir ~/UH\ PRINT/
Extract the zip into that folder. Then:
sudo chmod +x ~/UH\ PRINT/uhhprint.exp
create a file Deckblatt.pdf like the one in the zip inside this folder. You can use e.g. open office for this. Then:
scp ~/UH\ PRINT/Deckblatt.pdf [email protected]:~/print/
or just start the script and select s when asked for the Cover page.
Advanced
You can open the .exp-Files with an editor of your choice and edit the default values.Recommended
sudo cp ~/UH\ PRINT/uhhprint.exp /bin/uhhprintsudo chmod +x /bin/uhhprint
enables you to start the script with the command "uhhprint"
You have to repeat that with any change in default values or new versions.
Cool: Quickstarter for Ubuntu
sudo apt-get install gnome-tweak-tool gnome-panelgnome-desktop-item --create-new ~/UH PRINT/launcher.desktop
Select:
*Aplication in Terminal
*uhhprint
*Name, icon and description desired
Drag and drop the icon into the starter on the left
Flattr me
This took me ages to programm and can save you eternities and many pages.