After a number of reinstallations of subject I thought about fixing somewhere procedures of this routine.

Download VirtualBox, install it, download ubuntu and add it to the VirtualBox's list of virtual machines. Install, все дела, and let's configure it all. Firstly set the screen resolution:


sudo passwd root

relogin as root

VirtualBox menu: Devices / Install Guest Additions

file manager: find mounted disc VBoxAdditions and run

relogin as user and run in console:

  1. sudo apt-get install build-essential
  2. sudo apt-get install curl
  3. sudo apt-get install zlib1g-dev libreadline-dev libssl-dev libxml2-dev
  4. \curl -L | bash

reopen console and install rvm:

  5. rvm requirements
  6. rvm install 2.0.0-p195

go to console options / check login shell

install rubygems and rails in console:

  7. rvm use  2.0.0-p195 --default
  8. sudo apt-get install nodejs
  9. sudo apt-get install rubygems
  10. gem install rails --version=4.0.0.rc1
  11. sudo apt-get install postgresql
  12. sudo apt-get install postgresql-9.1 postgresql-server-dev-9.1 postgresql-contrib-9.1
  13. sudo apt-get install graphicsmagick-libmagick-dev-compat
  14. sudo apt-get install libmagickwand-dev
  15. sudo apt-get install openjdk-7-jre

download and install rubymine: run in rubymine folder /bin

install git in console:

  16. sudo apt-get install git
  17. ssh-keygen -t rsa -C ""
  18. sudo apt-get install xclip
  19. xclip -sel clip < ~/.ssh/

key copied to clipboard, add it to github

optionaly: if you have a existing project with postgres

run rubymine, install drivers for postgres

configure postgresql in console:

  1. sudo -u postgres psql
  postgres=# create user your_profile with password '12345678';
  postgres=# create database your_project_development owner your_profile;

note the semicolon at the end of lines

\q to exit psql

update your project

  2. bundle install
  3. bundle exec rake db:migrate


#ruby #rails #rvm #rubymine #ubuntu #virtualbox #postgres