a Summer School by the G-Node and the
Faculty of Electrical Engineering, Mechanical Engineering and Naval Architecture (FESB), University of Split
You can just paste the whole block below into a shell.
# This script will try not to make changes twice, so it # should be safe to run it more than once. # Update the ssh tunnel configuration so it does not break after 20 s of idleness sed -i s/-w/-q/ .ssh/config
u=USER && p=PORT && ssh -Mt -o ExitOnForwardFailure=yes -L $p:localhost:$p $u@sgi01 PATH=/home/francesc/anaconda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/var/cfengine/bin ipython notebook --no-browser --port=$p
You'll have to type in the password for USER twice.
Finally launch the browser:
firefox http://localhost:PORT/