Skip to content

Instantly share code, notes, and snippets.

@we4tech
Forked from elvio/bootstrap.sh
Last active August 29, 2015 14:01
Show Gist options
  • Save we4tech/20a26890087bfde51d98 to your computer and use it in GitHub Desktop.
Save we4tech/20a26890087bfde51d98 to your computer and use it in GitHub Desktop.
With ruby 2.0
#!/usr/bin/env bash
sudo apt-get -y update
sudo apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev git
sudo mkdir /tmp/ruby_install && cd /tmp/ruby_install
wget -O ruby-install-0.4.2.tar.gz https://github.com/postmodern/ruby-install/archive/v0.4.2.tar.gz
tar -xzvf ruby-install-0.4.2.tar.gz
cd ruby-install-0.4.2/
sudo make install
sudo ruby-install -i /usr/local -p https://gist.githubusercontent.com/plexus/10021261/raw/305492ebd17308e55eee1baab27568fafaa940cb/ruby-2.0-p451-readline.patch ruby 2.0
gem install chef --no-ri --no-rdoc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment