Skip to content

Instantly share code, notes, and snippets.

@schleg
Last active December 15, 2015 01:19
Show Gist options
  • Save schleg/5178840 to your computer and use it in GitHub Desktop.
Save schleg/5178840 to your computer and use it in GitHub Desktop.
# verified to work on DigitalOcean Ubuntu 12.10 X32 Server instance
# prerequisites
sudo addroup admin
apt-get -y update
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline-gplv2-dev libyaml-dev gcc git make zsh
chsh -s /bin/zsh
# oh-my-zsh
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
# rebenv + ruby-build (https://github.com/sstephenson/rbenv/#basic-github-checkout)
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc
echo 'eval "$(rbenv init -)"' >> ~/.zshrc
source ~/.zshrc
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
rbenv install 1.9.3-p327
rbenv global 1.9.3-p327
gem install chef ruby-shadow --no-ri --no-rdoc
rbenv rehash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment