Skip to content

Instantly share code, notes, and snippets.

@fnichol
Created September 5, 2010 16:15
Show Gist options
  • Save fnichol/566130 to your computer and use it in GitHub Desktop.
Save fnichol/566130 to your computer and use it in GitHub Desktop.
Mac OS X 10.6 Bootstrapping
#!/bin/bash
#
# Mac OS X 10.6 Bootstrapping
# turn on ssh
sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist
# run software update and reboot
sudo softwareupdate --install --all
sudo shutdown -r now
# install xcode off install dvd, update again and reboot
sudo installer -pkg /Volumes/Mac\ OS\ X\ Install\ DVD/Optional\ Installs.localized/Xcode.mpkg -target /
sudo softwareupdate --install --all
sudo shutdown -r now
# install nicer coding font (click "install" when prompted)
font=Inconsolata.otf && \
curl http://www.levien.com/type/myfonts/$font -o /tmp/$font && \
open -W -a /Applications/Font\ Book.app /tmp/$font && \
rm /tmp/$font && \
unset font
# install terminal settings
curl -L http://github.com/fnichol/macosx-terminal-settings/raw/master/Nichol.terminal \
-o /tmp/Nichol.terminal && \
open -a /Applications/Utilities/Terminal.app /tmp/Nichol.terminal
# install iterm2
bash < <(curl -L http://gist.github.com/raw/824149/iterm2_install.sh)
# install iTerm2 settings
bash < <(curl -L https://github.com/fnichol/macosx-iterm2-settings/raw/master/contrib/install-settings.sh)
# homebrew bootstrap
ruby -e "$(curl -LfsS http://gist.github.com/raw/323731/install_homebrew.rb)"
brew install git
brew update
# bashrc sanity
sudo bash < <( curl -L http://bit.ly/bashrc-install-system-wide )
# install tons 'o brews
brew install python pip
pip install mercurial
pip install pygments
pkgs="
libxml2
libffi
unrar
lynx
stow
wget
subversion
mysql
mongodb
lame
flac
tree
ack
axel
imagemagick
source-highlight
git-flow
git-extras
git-hg
hub
llvm
yuicompressor
macvim
" && \
brew install $pkgs && \
unset pkgs
for pkg in libxml2 libffi ; do
brew link $pkg
done ; unset pkg
# rvm
bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )
bash < <( curl -L http://bit.ly/rvm_sugar )
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
rvm install 1.8.7 && rvm 1.8.7 --default
for r in 1.9.2 jruby ree ; do
rvm $r install
done ; unset r
# dotfile configs
rvm default
gem install homesick
for repo in dotfiles dotvim ; do
homesick clone git://github.com/fnichol/${repo}.git
homesick pull $repo && homesick symlink $repo
done ; unset repo
# don't poop .DS_Store files on network drives
defaults write com.apple.desktopservices DSDontWriteNetworkStores true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment