-
-
Save 0xradical/3840846 to your computer and use it in GitHub Desktop.
Leopard, Homebrew, Git, RVM, Ruby, MySQL and ImageMagick
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 2012-01-07 | |
# | |
# Mac OS X 10.5.8 | |
# Homebrew 0.9 | |
# Xcode 3.1.4 | |
# Git 1.7.10 | |
# RVM 1.3.0 | |
# Ruby 1.9.3 | |
# MySQL 5.5.20 | |
# ImageMagick 6.7.5-7 | |
# Install Leopard. | |
# Dotfiles | |
echo "$(curl -fsS https://raw.github.com/gist/606100)" > ~/.profile | |
echo "$(curl -fsS https://raw.github.com/gist/606087)" > ~/.bashrc | |
echo "$(curl -fsS https://raw.github.com/gist/606102)" > ~/.bash_profile | |
echo "$(curl -fsS https://raw.github.com/gist/606107)" > ~/.gitignore | |
echo "$(curl -fsS https://raw.github.com/gist/606105)" > ~/.rvmrc | |
# Close Terminal window. | |
# Homebrew | |
/usr/bin/ruby -e "$(/usr/bin/curl -fksSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)" | |
# Xcode | |
# Download Xcode 3.1.4 from developer.apple.com because the version on the DVD is | |
# buggy and doesn't agree with RVM. It's a 3 GB download, so take a break or | |
# set up some of your personal interface preferences. | |
# Software Update | |
# You'll have to do it a few times to get back up to speed. | |
# wget | |
brew install wget | |
# Leopard is packaged with outdated ssl certs. update them with the following | |
wget --no-check-certificate https://www.digicert.com/testroot/DigiCertHighAssuranceEVRootCA.crt | |
cat /usr/share/curl/curl-ca-bundle.crt DigiCertHighAssuranceEVRootCA.crt > new-ca-bundle.crt | |
sudo mv /usr/share/curl/curl-ca-bundle.crt /usr/share/curl/curl-ca-bundle.crt.old | |
sudo mv new-ca-bundle.crt /usr/share/curl/curl-ca-bundle.crt | |
# Git | |
brew install git | |
brew update | |
brew upgrade | |
# RVM | |
curl -L get.rvm.io | bash -s stable | |
rvm install 1.9.3 | |
rvm 1.9.3 --default | |
# confirm ruby with | |
ruby -v | |
# MySQL | |
brew install mysql | |
mysql_install_db | |
cp /usr/local/Cellar/mysql/#{whatever-version}/homebrew.mxcl.mysql.plist /Library/LaunchDaemons | |
launchctl load /Library/LaunchDaemons/homebrew.mxcl.mysql.plist | |
# Confirm this worked with: | |
launchctl list | grep mysql | |
mysql.server start | |
# ImageMagick | |
brew install imagemagick | |
# Reboot. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment