Get the windows subsystem (ubuntu)
sudo apt update && sudo apt dist-upgrade && sudo apt-get autoremove && sudo apt-get clean
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev software-properties-common libffi-dev libreadline-dev zlib1g-dev
(Updated version can be found here https://rvm.io/)
gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
curl -sSL https://get.rvm.io | bash -s stable --rails
source /etc/profile.d/rvm.sh
add users to rvm group
example: usermod -a -G rvm beyar