Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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-Access

HOW TO INSTALL THE SCRIPT


Required libs


sudo apt-get install expect

sudo 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/uhhprint

sudo 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-panel

gnome-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.

Flattr this