Install ns2 in ubuntu within few minutes
ns2 install in ubuntu within few minutes
Hi Friendssss.......Now You can Install NS2 in Ubuntu within Two Minutes..No tedious task of Changing environment and all etc.. U just Download the link(.rar file) Provided below.. and Extract the Files and Just Double click on them ..that's it Dudes.. now you have installed Ns2 in Ubuntu in two Minutes.. to Check..it got installed or not just go to terminal and type ns then you will get % Symbol just exit the terminal.. to run a Tcl file go to terminal and type ns example1.tcl.....wow...... now U can see the Nam animator.. Congratsssssssss....
Now Try to run any example tcl file [You can get it http://www.cs.wm.edu/~njschm/research/NS2_Examples.html]
download a file from that link.
Run a tcl file type the following command:
what can u see
wasting time for installing ns2 like this...........
Wasting of time:
As you know that ubuntu 9.10 is having lots of cool features and it's worth giving a try. But installing ns2 (The Network Simuator) through ns-allinone-2.3x package isn't easy on 9.10. While trying to install ns-allinone-2.3x, Firstly otcl doesn't compile with the latest gcc-4.4 (available with ubuntu 9.10). You need to compile it with gcc -4.3. If you get through this then also your problem is not solved, the ns-allinone-2.3x skips installing nam & xgraph as ubuntu 9.10 is not friendly with these packages available in ns-allinone-2.3x package.
I spent lots of time to fix this problem as one of my friend was doing his simulation on ns2 and finally ended up with an interesting lauchpad ppa for installing ns2 on Ubuntu.
Since Ubuntu 9.10 is already being shipped with tcl,otcl,tk... you need not to install these packages, Only ns, nam & xgraph are needed to install.
If you are behind a proxy, make sure you have $http_proxy variable configured in ~/.bashrc. [?]
Following are the simple steps to install ns2 on Ubuntu 9.10 through launchpad ppa.
1> Firstly remove all ns-allinone-2.3x directory (if you put it anywhere to install ns2) and revert back all the path changes you made in ~/.bashrc related to ns2.
2> Now export the Wouter Horré's ppa repository key by typing the following command on terminal and enter:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B3F3334F
3> Now add the following ppa repository to source list [?]
deb http://ppa.launchpad.net/wouterh/ppa/ubuntu karmic main
deb-src http://ppa.launchpad.net/wouterh/ppa/ubuntu karmic main
Reload repository information when prompted by "The information about available software is out-of-date" notification or reload it manually by following command on terminal:
sudo apt-get update4> Now type the following command on terminal to install ns from the launchpad ppa repository:
sudo apt-get install ns nam xgraphThat's all. There is no need to set-up any path, environment variables or make any changes in ~/.bashrc .
Type ns to check:
you should see % at the command prompt (indicating successful installation)
Type exit if you get stuck with the %
Now Try to run any example tcl file [You can get it here]
To run a tcl file type the following command:
Hope this method would work for you. Just comment below whether you were successful in installation or if you face any problem.