{
"metadata": {
"name": "",
"signature": "sha256:6819663b6c2e11cf9578f7111624b2b48acddccf78844e731344c70f91f0f07c"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "heading",
"level": 1,
"metadata": {},
"source": [
" Day 4 - Thursday, April 10, 2014"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**Summary:** ssh'ing to dirac, more iPython, ipythonblocks"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"---"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"`1.` Open a Terminal window and learn how to connect to a remote computer (in this case, the dirac cluster) using `ssh` (secure shell). \n",
"\n",
"`ssh` is a program that encrypts all communications between the local and remote computer. Because graphical information is data-intensive, `ssh` does not allow remote graphics by default. In order to force `ssh` to forward graphical output, we have to give it the flag `-X`, that stands for \"X forwarding\". \"X\" is the graphical windowing system used on UNIX machines, such as the dirac cluster. Here is the command we enter to log onto dirac5:\n",
"\n",
" $ ssh -X @dirac5.calpoly.edu\n",
"\n",
"This command will work from any networked Mac or linux machine with `ssh` installed. For Windows users, you need to install two pieces of software to be able to use dirac. First, an `ssh` client program like PuTTy and then an X-windowing system like Xming. \n",
"\n",
"* Here is a link to some helpful instructions for PuTTy: https://rcc.its.psu.edu/user_guides/remote_connectivity/putty/\n",
"* Here is a link to some helpful instructions for Xming: https://rcc.its.psu.edu/user_guides/remote_display/xming/"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"`2.` Once we are logged onto dirac for the first time, we have to set up our environment to have the paths to all of the programs we want to run in our PATH variable. Instead of having everybody type in the contents of the .bash_profile file, we can use the copy command `cp`, to copy `jklay`'s file to our home directory. To do that enter the following command:\n",
"\n",
" $ cp ~jklay/.bash_profile .\n",
"\n",
"The `~jklay` part is a shortcut to `jklay`'s home directory. This same shortcut will work for any user account on the machine. The \"dot\" at the end of the command tells the copy command to copy the file with the same name as the source file in the current directory. As we have seen, the general form of the command is\n",
"\n",
" $ cp