Skip to content

Instantly share code, notes, and snippets.

@vieron
Forked from seamusjr/install.md
Created April 30, 2012 23:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vieron/2563550 to your computer and use it in GitHub Desktop.
Save vieron/2563550 to your computer and use it in GitHub Desktop.
Setup OS X 10.7 w/ homebrew, oh-my-zsh, rvm, nvm

Setup new Mac with OSX Lion from scratch.

These commands are good as of 2012-03-18.

Install Xcode 4

The download/install takes a while so start it first. When it finishes downloading you will still need to run it to complete installation.

Note: Make sure you install the XCode Command Line Tools after XCode is done installing. To do this go to Xcodes -> Preferences -> Downloads -> Command Line Tools -> Install. If you don't you might not be able to install brew packages (i.e. brew install wget will fail).*

[Homebrew](per homebrew installation page https://github.com/mxcl/homebrew/wiki/installation)

/usr/bin/ruby -e "$(/usr/bin/curl -fksSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"

Note that Xcode is a pre-req for Homebrew

Set shell to ZSH and install oh-my-zsh

curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh

restart terminal

SCM

Git

brew install git

http://help.github.com/mac-set-up-git/

Copy over your SSH Keys from your existing machine if you have them and want to carry over your existing SSH configs.

bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)

.zshrc

[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"  # This loads RVM into a shell session.

Start new shell session

Install ruby

You need to provide the --with-gcc=clang flag because of LLVM issues, else 1.9.3 will not work fix per [this StackOverflow](http:///stackoverflow.com/questions/8032824/cant-install-ruby-under-lion-with-rvm-gcc-issues)
rvm install 1.9.3 --with-gcc=clang 
rvm install 1.8.7
rvm notes

See if there is anything in the rvm notes you need to take action on. As of this writing the compiler needs to be overridden.

Create a ~/.gemrc file and add the line

gem: --no-ri --no-rdoc

 rvm --default 1.8.7
 rvmsudo gem install bundler
 rvmsudo gem install lunchy

Enable Apache, PHP and MySQL

Node.js

.nvm

npm install nvm

.zshrc

if [[ -s $HOME/.nvm ]] ; then setopt nullglob NVM_DIR=$HOME/.nvm source $NVM_DIR/nvm.sh fi

node.js

nvm install 0.6.5

npm

curl http://npmjs.org/install.sh | sh

Vagrant

gem install vagrant
$ vagrant box add base http://files.vagrantup.com/lucid64.box
$ vagrant init
$ vagrant up

ievms

https://github.com/xdissent/ievms

Download and unpack ievms:

Install IE versions 6, 7, 8 and 9.

curl -s https://raw.github.com/xdissent/ievms/master/ievms.sh | bash

Install specific IE versions (IE7 and IE9 only for example):

curl -s https://raw.github.com/xdissent/ievms/master/ievms.sh | IEVMS_VERSIONS="7 9" bash

Launch Virtual Box.

Choose ievms image from Virtual Box. Install VirtualBox Guest Additions (pre-mounted as CD image in the VM). IE6 only - Install network adapter drivers by opening the drivers CD image in the VM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment