Installing RVC on Ubuntu 12.04

I was trying to install the Ruby vSphere Console (RVC) today on my Ubuntu machine running
Precise Pangolin. I used William Lam’s post as a baseline for the installation – but since there are several differences with Ubuntu – I will post the steps here.

  1. Do not install Ruby from apt-get it will not work
  2. If you have already installed it the remove it
    sudo apt-get --purge remove ruby-rvm
  3. sudo curl -L | bash -s stable
  4. sudo source /etc/profile
  5. sudo bash -s stable < <(curl -s )
  6. source /etc/profile.d/
  7. gedit ~/.bashrc and add the following line to the end [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
  8. source ~/.bashrc
  9. rvm install 1.9.3-p327 --with-openssl-dir=$rvm_path/usr
  10. gem install rvc
  11. gem install ffi

Steps were taken from a mixture of these three sources

I now have RVC working and am looking forward to using it more.