Clone virtual machine
Boot up, open terminal window and run the following commands in order to configure network. (Updates the MAC address for the virtual network adapter.)
# rm -fr /etc/udev/rules.d/70-persistent-net.rules # shutdown -r now
Packages to install…
sudo apt-get install vim sudo apt-get install build-essential sudo apt-get install curl sudo apt-get install zlib1g-dev sudo apt-get install libssl-dev sudo apt-get install libreadline5-dev sudo apt-get install sqlite3 libsqlite3-dev sqlite3-doc sudo apt-get install libxml2 libxml2-dev libxslt1-dev sudo apt-get install libyaml-dev sudo apt-get install postgresql-8.4 postgresql-client postgresql-client-8.4 postgresql-doc-8.4 sudo apt-get install postgresql-server-dev-8.4 sudo apt-get install pgadmin3 sudo apt-get install libcurl4-openssl-dev sudo apt-get install git-arch git-doc git-csv git-svn git-email git-daemon-run git-gui gitk gitweb sudo apt-get install ssh subversion libgssapi-perl libio-socket-inet6-perl rssh molly-guard sudo apt-get install openssh-blacklist openssh-blacklist-extra socklog-run sudo apt-get install rdist makejail subversion-tools db4.8-util sudo apt-get install autoconf autoconf2.13 autoconf-archive gnu-standards autoconf-doc libtool gettext gettext-doc libtool-doc sudo apt-get install ruby sudo apt-get install ruby1.8 ruby1.8-dev rubygems1.8 ruby1.8-examples ri1.8 rubygems-doc graphviz graphviz-doc sudo apt-get install flex bison bison-doc
Setting up RVM
# System Wide RVM Installation bash < <( curl -L http://bit.ly/rvm-install-system-wide ) # Setup of user defaults edit /etc/adduser.conf - enable the EXTRA_GROUPS stuff and make sure the user is added to the 'rvm' group edit /etc/skel/.bashrc to add the necessary RVM initialization stuff sudo su - rvm install ruby-1.9.2-p0 rvm install ruby-1.9.2-head
(notes on config of Postgres on Ubuntu https://help.ubuntu.com/community/PostgreSQL)
curl ftp://ftp.ruby-lang.org:21//pub/ruby/1.9/ruby-1.9.2-p0.tar.gz > ruby-1.9.2-p0.tar.gz tar xvf ruby-1.9.2-p0.tar.gz cd ruby-1.9.2-p0 ./configure --prefix=/usr/local/ror --enable-shared make make test sudo make install
Create a file called /usr/local/ror/ror_env.sh. Add the following to it:
export PATH=/usr/local/ror/bin:$PATH
Run the command
sudo ln -s /usr/local/ror/ror_env.sh /etc/profile.d/ror_env.sh
Log out / Log in
Open a terminal window
$ which ruby /usr/local/ror/bin/ruby $ which gem /usr/local/ror/bin/gem
sudo su - gem update --system gem install rails -v 3.0.3 gem install sqlite3-ruby gem install pg gem install passenger
passenger-install-nginx-module --prefix=/usr/local/ror --auto-download --auto