Skip to content

Instantly share code, notes, and snippets.

@bugcloud
Created August 16, 2012 07:35
Show Gist options
  • Save bugcloud/3368108 to your computer and use it in GitHub Desktop.
Save bugcloud/3368108 to your computer and use it in GitHub Desktop.
Setup chef with rvm to a clean Ubuntu Server
#!/bin/sh
sudo aptitude install build-essential zlib1g-dev libreadline6-dev libopenssl-ruby git curl wget
curl -L https://get.rvm.io | bash -s stable
echo 'source ~/.rvm/scripts/rvm' >> ~/.bashrc
export PATH=$PATH:$HOME/.rvm/bin
rvm pkg install openssl
rvm install 1.9.3 --with-openssl-dir=$rvm_path/usr
rvm use 1.9.3
echo 'Unless you could run rvm use command, you should run these commands by yourself'
echo 'rvm use 1.9.3 --default'
echo 'gem install chef --no-rdoc --no-ri'
gem install chef --no-rdoc --no-ri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment