
It will take around 15 minutes so have patience.Īssuming everything went well in the previous step and you have Open up a terminal and move to the directory where you haveĮxtracted the package, in our case its '/home/user_name/Documents' and install NS using the following commands (image 4):Ĭd /home/ user_name/Documents/ns-allinone-2.35 NOTE: If you don't make the above stated change then you will see an error while installing the NS (image 3). Once you have opened the file move to the line 137Īnd replace the erase (image 1) with this->erase ( image 2) and save the file.

To make some changes in the ls.h file else it will show an error while You can do itĮither from the terminal or from the file explorer (Nautilus). Extract the downloaded NS package either using the right click context menu "Extract here" or using the following commands from a terminal:Īfter extracting the "ns-allinone-2.35" folder, open up the file Sudo apt-get install perl xgraph libxt-dev libx11-dev libxmu-devġ. Sudo apt-get install tcl8.5-dev tk8.5-dev Sudo apt-get install build-essential autoconf automake Before installing the NS we have to install some essential packages required by the NS.

Your Ubuntu Software Center and in Software Updater).ģ. Now we have to update the Ubuntu with its latest components. First of all, download Network Simulator (NS-2.35) from here.I assume you have downloaded it into your '/home/ user_name/Documents' directory.Ģ. If youįound yourself here then I assume you already know about the NS, so I Network Simulator (NS)-2.35 in Ubuntu 13.10 OR Ubuntu 14.04.
