This notebook contains the steps to obtain a remote connection and obtain the materials for the tutorial.
Set up a remote session in CAMM2 with X2Go
Set up a remote session in ANALYSIS with thinlinc
Download all materials for the tutorial
Viewing ipython notebooks
Create your scratch area
(Top)
By installing the X2Go client in your machine, you will be able to login remotely to camm2.sns.gov.
Install in your machine the x2go client, downloadable here.
Open x2go and start to configure a new session:
(Top)
analysis.sns.gov
Options
In the Screen
tab, make sure the otpions are same as in this picture
In the Security
tab, make sure the SSH Port options are the same as in the picuture.
Press OK
and then connect
to analysis.sns.gov
Once you are in the analysis.sns.gov, you will connec to camm2.sns.gov with the X2Go client from Applications
$\rightarrow$ Internet
$\rightarrow$ X2Go Client
Follow the instructions in Set up a remote session in CAMM2 with X2Go to login to camm2, but make sure you set SSH Port to 2222
.
(Top)
Main menu
$\Rightarrow$ System Tools
:
In the terminal, type:
cd $HOME
git clone https://github.com/camm/SHUG2015.git
These instructions will download the remote GitHub repository into subdirectory SHUG2015/. This directory contains all files for the tutorial.
(Top)
Much of the discussion in this tutorial will be presented through ipython notebooks. You can view a notebook stored in the remote repository or in the local repository that you cloned:
Point your web browser to the notebook viewer for this tutorial. You will see the contents of the repository in GitHub.
Navigate to folder setup. Inside, you will find file setup.ipynb. Files with extension ipynb are ipython notebooks. Click in the file and the notebook will be displayed.
Note: this is a read-only view. You cannot change the contents of the notebook.
Other notebooks within the repository can be opened in the same way, navigating to their locations with the browser.
(This steps assumes you have downloaded all materials for the tutorial)
Open a terminal and type:
cd $HOME/SHUG2015/
cd setup/
ipython_notebook.py ./
Your web browser will open a tab showing the list of notebook files residing within subdirectory setup/:
Click in "setup" and a new broser tab will open to display the notebook hosted in the remote repository.
Note: this is a read-write view. You can edit the notebook and include your own notes!. Familiarize yourself with the markdown syntax that is followed by ipython notebooks.
Other notebooks within the local repository can be opened in the same way, navigating to their locations with the terminal (Linux command cd somedirectory
), and then issuing the command "ipython_notebook.py ./
".
There are three steps involved in closing a notebook that has been opened in the local repository:
1 Close the browser tab displaying the notebook.
2 In the broser tab displaying the list of notebooks, click the "shutdown" button corresponding to the notebook you just closed. You can close this tab too, if you want.
3 In the terminal where you typed "ipython_notebook.py ./
", press Ctrl-c and then answer "y" to the question "Shutdown this notebook server (y/[n])?
"
This will free the terminal from running the notebook server. Now you can use the terminal to navigate to other directory and open other notebook.
(Top)
cd /SNSlocal/scratch/
mkdir $USER
cd $USER/
(Top)
(Top)