Skip to content

Install and run RapidFTR on Linux inside a virtual machine

pedrosans edited this page Nov 9, 2011 · 10 revisions

1 - Install VirtualBox

Step by step guide at http://jmmwrite.files.wordpress.com/2008/11/virtual_box_install.pdf

2 - Install the development environment

Step by step guide at https://github.com/jorgej/RapidFTR/wiki/Install-and-run-RapidFTR-on-Linux

2.1 Commands used to install the environment in a Ubuntu

sudo apt-get install git-all
sudo apt-get install openjdk-6-jdk 
sudo apt-get install imagemagick
sudo apt-get install couchdb

To install RVM see: http://beginrescueend.com/rvm/install/

sudo apt-get install curl
bash  <  <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )
apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion
sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion

Add rvm to classpath

first option: echo [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile
second option: export PATH=$PATH:~/.rvm/bin/

Ruby setup

rvm install 1.8.7
rvm use 1.8.7 --default

Clone the RapidFTR project on https://github.com/jorgej/RapidFTR

Run the intall and run the application

cd RapidFTR/
bundle install
bundle exec rake gems:install
bundle exec rake couchdb:create
bundle exec rake couchdb:create RAILS_ENV=cucumber
bundle exec rake db:seed
bundle exec rake app:run

3 - Port forward

To be able to access the application running in the host machine a port forwarding is needed.

3.1 - In VirtualBox windows: Settings > Network > Port Forwarding > Add button

3.2 - Set up the new rule to forward you guest machine IP in port 3000 to the guest IP in the port 3000

4 - RapidFTR/OKD Bridge

I order to work on a RapidFTR/ODK bridge is is needed to have a ODK collect installed in some Android device or in a AVD.

4.1 Android SKD instalation

Step by step at http://developer.android.com/sdk/installing.html

The only important note is for Ubuntu users using a 64 bits distribution. It's needed the ia32-libs package using apt-get

apt-get install ia32-libs

4.2 Starting a AVD

Run the Android SDK Manager

cd android-sdk-linux/tools
sh sudo android

Install the Android 2.1 (API7) SDK Platfor and Google APIs by Google Inc.

  • Select Tools > Manage AVDs > New

Configure it as:

target: Google APIs (Google Inc.) - API Level 7

SD Card size: 100 mb

Clone this wiki locally