-
Notifications
You must be signed in to change notification settings - Fork 1
Building a Ubuntu 12.04 LTS Dev VM
Nicholas Martin edited this page Feb 24, 2014
·
19 revisions
- Install VirtualBox.
- Download the Ubuntu 12.04 LTS (x64) iso.
- Create a Ubuntu (x64) VM with the iso mounted. It can be mounted from storage.
- Boot the VM. It may take a bit to get going.
- Go through the Ubuntu installation. Don't install the updates or 3rd party additions.
- Install the 3rd party guest additions.
- Restart. You should be able to have a decent resolution now.
You want RVM to do this, period. Watercooler currently runs Ruby 2.0.
- Install curl.
sudo apt-get install curl - Make the terminal work as a real login shell. See here.
- Install RVM.
\curl -sSL https://get.rvm.io | bash -s stable - Make RVM a thing.
source ~/.bashrc - Install our specific version of Ruby.
rvm install ruby-2.0.0-p353
You may need to enter your password a few times.
We need postgres in order to install some of our gems later. It MUST be at least version 9.2
- Install postgresql 9.2.
sudo add-apt-repository ppa:pitti/postgresqlthensudo apt-get updatethensudo apt-get install postgresql-9.2 - Login as the postgres user.
sudo su - postgres - Create a user/role for yourself.
createuser. Use your username for the role, and make it a superuser. - Make empty databases for development and test.
createdb watercoolerandcreatedb watercooler-test. - Install the development libraries.
sudo apt-get install libpq-dev - Edit
/etc/postgresql/9.2/main/pg_hba.conf. Change references tomd5totrust. - Reload postgres.
sudo su - postgresthen/usr/lib/postgresql/9.2/bin/pg_ctl reload -D /var/lib/postgresql/9.2/main. - Stop being the postgres user.
logout
- Install git.
sudo apt-get install git - You need to make a new ssh key and add it to your github profile. See Generating SSH Keys
- Install rubygems.
sudo apt-get install rubygems - Install bundler with rubygems. `sudo gem install bundler'
- Install Rails plus all of our other dependencies with bundler.
bundle installas we have quite a few gems at this point, it will take a bit. -
rails sshould not start appropriately, and visitinglocalhost:3000in a browser should show the watercooler homepage.