Install NS2 ( Network Simulator ) on Ubuntu
Following are the simple steps to install ns2 on Ubuntu 9+ 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:
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 update
4> Now type the following command on terminal to install ns from the launchpad ppa repository:
sudo apt-get install ns nam xgraphThat's all.
Type ns to check:
you should see % at the command prompt (indicating successful installation)
Type exit if you get stuck with the %
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]
Comments
Post a Comment