Monday, January 25, 2010

Installing ns2 (Network Simulator2) on UBUNTU the easy way

OS: UBUNTU 9.10 (Karmic Koala)
Kernel: 2.6.32.020632-generic
Date: Jan 25th, 2010

Hi,
It seems been ages since last post.
The day before yesterday one of my friend called up asking he have difficulties installing ns and nam on Ubuntu 9.10. So I searched a bit and I agreed that general installation process sure looked bit overwhelming.
However here is very easy way actually there is a ppa available for ns packages which needs to be included in repositories:
Export the key for Wouter Horre's ppa
  • sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B3F334F
Next thing is to add ppa repository to repository list (either by editing repository list with any editor or through Synaptic package manager)
Synaptic Package Manager -> Settings -> Repositories -> Other Software and then click on Add and paste following lines
  • deb http://ppa.launchpad.net/wouterh/ppa/ubuntu Karmic main
  • deb-src http://ppa.launchpad.net/wouterh/ppa/ubuntu Karmic main
Reload the package listing through Reload of Synaptic or use
  • sudo apt-get update
Select and install ns, nam and xgraph through package manager or through command line with
  • sudo apt-get install ns nam xgraph
And you are good to go.

This solution was posted at http://ns2onubuntu.blogspot.com/2009/11/easiest-way-to-install-ns2-on-ubuntu.html Last checked Jan 23rd, 2010

1 comment:

  1. Install Network Simulator 2 ( NS2) Within 2 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 ..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................................................................

    ReplyDelete