How to configure ONOS

ONOS is a carrier-grade network operating system (OpenFlow controller). Here, I use the version 1.3 and the configurations below, worked for me.

Download ONOS
==============
$ cd ~; mkdir sdn; cd sdn
$ git clone -b onos-1.3 https://gerrit.onosproject.org/onos
 
Installation – Java, Maven, and Karaf
======================================
 
Maven and Karaf
 
$ cd ~/sdn
$ wget http://archive.apache.org/dist/karaf/3.0.3/apache-karaf-3.0.3.tar.gz
$ wget http://archive.apache.org/dist/maven/maven-3/3.3.1/binaries/apache-maven-3.3.1-bin.tar.gz
$ tar -zxvf apache-karaf-3.0.3.tar.gz -C ~/sdn
$ tar -zxvf apache-maven-3.3.1-bin.tar.gz -C ~/sdn
 
Oracle Java 8:
 
$ sudo apt-get install software-properties-common -y
$ sudo add-apt-repository ppa:webupd8team/java -y
$ sudo apt-get update
$ sudo apt-get install oracle-java8-installer oracle-java8-set-default -y
 
Setting Environment Variables (~/.bashrc). The environment variables can be optional (I’m not sure, but I confired such vars in the .bashrc).
 
export JAVA_HOME=/usr/lib/jvm/java-8-oracle
export JRE_HOME=/usr/lib/jvm/java-8-oracle/jre
export KARAF_ROOT=$HOME/sdn/apache-karaf-3.0.3
export M2_HOME=$HOME/sdn/apache-maven-3.3.1
 
 
Development Environment Setup (~/.bashrc)
=========================================
 
$ export ONOS_ROOT=$HOME/sdn/onos
$ source $ONOS_ROOT/tools/dev/bash_profile
 
 
Building and packaging ONOS 
============================
$ cd ~/sdn/onos
$ mvn clean install
 
Selecting IP address (~/.bashrc)
================================
Put your IP address. 
$ export ONOS_IP=A.B.C.D
  
Starting ONOS
============== 
$ ok clean # or onos-karaf
  
GUI: karaf/karaf
==================
 
http://<Your IP address>:8181/onos/ui/login.html

Compilation Problem with VMWare View Open Client

Hi,

For those of you who are trying to install vmware-view-open-client on Gentoo system, you might face the following problem as I’ve got:

/usr/lib/libgmodule-2.0.so.0: could not read symbols: Invalid operation

If you have faced it, maybe you can solve the problem by adding -lgmodule-2.0 flag into LDFLAGS.

# LDFLAGS="-lgmodule-2.0" emerge -av app-emulation/vmware-view-open-client --quiet

This solution worked to me.

Moving from udev to eudev on Gentoo system

Hey, it’s been a while,

This simple post is gonna be about “How to move from udev to eudev?” For those of you who don’t know what udev is, basically speaking, it is a device manager that handle events from userspace apps that try to access devices on /dev. And, eudev is an improvement of udev.

I was using the deprecated version and I was kinda insecure in performing the upgrade on my Gentoo system :). Fortunately, I’ve found a “correct” way to do that. At least, I didn’t have problems. The steps are simple and direct. I’ll share here.

# emerge -Ca udev 
# emerge -1a eudev 
# etc-update 
# emerge @preserved-rebuild

After removing udev to install eudev, just make sure that your computer/notebook will not turn off for some reason, because if it happens, you’re gonna have a big trouble :).

The original post, was found on this thread here.

That’s all for today,
See ya