Wednesday, December 29, 2010

Run NS2 Example in Ubuntu 10.10 easier

One of the problem in installing NS-2 in ubuntu is that it will be installed in other folder automatically.

Problem

There are two problem occured with this kind of installation.

  1. The path are too long. In my case the path for the ns2 examples are located at : usr/share/doc/ns2/examples/. It means that we need to do more clicking to reach that folder. Or if we are going to run through console, we need to cd to longer sentence.
  2. The simulation script cannot be executed due to read/write and access properties of the installed folder. You need to logged in in administrator mode to access the file. 
Solution

Luckily the solution is quite simple. Killing two birds with one stone. What I did is really simple, I copied the examples folder and paste it at the Desktop. It solved both problem! :)

1 comment: