Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
145 lines (81 sloc) 3.69 KB

##Hello, new students!

There are a few things we need you to install prior to the course. Below, find your operating system and follow the instructions.

#All operating systems: Anaconda and R

We will use the anaconda distribution of Python. This version has some very nice support for mathematical and statistical programming. You can choose the version for your operating system here: http://continuum.io/downloads

For Mac and PC, an installer will pop up, and guide you through the process. See below for Linux instructions.

Download R and the popular IDE RStudio.

##Mac: TextWrangler and git

If you are using a Mac, you need a plain-text editor. This is used for editing code and scripts. We recommend TextWrangler: http://www.barebones.com/products/textwrangler/

Under the Applications folder on your computer, please find the Utilities folder. In this folder, there is an application called 'Terminal'. Please double-click it. When it opens, type

python

into the terminal. This should display the following, probably with some text:

>>>

If you aren't able to open the terminal, or type 'python' into it, please e-mail me. Type Ctrl+D to exit from Python.

Lastly, Mac users will need a version of Git. It can be downloaded from here: http://code.google.com/p/git-osx-installer Choose your operating system from the list and follow the instructions.

Once you've installed git, in your terminal, type:

git

As long as you don't see the following error:

-bash: git: command not found

You should be good to go!

##Windows: Notepad++ and git-bash

Windows users need a plain text editor for reading and editing code. We recommend using Notepad++: http://notepad-plus-plus.org/download/v6.4.3.html

Windows doesn't natively have the same terminal functionality of Mac or Linux, so you'll have to install it. Download and install git-bash from this site:

https://openhatch.org/missions/windows-setup/install-git-bash

Open the program by following the instructions here:

https://openhatch.org/missions/windows-setup/open-git-bash-prompt

When you open the program, call python by typing,

python

This should display the following, probably with some text:

>>>

Ctrl + D will exit from Python.

Once you have exited Python, type:

git

If you do not receive any error messages, you should be set!

##Ubuntu: Anaconda and git

The native gEdit text editor should be fine for the code reading and writing we will do in this workshop. If you don't already have it, git can be installed in the software center.

Control + Alt + Tab will open a terminal window. Installing the Python Anaconda distribution on Linux is easy. Type

./

and then drag the downloaded Anaconda file into the terminal. Press enter. Note that you may need to run the installer as root. This can be done like so:

sudo ./

followed by the dragged and dropped file. If you have permissions issues, you can fix these with 'chmod +x' followed by the filename

If you'd prefer to install git at the command line, you can do so by typing

sudo apt-get install git

Once you've opened the terminal, type:

git

If you don't receive an error message saying the command was not found, you should be good to go.

Also, type:

python

This should display the following, probably with some text:

>>>

Typing Ctrl+D will exit from python.

##Helpful Hints for all Operating Systems

If you do a new install of Python or git, it is helpful to close down your terminal program and restart it. This allows the terminal to update and use the new installs.