AMAZON

Monday, July 16, 2012

How to install Ns-2 doc linux/windows


-->

NS2 Installation Procedure (For Root User)

  • Check for the complete LINUX installation (with all the options enabled during installation) in the system.
  • During installation of NS2 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)
  • Copy the ns-21 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 as below when you each time press ENTER key which indicates that the installation is complete .
      • Root/ns-allinone-2.34>./validate
Root/ns-allinone-2.34>ns
%
%
%exit
  • Now you can run the programs in a new terminal.

What ns-21 consists of??
It consist of path
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



NS2 Installation Procedure (For other User)
Open terminal window

Type $ su & give root password & follow the above mention procedure
For copying ns21.sh file use following command
cp<space><source path><space> <destination path(/etc/profile.d)>
How to create(Enable) a Root User
  • Step1
$ su (give password)
Now it becomes Root
cd <space>/etc/pam.d
Vim gdm
Remove # symbol from 3rd line
Vim gdm- password
Remove! Symbol from 3rd line end

How to install Ns-2 in Windows





 



No comments:

Post a Comment