Skip to content

Instantly share code, notes, and snippets.

@MichaelMartinez
Forked from svnlto/install.md
Created August 13, 2012 04:28
Show Gist options
  • Save MichaelMartinez/3336983 to your computer and use it in GitHub Desktop.
Save MichaelMartinez/3336983 to your computer and use it in GitHub Desktop.
Setup OS X 10.7/8 w/ homebrew, oh-my-zsh, rvm, nodejs, nvm

Setup new Mac with OSX Lion from scratch for Virtualization

These commands are good as of 08/12/2012.

The command line tools are approximately 171mb and everything you need w/ Free Apple ID. Or you can download the entire Xcode app.

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

ruby <(curl -fsSk https://raw.github.com/mxcl/homebrew/go)

Note that Xcode is a pre-req for Homebrew

Set shell to ZSH and install oh-my-zsh

chsh -s /bin/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.

curl -L https://get.rvm.io | bash -s stable --ruby

append to .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.3
    rvm install 1.8.7 #if needed

See if there is anything in the rvm notes you need to take action on.

Create a ~/.gemrc file and add the line

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

Node.js

Binary installer

http://nodejs.org/dist/v0.8.6/node-v0.8.6.pkg

Using homebrew:

brew install node
  • Note: NPM is in the .pkg

  • Warning: brew installs are known to be buggy

NAVE or NVM

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