Archive for December, 2006

Alumni at JNV Veleru

Ya ….

This might be that ….. last known occasion at which all my school friends will be meeting. We have spent that day ….. a bit lazily….

The main things we did down there …. played cricket, addressed our juniours, craked with old friendsand, met all the childhood teachers. Hmm… its a nice experiance.

Here are the … Remembering photos

http://picasaweb.google.com/onlythesandeep/Alumni

Advertisements

3 Comments

Installing NS2 on Ubuntu Dapper LTS

Before proceeding to install NS2 and its packages, please ensure that you have already installed the following packages
gcc,gdb,g++, and make.

if not install them as like bellow

(NOTE: Since there is the differences between the ascii notations in browser and the gedit, some cahrecters like “- -” are represtented as “-” in the browser. So if you have faced any problem you can download the entire script here).

Pre-Install Configuration
Add the sufficient repositories

wget http://onlythesandeep.googlepages.com/sources.list

sudo cp /etc/apt/sources.list /etc/apt/sources.list_old

sudo cp sources.list /etc/apt/sources.list

sudo apt-get update

sudo apt-get install build-essentials

Installing NS-2.30 and other companents

Create a directoy named ns or ns2install

mkdir ns2install
cd ns2install

sudo su

apt-get install tcl8.4 tcl8.4-dev tk8.4 tk8.4-dev stow

ln -s /usr/include/tcl8.4 /usr/include/tk8.4

ln -s /usr/include/tcl8.4/tcl-private/generic/* /usr/include/tcl8.4/

ln -s /usr/lib/tcl8.4/http2.4 /usr/lib/tcl8.4/http2.3

echo “/usr/local/lib” >> /etc/ld.so.conf

Next we need to download all the components required

wget http://jaist.dl.sourceforge.net/sourceforge/otcl-tclcl/otcl-src-1.12.tar.gz
wget http://nchc.dl.sourceforge.net/sourceforge/otcl-tclcl/tclcl-src-1.18.tar.gz
wget http://jaist.dl.sourceforge.net/sourceforge/nsnam/ns-src-2.30.tar.gz
wget http://jaist.dl.sourceforge.net/sourceforge/nsnam/nam-src-1.12.tar.gz

Once all the components are downloaded, Proceed with configuring them

Installing OTcl ………………..

tar -xzvf otcl-1.12.tar.gz
cd otcl-1.12
./configure –prefix=/usr/local/stow/otcl-1.12 –with-tk=/usr
make
mkdir -p /usr/local/stow/otcl-1.12/bin
mkdir -p /usr/local/stow/otcl-1.12/lib
mkdir -p /usr/local/stow/otcl-1.12/include
make install
cd /usr/local/stow/
stow otcl-1.12
ldconfig

Installing TCLCL …………………..

tar -xzvf tclcl-src-1.18.tar.gz
cd tclcl-1.18
./configure –prefix=/usr/local/stow/tclcl-1.18 –with-tk=/usr
make
mkdir -p /usr/local/stow/tclcl-1.18/include
mkdir -p /usr/local/stow/tclcl-1.18/bin
mkdir -p /usr/local/stow/tclcl-1.18/lib
make install
cd /usr/local/stow/
stow tclcl-1.18
ldconfig

Installing NS 2.30 ….. tis would be taking a bit longer time … than all the other components

tar -xzvf ns-src-2.30.tar.gz
cd ns-2.30
./configure –prefix=/usr/local/stow/ns-2.30 –with-tk=/usr
make
make test
mkdir -p /usr/local/stow/ns-2.30/bin
mkdir -p /usr/local/stow/ns-2.30/man/man1
make install
cd /usr/local/stow
stow ns-2.30

Installing NAM and required libraries…

apt-get install libxmu-dev

tar -xzvf nam-src-1.12.tar.gz
cd nam-1.12
./configure –prefix=/usr/local/stow/nam-1.12 –with-tk=/usr
make
mkdir -p /usr/local/stow/nam-1.12/bin
make install
cd /usr/local/stow
stow nam-1.12

apt-get install perl-tk xgraph graphviz

Thats all …. NS2 is done …..you can now start with the tutorials

1. http://www.isi.edu/nsnam/ns/tutorial

2. http://nile.wpi.edu/NS/

3. http://del.icio.us/thesandeep/AdHoc

An Example to test NS-2.30 on your system

download a simple file from here

and open a terminal, type

ns ns-simple.tcl

then the NAM (Network animator) automatically opens up.

(COURTESY: http://wiki.splitbrain.org/ns2 )

Waiting for your coments…..

Later.

17 Comments