Introduction to the Unix Shell: Setup

For this workshop, we'll use the servers we set up in Week 1. You will need the IP address of the server that you have an account on. You'll also need your username and the password you set in Week 1.

Your server IP address depends on the first letter of your username. They are:

  • username starts with a-g: 115.146.85.246
  • username starts with h-n: 144.6.225.106
  • username starts with o-z: 130.56.249.93

If your computer is Mac or Linux, you can also just use your own computer if you prefer - if you want to do this on Mac, open the application Terminal. You are now set up! You can optionally now do the Get the example filesystem, below (this is recommended). You will need git installed for this.

Server login

If you haven't done the Week 1 lab, you should do Part 1 of that lab now to set your linux password, before you continue. Don't worry about Part 2.

You'll need to know the IP address of your instance (see above). If you're on Windows, you'll also need Putty installed.

If you're on Windows, to use ssh you'll need to run Putty and enter the address <your-username>@<your-ip-address> (where <your-username> is replaced by your own username, and <your-ip-address> is replaced by the address of your instance), and connect.

If you're on Mac or Linux you'll need to open a terminal and type

ssh <your-username>@<your-ip-address>

(where <your-username> is replaced by your own username, and <your-ip-address> is replaced by the address of your instance).

Get the example filesystem

Once you're logged into a shell, either on your local computer or a server, run the following commands:

git clone https://github.com/claresloggett/hammingdist_workshop -b gh-pages

This will get you the source documents for this workshop, including an example directory structure that you can use in the Unix lessons. If the git command doesn't work, you are probably on your local computer and don't have it installed. You can use the server instead, or ask a demonstrator for help.

Now run:

cd hammingdist_workshop/filesystem/users/nelle/

This cd command will put you inside the example directory structure and will help make the next lesson more clear.