Skip to content

Instantly share code, notes, and snippets.

@csshsh
Created November 16, 2010 10:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save csshsh/701647 to your computer and use it in GitHub Desktop.
Save csshsh/701647 to your computer and use it in GitHub Desktop.
# Install XCode
# Install Homebrew
ruby -e "$(curl -fsSL https://gist.github.com/raw/323731/install_homebrew.rb)"
brew install git
brew update
brew upgrade
# RVM
bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"' >> ~/.bash_profile
# Close Terminal window.
rvm install 1.8.7
rvm install 1.9.2
rvm 1.8.7 --default
# Passenger
gem install passenger
rvmsudo passenger-install-apache2-module
# Follow instructions.
# Replace "PassengerRuby" line with "PassengerRuby /Users/[user]/.rvm/bin/passenger_ruby".
rvm 1.8.7 --passenger
sudo apachectl restart
# MySQL
brew install mysql
mysql_install_db
cp /usr/local/Cellar/mysql/5.1.49/com.mysql.mysqld.plist ~/Library/LaunchAgents
mysql.server start
mysql_secure_installation
# Follow instructions.
# SSH Key
ssh-keygen -t rsa -C "tekkub@gmail.com"
# Passenger PrefPane
https://github.com/alloy/passengerpane
gem install bundler
brew install imagemagick
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment