wiki:GEC12VMSetup

Version 12 (modified by Jeanne Ohren, 12 years ago) (diff)

--

GEC 12 VM Setup

This page is for keeping track of the setup of the VM that is going to be used for the GEC 12 tutorials. The VM was create using VirtualBox version 4.1.4. It is running Ubuntu version 10.04 LTS.

Please update this page with information on software you install on the VM: Name and version number of the software, location, etc.. Please put tutorial specific software (e.g. experiment software that is installed onto GENI resources) in the specific directories in the Tutorials directory under the user's home directory (e.g. /home/geni/Tutorials/Omni).

Software Installation Schedule

  1. Niky (Omni) -- COMPLETED
  2. Jason (PrimoGENI) -- COMPLETED
  3. Jae (NetServ) -- COMPLETED
  4. Michael and David (DiCloud) -- by noon ET Thurs 10/20.
  5. Charles (Measurement) -- by eod Fri 10/21

Installing Omni

To install Omni, just follow the instruction at Omni Quick Start. In more detail, install the following packages

sudo apt-get install python-m2crypto python-dateutil \
                     python-pyopenssl libxmlsec1 xmlsec1 \
                     libxmlsec1-openssl libxmlsec1-dev

Download release gcf1.3 from http://www.gpolab.bbn.com/local-sw/ under /usr/local/geni/ and untar it.

tar xvfz gcf-1.3.tar.gz
\rm gcf-1.3.tar.gz
ln -s gcf-1.3/ gcf

Added in the end of the .profile file of the GENI user these lines

# set PATH so it includes geni software if it exists
if [ -d "/home/geni/Tutorials/Omni/gcf/src" ] ; then
    PATH="/home/geni/Tutorials/Omni/gcf/src:$PATH"
    export PYTHONPATH="/home/geni/Tutorials/Omni/gcf/src:$PYTHONPATH" 
fi

Installing NOX

Installing PrimoGENI

We performed the following steps:

1) sudo apt-get install subversion

-- apt-get installed libapr1 libaprutil1 libsvn1 as dependencies

2) sudo apt-get install g++

-- apt installed g++-4.4 libstdc++6-4.4-dev as dependencies

3) downloaded and installed apache ant at /usr/share/apache-ant-1.8.2

-- added symlink /usr/share/ant to /usr/share/apache-ant-1.8.2 -- added symlink to ant in /usr/bin /usr/share/ant/bin/ant

4) Downloaded and installed Java SDK 6.27 from Oracle

-- installed java at /usr/lib/jvm/jdk1.6.0_27 -- added symlinks for java commands to /etc/alternatives (pointing binaries in /usr/lib/jvm/jdk1.6.0_27/bin ) -- added symlinks at /usr/bin for java commands (pointing to /etc/alternatives) -- added 'export JAVA_HOME=/usr/lib/jvm/jdk1.6.0_27/' to /home/geni/.bashrc -- this is how java is normally installed on ubuntu

5) Checked out our software to /home/geni/workspace/primex using svn

6) Downloaded the latest eclipse

-- installed it at /home/geni/bin/eclipse -- installed pde and rcp components -- installed http://robrohan.com/projects/afae plugin from https://www.primessf.net/pub/Public/PrimoGENIProject/afae_plugins.tgz -- set default workspace to /home/geni/workspace -- imported /home/geni/workspace/primex/netIDE as a project

7) Created Slingshot Application at /home/geni/bin/slingshot

8) Added shortcut to Slingshot on the Desktop

Installing NetServ

Dependencies:

# for building netserv
sudo apt-get install \
      build-essential \
      automake \
      openssl \
      libtool \
      libnetfilter-queue-dev \
      ntp \
      libpoco-dev \
      libssl-dev \
      libxerces-c-dev \
      xsdcxx

# OpenJDK not installed because PrimoGENI installed Sun JDK
# sudo apt-get install openjdk-6-jdk

# for tutorial
sudo apt-get install \
      vim-gtk \
      subversion

Install NetServ code:

cd /home/geni/Tutorials/NetServ
svn co svn://saesaksi.cs.columbia.edu/netserv/branches/gec12

sudo ln -s /home/geni/Tutorials/NetServ/gec12 /netserv-root
cd /netserv-root

Build NetServ core

./build-netserv-gec12.sh

Installing DiCloud