Friday, November 29, 2013

Ruby on Rails on Ubuntu 12.04 virtual machine

CAUTION: A WORK IN PROGRESS!!!!

0. set up virtual machine using VMWare Player 6 and ubuntu 12.04 LTS Desktop iso
0a. 100 GB disk space
0b. 4 GB RAM
0c. bridged network
0d. point to iso file

1. follow the "step-by-step" instructions at:
http://blog.sudobits.com/2012/05/02/how-to-install-ruby-on-rails-in-ubuntu-12-04-lts/

sudo apt-get update
sudo apt-get install git
sudo apt-get install curl
curl -L get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
rvm requirements
sudo apt-add-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
rvm install 1.9.3
rvm use 1.9.3 --default
gem install rails
mkdir rails-proj; cd rails-proj
rails new testrrr_app
cd testrrr_app
rails server
NOW USE A BROWSER TO GO TO localhost:3000


2. pick up at section 1.2.2 in Hartl with the command:
rvm use 1.9.3@rails3tutorial2ndEd --create --default

3. gem update --system 1.8.24

4. create and edit .gemrc file as per "listing 1.1" and "listing 1.2"

5. gem install rails -v 3.2.14

No comments:

Post a Comment