I will post this tutorial here because i didn't test with other distros. If mod want to move it, no problem. We are doing some testing before pushing this to "out of box" settings.
Last news is that in the future MSF will support only newest Ruby version, from 2.1.5. But even now we can use MSF with Ruby 2.1.5 to get better performances.
# Install rbenv
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y gcc make build-essential libcurl4-openssl-dev ruby-dev libssl-dev openssl libreadline-dev
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
# Install ruby
rbenv install 2.1.5
# Then set system Ruby to use 2.1.5
rbenv shell 2.1.5
And you are ready to use MSF with last supported Ruby version.
If you have issue with gems you will need to install them:
sudo gem install bundle EDIT: Don't use this tutorial, read https://forum.backbox.org/announcements/backbox-switched-to-ruby2-1/msg8753/#new. Thank you.
sudo bundle install