Thursday, March 5, 2015

Connection error to github.com

If you are getting following error:

screenshot

The error is due to the firewall. The above error can be solved using

git clone http://github.com/

Replace git: with http:, which will pass through firewall.

Monday, February 16, 2015

Run 32 bit compiler on 64 bit Ubuntu Server 14.04

Firstly, install 32 environmrnt;

         sudo apt - get install libc6 : i386

Before installing ia32-libs with the source:

sudo - i
cd / etc / apt / sources . List . d
echo "deb http://archive.ubuntu.com/ubuntu/ main restricted universe multiverse raring"  > ia32 - libs - raring . List
apt - get Update
apt - get install ia32 - libs
rm ia32 - libs - raring . List
apt - get Update
exit


When installing gcc to compile some libraries need:

sudo apt - get install gcc - multilib

Friday, February 13, 2015

Problem in installing Regression Suite

Error:

E: Package 'ia32-libs' has no installation candidate
Error running apt-get at regress/scripts/install_deps.pl line 165.

Solution:

sudo apt-get install libc6:i386
sudo -i
cd /etc/apt/sources.list.d
echo "deb http://old-releases.ubuntu.com/ubuntu/ raring main restricted universe multiverse" >ia32-libs-raring.list
apt-get update
apt-get install ia32-libs
rm /etc/apt/sources.list.d/ia32-libs-raring.list
apt-get update
exit
sudo apt-get install gcc-multilib

Problem on Wireshark Dissector installation

After run make, the make command output is ( in 'openflow/utilities/wireshark_dissectors/openflow' directory):
  
 In file included from /usr/include/glib-2.0/glib/galloca.h:34:0,
                  from /usr/include/glib-2.0/glib.h:32,
                  from packet-openflow.c:19:
 /usr/include/glib-2.0/glib/gtypes.h:34:24: fatal error: glibconfig.h: File or directory ot found
 compilation terminated.
 make: ** [packet-openflow.o] Erro 1


Solution:

openflow at ubuntu:~$ find /usr -name glibconfig.h
/usr/lib/i386-linux-gnu/glib-2.0/include/glibconfig.h

On Ubuntu, adding `pkg-config --cflags glib-2.0` (note backquotes), 
or the output of said command, to CFLAGS, should fix it. Otherwise, just make sure you pass in the correct include directory.


i.e. 

-I/usr/include/glib-2.0
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include

add above 2 lines in Makefile (openflow/utilities/wireshark_dissectors/openflow), under CFLAGS

Installing OpenFlow switch in Ubuntu 14.04 Server



Please follow the instructions given in below link:

http://archive.openflow.org/wk/index.php/Ubuntu_Install 



Thursday, February 12, 2015

Enabling ethernet port in Ubuntu Server 14.04


  • ifconfig
The above command displays the network interface.


  • lspci | grep eth
  • sudo ifconfig eth0 up
The above commands enables the Ethernet port.

Wednesday, February 11, 2015

Install Floodlight on Ubuntu Server 14.04 LTS



  • sudo apt-get install build-essential default-jdk ant python-dev eclipse
  • tar xzf floodlight-source-0.90.tar.gz -C /opt --no-same-owner --no-same-permissions
  • cd /opt/floodlight-0.90/

  1. ant
    
    ...
    dist:
    [jar] Building jar: /opt/floodlight/target/floodlight.jar
    [jar] Building jar: /opt/floodlight/target/floodlight-test.jar
    BUILD SUCCESSFUL
    Total time: 25 seconds
  • java -jar target/floodlight.jar
    19:53:53.434 INFO [n.f.c.m.FloodlightModuleLoader:main] Loading default modules
    19:53:53.827 INFO [n.f.c.i.Controller:main] Controller role set to MASTER
    19:53:53.834 INFO [n.f.c.i.Controller:main] Flush switches on reconnect -- Disabled
    19:54:03.558 INFO [n.f.l.i.LinkDiscoveryManager:main] Setting autoportfast feature to OFF
    19:54:03.779 INFO [o.s.s.i.c.FallbackCCProvider:main] Cluster not yet configured; using fallback local configuration
    19:54:03.779 INFO [o.s.s.i.SyncManager:main] [32767] Updating sync configuration ClusterConfig [allNodes={32767=Node [hostname=localhost, port=6642, nodeId=32767, domainId=32767]}, authScheme=CHALLENGE_RESPONSE, keyStorePath=/etc/floodlight/auth_credentials.jceks, keyStorePassword is unset]
    19:54:03.853 INFO [o.s.s.i.r.RPCService:main] Listening for internal floodlight RPC on localhost/127.0.0.1:6642
    19:54:04.066 INFO [n.f.c.i.Controller:main] Listening for switch connections on 0.0.0.0/0.0.0.0:6633
    19:54:09.047 INFO [n.f.j.JythonServer:debugserver-main] Starting DebugServer on :6655