Você está na página 1de 10

Installation of NS2

Important:Your User Name


Shouldn't Contain any SPACE

Step 1:
 Put the installation files in a single
folder.
1. NS 2.35-Part1
2. NS 2.35-Part2
3. NS 2.35-Part3

Step 2:
 Now Extract the NS 2.35.part1 only.It
will extract the part2 an part3
automatically.
 Don't Extract the part2 and part3

Step 3:
 After extraction you'll get a folder
named NS 2.35
 Inside this folder you get cygwin setup
, .bashrc etc..
 Now install the setup. Choose install
from local directory

1
 Press Next
 Don't change the default Root Directory
 In Local Package Rpository field browse
to: NS 2.35/nslocal/release

 Click Next
 Click on the Circle
2
 After clicking the circle the default
turn to install

 After this press Next it will install


the necessary packages for NS2
 check create a desktop shortcut and
start menu shortcut
 Then installation finished.:)p
 Now you are halfway done !!!
3
 Now You'll get a screen like this:

 Now create a folder Named Noureddine


in C:\cygwin\home
 Now copy the ns-allinone-2.35-
RC7avecxgraph.rar and Extract there.
You'll get ns-allinone-2.35-RC7
folder.
 Now cpoy the .bashrc file from the
downloaded Extract folder
 Now go to the "C:\cygwin\home\prittam"
here "prittam" indicate my user name in
your case it will be your user name.And
replace(i.e paste) the .bashrc file
that you copied.
 Now open the Cygwin command window
which is on your desktop and type
source .bashrc
 Now type ns "$" change to "%"

4
 Now type ns-version it will
show like:

 Now press exit.

5
 Now type startxwin you'll get a window
like this:

 Now type nam you'll get a screen:

6
 Now go to file and quit the nam window
 Now hold the main tab and drag your
mouse to quit from Cygwin window(the
white window)
 And exit from 'cygwin command' window
(type exit)
 Important:
 go to Taskmanager(Alt+Ctrl+Del) and
goto process tab and search for
XWin.exe

7
 End process
 If you not do this when you press
startxwin in Cygwin command window for
the second time then you get this:

8
 Now open the cygwin command window
startxwin and type ns yourfilename.tcl
then nam file is generated and type nam
yournamfile.nam
 For my case:

9
 Write your code in notepad++ and save with .tcl
extension

10

Você também pode gostar