| 8 | |
| 9 | |
| 10 | == Installing OMF_WEB == |
| 11 | Omf-Web is a git repository which also uses the omf_oml library functions. |
| 12 | In order to run omf-web, the omf_oml has to be installed as well.[[BR]] |
| 13 | Run the following command[[BR]] |
| 14 | |
| 15 | git 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 == |
| 19 | Go back to the home directory where you have installed omf_web.[[BR]] |
| 20 | git clone https://github.com/mytestbed/omf_oml.git [[BR]] |
| 21 | |
| 22 | From any directory or subdirectory to update a git repository:[[BR]] |
| 23 | git update |
| 24 | |
| 25 | |
| 26 | == Standard omf_web examples == |
| 27 | |
| 28 | OMF_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 | |
| 32 | Starts the demo server on port 3100 of localhost machine.[[BR]] |
| 33 | Point your browser to port 3100 on the localhost.[[BR]] |
| 34 | localhost:3100 |
| 35 | |
| 36 | OpenFlow 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 | |
| 40 | Starts the openflow server on port 3100 of localhost machine[[BR]] |
| 41 | Point your browser to port 3100 on the localhost[[BR]] |
| 42 | localhost:3100 |
| 43 | |
| 44 | == Problems with Ruby version == |
| 45 | |
| 46 | Some machines may run Ruby1.8 and some may run Ruby1.9. Some machines have Ruby1.8 and Ruby1.9 running in parallel.[[BR]] |
| 47 | To install Ruby Version Manager(RVM)[[BR]] |
| 48 | https://rvm.io/rvm/install/- Install rvm with Ruby[[BR]] |
| 49 | |
| 50 | === Some other errors === |
| 51 | ''`require': no such file to load -- rubygems''[[BR]] |
| 52 | If you are getting the above error, a gem installation maybe required.[[BR]] |
| 53 | Try the following command:[[BR]] |
| 54 | $sudo apt-get install <name-of-gem> |
| 55 | |
| 56 | |