installing ruby rvm
Step One— Install Ruby with RVM
sudo apt-get update
Once that's done, we can start installing RVM, Ruby Version Manager. This is a great program that lets you use several versions of Ruby on one server.
If you do not have curl on your system, you can start by installing it: