This tutorial is about setting up environment for RubyOnRails on Ubuntu 14.04. First of all, update & upgrade your system:
askubuntu.com
If you getting messages like this: perl: warning: Setting locale failed. in your console, then you must configure your locales...