Setup instructions TBB Tutorial

# On your local machine,
# In ~/.ssh/config add the following lines.
Host lhdhead 
     ProxyCommand ssh lodsXX@portal.lofar.eu netcat %h %p

Log in to the portal: ssh -Y lodsXX@portal.lofar.eu
Log in to the head node:  ssh -Y lodsXX@lhdhead.offline.lofar

# Copy the tutorials to your home directory
cp -r /data015/scratch/DATASCHOOL2018_T10_TBB/Tutorials ~/

You can also copy the solutions:

cp -r /data015/scratch/DATASCHOOL2018_T10_TBB/Solutions ~/

# Go to the Tutorial directory
cd Tutorials

# Start a screen. You can later reconnect with screen -dr
screen

# Create a link to the right pythonpath
export PYTHONPATH=$PYTHONPATH:/data015/scratch/DATASCHOOL2018_T10_TBB/

#Start a notebook server on your lof node. Port may change if it’s already taken
jupyter notebook --no-browser --port 8890

Copy the http command for later use (e.g. http://localhost:8890/?token=e71ba52ec15c11cec8d7fbc999a9041a )

Create a link to the node at your local machine. Choose the right port, that is the actual port used by jupiter. This depends on your account

ssh -L :8890:127.0.0.1:8890 -l lodsXX lhdhead

# Connect using the right command in a browser on your local machine
open -a firefox http://localhost:8890/?token=e71ba52ec15c11cec8d7fbc999a9041a

# You can now run tutorials for task 1, 2 (3) and 3 (5).

#When finished, close everything again. Login to lhdhead
ssh lhdhead

#Reconnect to the screen
screen -dr

Stop jupiter (ctrl + c )

Stop the screen (ctrl+c)