Skip to content

Instantly share code, notes, and snippets.

@valk
Created June 22, 2013 18:12
Show Gist options
  • Save valk/5841918 to your computer and use it in GitHub Desktop.
Save valk/5841918 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# Tested for Ubuntu 12.04
[[ "$(id -u)" -ne "0" ]] && echo "must be root!" && exit 1
RBVER="1.9.3-p194"
apt-get update
apt-get install -y build-essential zlib1g-dev libyaml-dev libssl-dev wget rsync
# Install Ruby
cd /tmp
wget "http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-${RBVER}.tar.bz2"
tar -xjf ruby-${RBVER}.tar.bz2
cd ruby-${RBVER}
./configure --prefix=/usr/local
make
make install
gem install chef ruby-shadow --no-ri --no-rdoc
mkdir -p /var/chef/cache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment