Skip to content

Instantly share code, notes, and snippets.

@SiriusDely
Forked from svnlto/install.md
Created May 17, 2013 09:29
Show Gist options
  • Save SiriusDely/5598011 to your computer and use it in GitHub Desktop.
Save SiriusDely/5598011 to your computer and use it in GitHub Desktop.

Setup new Mac with OSX Lion from scratch

These commands are good as of 2011-07-27.

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.

Really the nicest choice for a terminal on OSX right now, especially with Lion style full screen support.

ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"

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 iTerm2

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 < <(curl -s https://rvm.beginrescueend.com/install/rvm)

.zshrc

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

Start new shell session

Install ruby

rvm install 1.9.2
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

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