Skip to content

Instantly share code, notes, and snippets.

@wlwtvr
Last active August 28, 2017 05:53
Show Gist options
  • Save wlwtvr/9d9435d83114b3856d2cdbdcb58dc046 to your computer and use it in GitHub Desktop.
Save wlwtvr/9d9435d83114b3856d2cdbdcb58dc046 to your computer and use it in GitHub Desktop.
floodlight, mininet
# Update Repository
sudo apt-get update
# Install Java 8
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
# Install Floodlight Dependencies
sudo apt-get install build-essential ant maven python-dev
# Install Git
sudo apt-get install git
# Install Floodlight
git clone git://github.com/floodlight/floodlight.git
cd floodlight
git submodule init
git submodule update
# Build Floodlight
ant
sudo mkdir /var/lib/floodlight
sudo chmod 777 /var/lib/floodlight
# (Test) Run Floodlight (Ctrl+C to Stop)
java -jar target/floodlight.jar
# Install Mininet
cd ~
git clone git://github.com/mininet/mininet
mininet/util/install.sh -a
# (Test) Running Mininet
sudo mn --test pingall
# Clean Up
sudo mn -c
# Clone Maestro Source Code
cd ~
git clone https://github.com/zhengcai/maestro-platform.git
cd maestro-platform
cd Maestro-0.1.0
# Build
ant
# Make sure java is installed
java --version
# Must Output java version
# Run Maestro in Interactive Mode (1)
java -cp build/ sys.Main conf/openflow.conf conf/learningswitch.dag 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment