0% found this document useful (0 votes)
283 views

Ns2 Installation On Windows

This document provides step-by-step instructions for installing NS2, a network simulator, on Windows. It involves downloading and installing Cygwin to get a Linux-like environment, then extracting and running the NS2 installation files. Key steps include selecting packages to install during Cygwin setup, copying the NS2 file to the Cygwin directory, running installation commands in the terminal, and configuring the profile to launch the X-Windows server for graphics.

Uploaded by

gphonsa
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
283 views

Ns2 Installation On Windows

This document provides step-by-step instructions for installing NS2, a network simulator, on Windows. It involves downloading and installing Cygwin to get a Linux-like environment, then extracting and running the NS2 installation files. Key steps include selecting packages to install during Cygwin setup, copying the NS2 file to the Cygwin directory, running installation commands in the terminal, and configuring the profile to launch the X-Windows server for graphics.

Uploaded by

gphonsa
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9

c  

 
 
I had heard from my friends that installing ns2 on windows is like a nightmare.Actually it is not
so difficult to install NS2 on windows.In this article I will show you how to install NS2.34 (latest
version as for today)on Windows Vista SP1.You can install it on Windows XP also.

Follow the below steps for an easy installation of NS2 on Windows


Download the Cygwin setup from a 

Double Click the setup file.Click on the Next button and select ³Install from Internet´.Then
Click Next.

(  : If you had already downloaded all the packages, select ³Install from Local Directory ´
and specify the Local Package Directory path )

Select the root Install directory as ³C\cygwin´. Don¶t Change it.Then Click Next
Select the local package directory.Don¶t change the default path
Select your network connection and click Next

Select any one server from the list and click Next
Click on the circled arrow between ³All´ and ³Install´ to change the ³Default´ value to ³Install´.
By doing we are going to install all packages in the Cygwin repository.ClickNext
It will take time n space to install all these packages.After the installation, Click Next
It will create a Cygwin shortcut on your Desktop.

Now copy the NS2.34 setup from a 

Copy the ns-allinone-withpath-2.34.tbz file to ³C:\cygwin\usr\local´

Now click on the Cygwin shortcut on the Desktop.You will get a terminal window as in
linux.Type the following command

cd /usr/local/
tar -jxvf ns-allinone-withpath-2.34.tbz
cd ns-allinone-2.34

Now install the NS2 package

./install
Press ³y´ whenever asked to proceed
After installing, copy the ns2.sh file to ³- - 
´ folder

cp /usr/local/ns-allinone-2.34/paulson/.set/ns2.sh /etc/profile.d/.

Then type the following command in the terminal

source /etc/profile.d/ns2.sh

Close the terminal

Click the Start menu >All programs>Cygwin-X>Xwin-Server.It will open an xwinterminal.You


can also drag n drop this to Desktop.Alternatively you can start the Xwin server from
³C:\cygwin\bin\startxwin.bat´ or from ³C:\CYGWIN\usr\X11R6\bin\startxwin.bat´.

Press unblock button when asked by the Windows Firewall.


Now u can execute your ns2 programs from this terminal.

nsfilename.tcl

 : For any installation problems, read the comments for this blog.

You might also like