Archive for December, 2006
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
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).
Add the sufficient repositories
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
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
Once all the components are downloaded, Proceed with configuring them
Installing OTcl ………………..
tar -xzvf otcl-1.12.tar.gz
./configure –prefix=/usr/local/stow/otcl-1.12 –with-tk=/usr
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
Installing TCLCL …………………..
tar -xzvf tclcl-src-1.18.tar.gz
./configure –prefix=/usr/local/stow/tclcl-1.18 –with-tk=/usr
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
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
./configure –prefix=/usr/local/stow/ns-2.30 –with-tk=/usr
mkdir -p /usr/local/stow/ns-2.30/bin
mkdir -p /usr/local/stow/ns-2.30/man/man1
Installing NAM and required libraries…
apt-get install libxmu-dev
tar -xzvf nam-src-1.12.tar.gz
./configure –prefix=/usr/local/stow/nam-1.12 –with-tk=/usr
mkdir -p /usr/local/stow/nam-1.12/bin
apt-get install perl-tk xgraph graphviz
Thats all …. NS2 is done …..you can now start with the tutorials
An Example to test NS-2.30 on your system
download a simple file from here
and open a terminal, type
then the NAM (Network animator) automatically opens up.
(COURTESY: http://wiki.splitbrain.org/ns2 )
Waiting for your coments…..