Here's a shortlink to this page: http://bit.ly/WDI5_DC_InstallFest
Please follow these instructions in order.
Open Applications > Utilities > Terminal
Below are a bunch of commands to enter into Terminal, which is a way of interacting with your computer that doesn't use the fancy desktop interface you're used to.
You should be able to copy and paste the lines into Terminal -- except for a few that have obvious prompts in them, like "YOUR NAME", which you should replace accordingly. Do not copy and paste multiple lines at once. Copy/paste them individually, one at a time.
The lines below all start with $
, but you shouldn't actually write the $
. Its purpose is just to make the starts of lines easy to see in these instructions.
Also, you may be prompted for a password at certain points:
Just type your computer's password and hit Return, even if it doesn't look like it's recording anything you're typing. By default, Terminal does not show a bullet for each character you type -- it just shows one, to keep prying eyes from figuring out how long your password is.
TextEdit is the super-simple built-in text editor that comes with each Mac. We're not officially going to be writing any code with it in class.
That said, it's hard to avoid it because a lot of documents open up in it by default. Also, the fact that it's so small and lightweight makes it kinda nice for making tiny edits really quickly.
Out of the box, TextEdit shows things as rich text, meaning it lets you make things bold and italic, change fonts, etc (a la Microsoft Word). This adds lots of "hidden" code to the file you're editing.
To make TextEdit suitable for writing code, go to TextEdit > Preferences from the menu bar, and make the Format and Options section look like the image below. Notice that I've de-selected pretty much everything and changed it to plain text mode, which does not add any hidden code to your files.
Then quit and restart TextEdit.
- Download Atom
- Open Atom
- From the 'Atom' menu, select 'Install Shell Commands'
$ xcode-select --install
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Wait until it's done downloading, then...
$ brew update && brew upgrade
$ echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.bash_profile
The output of which brew
is usr/local/bin/brew
The output of brew doctor
is ready to brew
This checks to see if you have RVM installed already:
$ which rbenv
If the output is anything other than blank, get an instructor to help you uninstall.
Otherwise, go ahead and install RVM:
$ \curl -sSL https://get.rvm.io | bash
Then close and reopen the Terminal.
The output of $ which rvm
is not rvm not found
$ source ~/.rvm/scripts/rvm
$ rvm install 2.2.0
Then, close and reopen the terminal to ensure the terminal is using these changes.
- The output of
which ruby
is not/usr/bin/ruby
and - The output of
ruby --version
starts withruby 2.2.0p0
.
$ gem install pry
$ brew install git
The output of git --version
is greater than or equal to 2.0
Be sure to replace "YOUR NAME" and "YOUR@EMAIL.COM"!
$ git config --global user.name "YOUR NAME"
$ git config --global user.email "YOUR@EMAIL.COM"
$ git config --global color.ui always
$ git config --global color.branch.current "green reverse"
$ git config --global color.branch.local green
$ git config --global color.branch.remote yellow
$ git config --global color.status.added green
$ git config --global color.status.changed yellow
$ git config --global color.status.untracked red
$ git config --global core.editor "atom --wait"
$ brew install curl
- Go to https://github.com/ga-students/wdi_dc5/blob/master/w00/installfest/Rakefile
- Click the 'Raw' button
- Copy the address of the page that opens.
$ curl [THE WEB ADDRESS YOU COPIED] > Rakefile
$ rake installfest:doctor
Scroll to the top of this page, click on the "Sign Up for a Github Account" button, and complete the steps.
Write your GitHub username on the whiteboard.