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 :P.
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.
Tags: launchpad, linux, network, ns2, Open Source, ppa, simulator, ubuntu
[…] the original post: Install NS2 on Ubuntu 9.10 « Error404NotFound By admin | category: ubuntu install | tags: contains-the-latest, did-some, famous, […]
Hi, Ugh, I liked! So clear and positively. BernieR
Install Network Simulator 2 ( NS2) Within 2 Minutes on ubuntu 9.10Hi 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
Looks alot easier now, 4.5 years have passed when i last touched Ns-2 … things weren’t that simple back then