VTUFORUM
Install NS2 on Windows 7 using Cygwin - Printable Version

+- VTUFORUM (http://www.vtuforum.com)
+-- Forum: Post Grad and Research (/Forum-Post-Grad-and-Research)
+--- Forum: Network Simulation (/Forum-Network-Simulation)
+--- Thread: Install NS2 on Windows 7 using Cygwin (/Thread-Install-NS2-on-Windows-7-using-Cygwin)



Install NS2 on Windows 7 using Cygwin - Sandeep - 04-19-2014 10:20 PM

Cygwin is a a well known tool which allow us to use the unix like terminal on windows...

Here we first Install the Cygwin and then install NS2 on it Big Grin

Ns2 Cygwin all come in one package download it from here, its in parts

http://www.mediafire.com/download/3sag9cr8xxe6e66/NS+2.35.part1.rar
http://www.mediafire.com/download/xrbrlfqn4g466rl/NS+2.35.part2.rar
http://www.mediafire.com/download/5hbda8ei65r18sp/NS+2.35.part3.rar

So lets start with the process:

1. Unzip the downloaded .rar files

2. The unzipped files contain NS v2.35, .bashrc and Cygwin

3. Install Cygwin, its a simple installation...select from disk, then select ns2.35/nslocal/release for the source option, the change default to install when it asks for the package list..so completes the installation

4. Now copy upzip NS v2.35...which give out ns-allinone-2.35 folder out

5. Create a folder in C:/cygwin/home called Noureddine...copy the unzipped folder to this folder...

6. There is another folder is home directory with the usename..in my system it is c:/cygwin/home/sandeep
in that copy .bashrc taken from the source folder...so the .bashrc gets replaced

7. Now start Cygwin...run a command called
Quote:$source .bashrc

mean news paths gets updated

8. So done with the installation, now type ns, the $ prompt should change to %

type %ns-ver

It should show the version of your NS2, i.e 2.35

Then you can try the examples of ns-allinone-2.35/ns-2.35/tcl/ex

and analyse the result using the analysis tool..which we will see very soon...Till then keep practicing Big Grin Big Grin


RE: Install NS2 on Windows 7 using Cygwin - srikanthchikka - 11-11-2014 11:57 AM

(04-19-2014 10:20 PM)Sandeep Wrote:  Is there a procedure to use the files downloaded by Cygwin(i.e., updates) , to be used to install for UBUNTU based installation, because the machine is offline.



RE: Install NS2 on Windows 7 using Cygwin - srija - 11-12-2014 03:34 PM

(04-19-2014 10:20 PM)Sandeep Wrote:  I followed all your steps. but '$ source.bashrc' this code is showing error ( command not found). Help me please.



RE: Install NS2 on Windows 7 using Cygwin - Sandeep - 11-12-2014 06:18 PM

leave a space between...source and .bashrc Smile


RE: Install NS2 on Windows 7 using Cygwin - hr9113 - 12-10-2014 05:50 PM

[attachment=188]did as the video but got an error when i typed 'ns' after entering 'source .bashrc' which was
'bash: ns: command not found'


RE: Install NS2 on Windows 7 using Cygwin - emfarda13641364 - 03-05-2016 01:25 AM

[img]D:\1.jpg[/img]
what?


RE: Install NS2 on Windows 7 using Cygwin - Sandeep - 03-05-2016 05:39 PM

Please check the video again carefully, as I remember executing ns will always take to the root user mode(%) which is not happening in you case. There is some problem in your procedure for sure, I tried again unable to produce any error like you are getting. Suggest you to try one more time


RE: Install NS2 on Windows 7 using Cygwin - Subha_research - 06-13-2016 12:57 AM

Thank you so much for the procedure for installing ns2 using cygwin . it really works
regards
Subhashini


RE: Install NS2 on Windows 7 using Cygwin - hpsetupenvy - 12-11-2017 04:19 PM

In this tutorial i will explain how to install Ns-2,a network simulator
that has been developed for Linux environment in Windows.



STEP-1[Installing Cygwin]




1| Download the cygwin binary from cygwin website or here is a direct link to the cygwin setup



2| Perform the Installation of Cygwin as follows :



a | Double click on the setup file setup.exe

b| Let the Installer fire up.








[Image: install1.jpg]

i




c| Click next.Select the source of the Installation. I choose
internet as i didnt have any of the files
required on the harddisk.I recommend even you do the same unless you
have any idea what

thae heck is happening.





[Image: install2.jpg]
ii


d| Next choose the path for installation.Just keep it default and press next as in pic ii












[Image: install3.jpg]
iii






e| The files that we download from internet will be saved on the hard disk for later ,so give



path for these files .Any path will do or just keep it default as i have done as in iv




[Image: install4.jpg]
iv




f | Select your internet connection.Usually it is direct connection unless you are using it from

office or University (v)






[Image: install5.jpg]

v




g| Select a download link .Just select any one from the list and press Next(vi)




[Image: install6.jpg]
vi








h | In the next screen you have to select the packages that needs to be installed.

Initially all of them are set to default( figure vii ).We will install all the packages.

Beside ALL you can see default written click on it to change it as shown in figure viii.

After that click next.




[Image: install7.jpg]
vii





[Image: install8.jpg]
viii








i | The download and installation begins as in figure ix.Once done it will give an option to create an

an icon of cygwin terminal on desktop.Create it.




[Image: install9.jpg]
viii






j| We are done with installing cygwin. Next we move on to ns-2 installation











STEP-2 [Installing ns-2]





a | Click on the cygwin terminal icon on the Desktop to bring up the terminal.



b | Download ns-allinone.



c | Move in to the cygwin installation folder.Open home folder.Create a newfolder with your

username[preferably].



d| Extract the downloaded ns-allinone into c:/cygwin/usr/local .



e| From the cygwin terminal cd into the ns folder[c:/cygwin/usr/local/ns-allinone x.x]



f | Execute the command ./install.This will install ns-2.



g | After installation try out ./validate.



123 HP Envy 4507 Setup