Skip to content
Create a gist now

Instantly share code, notes, and snippets.

Embed URL


Subversion checkout URL

You can clone with
Download ZIP
Bootstrap script for Mac dev machine setup
# bash <(curl -s
read -p "Install Xcode (from the App store) and gcc for Lion ( and press enter to continue."
# setup your ssh keys for github
if ! [ -e "$HOME/.ssh/" ]
echo "Generating ssh key..."
read -p "Please enter the email you want to associate with your ssh key: " email
ssh-keygen -t rsa -C "$email"
cat ~/.ssh/
cat ~/.ssh/ | pbcopy
read -p $'\nYour ssh public key has been printed above and copied to the clipboard for convenience. Add it to your Github account at and press enter to continue.'
#install homebrew to get latest git. This way it still works if you did gcc, not just XCode (albeit this is irrelevant if you're installing e.g. Node.js, which requires headers from Xcode)
echo -e "\nRunning Homebrew installer.\n"
/usr/bin/ruby -e "$(curl -fsSL"
brew install git
# Chef the machine
git clone /tmp/bootstrap-chef-ops
rvm rvmrc trust /tmp/bootstrap-chef-ops
cd /tmp/bootstrap-chef-ops
#Your main chef repo should have pivotal_workstation as a submodule, and a valid soloistrc file
git submodule update --init
sudo gem install bundler --no-ri --no-rdoc
echo -e "\nAbout to run Soloist, which requires root privileges (meaning you may be asked for your password)\n"
rm -rf /tmp/bootstrap-chef-ops
cd -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.