Saturday 21 July 2012

Simple NS-2 Installation Procedure to Fedora-13

* Check for the complete LINUX installation (with all the options enabled during installation) in the system.  
* During installation of NS-2 its better to get into the ROOT login. 
* Copy the given ns-allinone-2.34.tar.gz file in the root directory. 
* Extract the files in the same folder using extract option or the command in the terminal as
                       root>tar zxvf  ns-allinone-2.34.tar.gz
      * The files will be extracted in the newly created folder as ns-allinone-2.34.
      * Now go to the terminal and get into the folder ns-allinone-2.34 and do the following
Root> cd ns-allinone-2.34
Root/ns-allinone-2.34 >./install 
* This command will run for 10-15 minutes. If it is a successful installation you will be getting IMPORTANT NOTICE notes (detailing about the paths to set)
*  For path setting, create new ns2.34.sh file, then paste the lines given below into ns2.34.sh file &save it.
 PATH=$PATH:$HOME/bin:/root/ns-allinone-2.34/bin:/root/ns-allinone-2.34/tcl8.4.18/unix:/root/ns-allinone-2.34/tk8.4.18/unix
export LD_LIBRARY_PATH=/root/ns-allinone-2.34/otcl-1.13:/root/ns-allinone-2.34/lib
export TCL_LIBRARY=/root/ns-allinone-2.34/tcl8.4.18/library

* Copy the ns-2.34.sh file given into the following folder
                             Computer/file system/etc/profile.d 
*    Now close all the terminal and open  a new terminal and get into the folder root/ns-allinone-2.34 and give ns command and you will be getting each time as below after pressing ENTER key.which indicates that the installation is complete .
   Root/ns-allinone-2.34>ns
  %
%exit
* Now you can run the programs in a new terminal.

i hope it may help full for others working in this tool

Regards,
C.Manikandan