Skip to content

Instantly share code, notes, and snippets.

@karmi
Created December 19, 2010 13:43
Show Gist options
  • Save karmi/747336 to your computer and use it in GitHub Desktop.
Save karmi/747336 to your computer and use it in GitHub Desktop.
Installation Instructions For Setting Up A Clean Mac OS X System
# =====================================================
# Installation instructions for a clean Mac OS X system
# =====================================================
#
# <https://gist.github.com/747336>
#
# Keep only `.ssh` and `.profile.local` files from backup
# + Clean up Apple Ruby
sudo rm -r /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8
sudo gem update --system
sudo gem clean
# + Install Homebrew
mkdir -p /usr/local
mkdir -p /usr/local/bin
sudo chown -R $USER /usr/local
cd $HOME && mkdir -p homebrew
curl -L https://github.com/mxcl/homebrew/tarball/master | tar xz --strip 1 -C homebrew
ln -nfs $HOME/homebrew/bin/brew /usr/local/bin/
brew update
# Install Git
brew install git
# Hook up Homebrew installation to your fork
rm -rf /tmp/myhomebrew
git clone git@github.com:$USER/homebrew.git /tmp/myhomebrew
git --git-dir=/tmp/myhomebrew/.git remote rename origin $USER
git --git-dir=/tmp/myhomebrew/.git remote add upstream git://github.com/mxcl/homebrew.git
cp -r /tmp/myhomebrew/.git $HOME/homebrew/.git
rm -rf /tmp/myhomebrew
# + Install dotfiles
git clone git://github.com/karmi/dotfiles $HOME/dotfiles
cd $HOME/dotfiles
rake install
# + Add ~/.profile.local
export PATH="/opt/local/lib/ruby/gems/1.8/gems/bin/:$PATH"
export GEM_HOME="/opt/local/lib/ruby/gems/1.8/gems"
# etc ...
# + Ruby ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# + Install RVM
bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )
# Put [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" $HOME/.profile.local
# + Install Ruby 1.8.x and 1.9.x
rvm install 1.8.7
rvm install 1.9.3
# + Install essential Rubygems
gem install bundler factory_girl fakeweb iconv nokogiri paperclip rails rack-cache rack-contrib rack-flash rack-test rake rcov rdiscount rdoc redis redis-namespace resque shoulda sinatra soca sqlite3-ruby thin turn will_paginate wirble yajl-ruby yard amqp capistrano capistrano-ext chronic clearance couchrest_model curb daemons
# + Utils etc ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
brew install macvim
# + Databases ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
brew install couchdb
brew install redis
brew install elasticsearch
# + Web Servers ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# + Caches +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# + Node.js ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
brew install node
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment