01. Update ubuntu 12.04 source.list
- File Location - /etc/apt/source.list
- vim replace url string - :%s/tw.archive.ubuntu.com/free.nchc.org.tw/g (please don't copy and paste)
- apt-get update
02. installing mininet
- sudo apt-get install mininet/precise-backports
- sudo service openvswitch-controller stop
- sudo update-rc.d openvswitch-controller disable
03. INSTALLING Floodlight
- Prerequisites : sudo apt-get install build-essential default-jdk ant python-dev eclipse git
- Download And Build :
- git clone git://github.com/floodlight/floodlight.git
- cd floodlight
- git checkout fl-last-passed-build
- ant
- chmod -R 755 floodlight/
- Setting Up Eclipse :
- ant eclipse
- Open eclipse and create a new workspace
- File -> Import -> General -> Existing Projects into Workspace. Then click “Next”.
- From “Select root directory” click “Browse”. Select the parent directory where you placed floodlight earlier.
- Check the box for “Floodlight”. No other Projects should be present and none should be selected.
- Click Finish.
- Click Window->Open Perspective->Java
- Click Window->Show View->Navigator
- Click Run->Run Configurations
- Right Click Java Application->New
- For Name use FloodlightLaunch
- For Project use Floodlight
- For Main use net.floodlightcontroller.core.Main
- Click Apply
Ref :
http://vim.wikia.com/wiki/Search_and_replace
http://mininet.org/download/
http://docs.projectfloodlight.org/display/floodlightcontroller/Installation+Guide