#Install git and Ruby
##Mac Users
Commands that look like this should be entered into your Terminal
application. It can be found in Applications/Utilities.
-
Make sure you have an apple ID (you should already have one).
-
Install Command Line Tools
- https://developer.apple.com/downloads/index.action
- Search for "Command Line Tools" and select the version appropriate for your operating system.
- Install the command line tools from the downloaded file.
- Install Homebrew
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"- The install page if you have trouble: http://mxcl.github.io/homebrew/
-
Install git
brew updatebrew install git
-
Configure git with your Name and Email
- https://help.github.com/articles/setting-your-email-in-git
- https://help.github.com/articles/setting-your-username-in-git
- Install RVM with Ruby 2.0.0
\curl -L https://get.rvm.io | bash -s stable --rubyrvm use 2.0.0 --default- Make sure the latest versions of RVM and Ruby were installed, run the commands below:
-
For RVM
-
rvm -vYou should get rvm 1.0.0 or higher.
-
-
For Ruby
-
ruby -vYou should get ruby 2.0.0p0 or higher.
-
-
- Make sure the latest versions of RVM and Ruby were installed, run the commands below:
##Ubuntu Linux Users
Commands that look like this should be entered into your Terminal
application.
- Open a terminal window
- Install git
sudo apt-get install build-essential git-core- Set your git name and email:
- Install curl
sudo apt-get install curl
- Install RVM
\curl -L https://get.rvm.io | bash -s stable --ruby- The backslash in font of "curl" is not a typo.
rvm use 2.0.0 --default- Make sure the latest versions of RVM and Ruby were installed, run the commands below:
-
For RVM
rvm -vYou should get rvm 1.0.0 or higher.
-
For Ruby
ruby -vYou should get ruby 2.0.0p0 or higher.
-
- Make sure the latest versions of RVM and Ruby were installed, run the commands below:
##Windows Users
- Install VirtualBox
- Download Ubuntu Linux
- http://www.ubuntu.com/download/desktop
- Version 13.04 is probably preferable but 12.04 is also fine.
- Create your virtual machine
- Open VirtualBox and click the "New" button
- Enter any name
- Select "Linux" as the type
- Select either "Ubuntu" or "Ubuntu (64 bit)" as the version depending on which you downloaded.
- Memory size is the amount of your RAM that will be used to run Linux. 1024MB should be more than enough, but if you have a lot of RAM you can boost this number. If your machine only has 1GB of RAM then 512MB will have to do. If you're not sure, don't worry because this value can be changed later.
- Hard drive - Select "Create a virtual hard drive now" then use the "VDI" type and then the "Dynamically allocated" option. Name the virtual hard drive file anything and select an amount of hard drive space that your computer is capable of supporting. 8GB should be plenty.
- After clicking "Create", select the new virtual machine you created in the left column and press the "Start" button.
- In the "Select start-up disk" window, select the Ubuntu Linux .iso file you downloaded and press start. You can then follow the Ubuntu installation instructions.
- Setup Ubuntu
- Now see the the installation instructions for Ubuntu Linux!
##Happy Coding :)
You're ready for the first class.
