Saturday, February 28, 2015

Ruby on Rails installed on Ubunutu 14.04

Install Ruby on rails for Ubuntu Desktop 14.04 within the virtualbox
 


    2  sudo reboot
    3  apt-get update
    4  exit
    5  sudo bash
    6  sudo apt-get install curl
    8  \curl -L https://get.rvm.io | bash -s stable
    10  sudo bash
   11  gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
   12  \curl -L https://get.rvm.is | bash -s stable

   17  chmod 777 /home/rubyrails/Downloads/
   18  sudo gpg --keyserver /home/rubyrails/Downloads/1.26.10.tar.gz.asc
  
   20  \curl -L https://get.rvm.io | bash -s stable

------------------------> close the terminal window <------------


<-----open a new terminal window ---->

   27  source ~/.rvm/scripts/rvm
   28  exit
   29  command curl -sSL https://rvm.io/mpapis.asc | gpg --import -
   30  exit
   31  sudo bash
   32  source ~/.rvm/scripts/rvm
   33  \curl -sSL https://get.rvm.io | bash -s stable --rails
   34  command curl -sSL https://rvm.io/mpapis.asc | gpg --import -
  

   37  sudo bash
   38  \curl -sSL https://get.rvm.io | bash -s stable --rails
     40  sudo gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
   41  tar xvzf rvm-1.26.10.tgz


   44  cd rvm-1.26.10/

   46  ./install
   47  cd..
   49  cd..
   50  cd ..
   51  echo "source ~/.rvm/scripts/rvm" >> ~/.bashrc
   52  rm -Rf rvm-1.26.10.tgz
   53  source ~/.rvm/scripts/rvm

   54 rvm requirements
   55 <put your password here>
   56 rvm use ruby --default
   57 rvm rubygems current
   58 gem install rails
   59  ruby -v
   60 rails -v
   61 rails new [name of your new app]
   67 >>>>now navigate to the path of your ruby application it is usually in the home directory under the name of the app
  68 rails s
  69 open your web browser
  70 type:  localhost:3000