Just another trying-to-be-a-geek's blog
Install NS2 on Ubuntu 9.10
Yesterday a friend asked me about how to install the famous network simulator NS2 on ubuntu. I did some digging this morning and came up with this.
Wouter Horré’s hosts a PPA on launchpad which contains the latest builds of ns2 from him. You can add this PPA by creating a file /etc/apt/sources.list.d/ns2.ppa.list and add the following to the file:
deb http://ppa.launchpad.net/wouterh/ppa/ubuntu karmic main
deb-src http://ppa.launchpad.net/wouterh/ppa/ubuntu karmic main
Now before you do an update, you must also fetch and add the PPA GPG Key,
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B3F3334F
Done? Yes, just do an update and then install ns2 like:
sudo apt-get update
sudo apt-get install ns nam xgraph
Installed, now to check run ns. This should leave you with a % prompt, if it does, you are in for treat, run exit and start bragging that you installed NS2 on ubuntu
.
This is a lot easier than any previous methods which involved editing ~/.bashrc and setting up paths, then compiling and building tool. Good thing is as its a repository, ns2 will automatically get updated with rest of softwares if you do sudo apt-get upgrade.
| Print article | This entry was posted by shoaibi on December 23, 2009 at 9:19 am, and is filed under Open Source. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
about 2 years ago
Hi, Ugh, I liked! So clear and positively.
BernieR
about 2 years ago
Install Network Simulator 2 ( NS2) Within 2 Minutes on ubuntu 9.10
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 ..thats 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….
Download Link..
http://suneelshinde.blogspot.com
about 1 year ago
Looks alot easier now, 4.5 years have passed when i last touched Ns-2 … things weren’t that simple back then