Changes between Version 1 and Version 2 of GIMI-GEC16-Tutorials/omf_web


Ignore:
Timestamp:
02/20/13 11:30:35 (11 years ago)
Author:
divyashri.bhat@gmail.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GIMI-GEC16-Tutorials/omf_web

    v1 v2  
    1 = !!!UNDER CONSTRUCTION!!! =
     1= OMF_WEB TUTORIAL =
    22
    33== This page gives some general information on omf_web ==
    44
    5 omf_web is a web-based data visualization service that build on top of
     5omf_web is a web-based data visualization service that is built on top of
    66OMF and OML. The source, documentation, and example visualizations can be obtained
    77[https://github.com/mytestbed/omf_web here].
     8
     9
     10== Installing OMF_WEB ==
     11Omf-Web is a git repository which also uses the omf_oml library functions.
     12In order to run omf-web, the omf_oml has to be installed as well.[[BR]]
     13Run the following command[[BR]]
     14
     15git clone https://github.com/mytestbed/omf_web.git [[BR]]
     16(To install git: Go to https://help.ubuntu.com/community/Git)
     17
     18== Installing OMF_OML ==
     19Go back to the home directory where you have installed omf_web.[[BR]]
     20git clone https://github.com/mytestbed/omf_oml.git [[BR]]
     21
     22From any directory or subdirectory to update a git repository:[[BR]]
     23git update
     24
     25
     26== Standard omf_web examples ==
     27
     28OMF_WEB=where you installed omf_web[[BR]]
     29$cd $OMF_WEB/example[[BR]]
     30$ruby -I ../lib -I ../../omf_oml/lib demo/demo_viz_server.rb --port 3100 start[[BR]]
     31
     32Starts the demo server on port 3100 of localhost machine.[[BR]]
     33Point your browser to port 3100 on the localhost.[[BR]]
     34localhost:3100
     35
     36OpenFlow Demo:
     37$cd $OMF_WEB[[BR]]
     38$ruby -I lib -I ../omf_oml/lib example/openflow-gec15/of_viz_server.rb --local-testing --port 3100 start
     39
     40Starts the openflow server on port 3100 of localhost machine[[BR]]
     41Point your browser to port 3100 on the localhost[[BR]]
     42localhost:3100
     43
     44== Problems with Ruby version ==
     45
     46Some machines may run Ruby1.8 and some may run Ruby1.9. Some machines have Ruby1.8 and Ruby1.9 running in parallel.[[BR]]
     47To install Ruby Version Manager(RVM)[[BR]]
     48https://rvm.io/rvm/install/- Install rvm with Ruby[[BR]]
     49
     50=== Some other errors ===
     51''`require': no such file to load -- rubygems''[[BR]]
     52If you are getting the above error, a gem installation maybe required.[[BR]]
     53Try the following command:[[BR]]
     54$sudo apt-get install <name-of-gem>
     55
     56