1. Install Ruby
  2. Install DevKit (
  3. gem install capistrano --no-ri --no-rdoc

Deployment Machine

  1. Update the software sources list
  2. And upgrade the dated applications:
    aptitude    update
    aptitude -y upgrade
  3. Download and install the build-essential package:
    aptitude install -y build-essential
  4. And some additional, commonly used tools:
    aptitude install -y cvs subversion git-core libyaml-dev mercurial
  5. Get the Ruby Version Manager Before installing RVM, you need to import the RVM GPG Key:
    gpg --keyserver hkp:// --recv-keys 
  6. Then install RVM to manage our Rubies:
     curl -sSL | bash -s stable 
  7. And to create a system environment with RVM: source /etc/profile.d/
  8. Download and install Ruby using RVM:
    rvm reload
    rvm install 2.2.1 ( or latest version)