CEG's Linux User Group

  • Increase font size
  • Default font size
  • Decrease font size
Home Installation
Installation

Installing NS2 in simple 5 steps

E-mail Print

Step 1: Download the source for NS2 all in one (I used this version ns-allinone-2.34.tar.gz ) from the link http://sourceforge.net/projects/nsnam/files/

Step 2: Extract the tar.gz file downloaded into your home folder by right-clicking the tag.gz file

Step 3: Open terminal (Applications-->Accessories-->Terminal) and change the directory (using cd command) to the extracted folder and execute the following:

sudo apt-get install build-essential autoconf automake libxmu-dev

This will install the dependencies required to compile NS2 from the source.

The following command is used to compile the source.

./install

It will take long time to compile all the required packages for ns to work...

Step 4: Setting Environmental Variables

Type in terminal:

gedit ~/.bashrc

 

and append the following text to the opened file (Please note that the path contains the path in my system, replace "venkat" in path with your username)

# LD_LIBRARY_PATH
OTCL_LIB=/home/venkat/ns-
allinone-2.34/otcl-1.13
NS2_LIB=/home/venkat/ns-allinone-2.34/lib
X11_LIB=/usr/X11R6/lib
USR_LOCAL_LIB=/usr/local/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_LIB:$USR_LOCAL_LIB

# TCL_LIBRARY
TCL_LIB=/home/venkat/ns-
allinone-2.34/tcl8.4.18/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB

# PATH
XGRAPH=/home/venkat/ns-allinone-2.34/bin:/home/venkat/ns-allinone-2.34/tcl8.4.18/unix:/home/venkat/ns-allinone-2.34/tk8.4.18/unix
NS=/home/venkat/ns-allinone-2.34/ns-2.34/
NAM=/home/venkat/ns-allinone-2.34/nam-1.14/
PATH=$PATH:$XGRAPH:$NS:$NAM

Step 5: Now, after editing the file, save and close it. Then in terminal type:

source ~/.bashrc

 

Try "ns" command, it shud go to the "%" prompt then it just means the installation was successful! Enjoy :D

 

Note: These steps have been tested and worked like breeze in Ubuntu and is expected work in all the debian based linux.

Reference:

1.) http://nsnam.isi.edu/nsnam/index.php/Installing_ns2.31_on_Ubuntu7.04
2.) http://alkautsarpens.wordpress.com/2008/02/05/install-ns231-for-ubuntu-gutsy-710/
3.) http://www.isi.edu/nsnam/ns/ns-build.html (Might not be needing this, but just in case)

and append the following text to the opened file (Please note that the path contains the path in my system, replace "venkat" in path with your username)

Last Updated on Thursday, 11 March 2010 23:27
 

GNUSim8085 Installation

E-mail Print
User Rating: / 1
PoorBest 

At one point of time all engineering students would have wanted an 8085 simulator. We would have found one in the internet but we wouldnt have been satisfied. So we would have been waiting to see one OpenSource simulator. Here is one of its kind. I'll introduce it to you, and give you some basic steps of how to go about with it.

You can download the simulator from here.

Official Site:

http://gnusim8085.sourceforge.net/

Last Updated on Tuesday, 02 June 2009 19:10 Read more...
 

Wubi installation

E-mail Print
User Rating: / 5
PoorBest 
Wubi is one way of installing Ubuntu inside your Windows operating system. This is one of the most interesting features of Ubuntu since it allows the entire operating system to be installed into a single folder. Wubi is safe and simple. Wubi Installation will not compromise on any of the features of Ubuntu. So if you are a windows user, then here is yet another reason for you to move to Ubuntu.Smile
Last Updated on Wednesday, 20 May 2009 21:44 Read more...
 
More Articles...
  • «
  •  Start 
  •  Prev 
  •  1 
  •  2 
  •  Next 
  •  End 
  • »


Page 1 of 2