Step 1: (Deleting previous installations)
First of all remove any changes to the following files if you made any for ns 2's path:
i.bashrc
ii.profile
You can edit both of them by the following commands:
Bashrc:
$ sudo gedit ~/.bashrc
Profile:
$ sudo ~/.profile
Note: You must enter your root password whenever terminal asks for it.
Step 2: (Exporting PPA Key)
Export the Wouter Horre's PPA repository key by running the following command ,just run it,even if you don't understand it :)
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B3F3334F
Step 3: (Adding Repositories)
Run the following command to edit your Source List:
$ sudo gedit /etc/apt/sources.list
Scroll down to the end of the file.Now add the following PPA Repositories to the Source list,make sure you remove any spaces :
deb http://ppa.launchpad.net/wouterh/ppa/ubuntu karmic main
deb-src http://ppa.launchpad.net/wouterh/ppa/ubuntu karmic main
After entering the repositories,Save the Source List and run the following command :
$ sudo apt-get update
Step 4: (Final Installation)
Run the following command to install Ns 2
$ sudo apt-get install ns nam xgraph
Step 5: (Test)
Run the following command to check your Ns2 instlallation:
$ ns
this should show a "%" on the next line if your installation was succesful.
Thats all you need to do to install NS 2.You don't need to give the paths manually in bashrc or profile.
0 comments:
Post a Comment