1# update packages
2sudo apt-get update
3# install curl if not already there
4sudo apt-get install curl -y
5# install RVM
6\curl -L https://get.rvm.io | bash -s stable
7# load RVM
8source ~/.rvm/scripts/rvm
9# install RVM dependencies
10rvm requirements
11
12# install ruby
13rvm install ruby
14# use default ruby version (latest)
15rvm use ruby --default
16# install rubygems
17rvm rubygems current
18# install Rails
19gem install rails
rvm requirements
needs to be run as root. may require a password. sudo rvm rquiremenst for some unknown reason does not seem to work.sudo apt-get update && sudo apt-get install update-manager-core && sudo do-release-upgrade
x