How to Open Ns2 in Ubuntu

       In fact, opening and installing the Ns2 packages mainly in Ubuntu is considered as the simple process and through this we have enlisted the required steps to open Ns2 in Ubuntu over this article.

Install and Open Ns2 in Ubuntu

        Initially, we have to execute the below mentioned commands in Ubuntu terminal to install the Ns2 packages in Ubuntu.

cd ~/ns-allinone-2.35/

sudo ./install

Installation of Ns2 in Ubuntu

       While completing the installation process, we have to execute the following commands to check and open the Ns2 installation.

cd ~/ns-allinone-2.35/ns-2.35/

sudo ./ns

        When Ns2 is successfully installed in the system, we will acquire the results as the image shown below.

Run Ns2 in Ubuntu

         We have to copy the executable Ns files from ns-allinone-2.35/ns-2.35/ and paste the copied files into the workspace location for execute the ns2 simulation in Ubuntu.

Copying Executable Files Ns Files

To run the main file based on Ns2 in Ubuntu, we have to change the workspace location and implement the commands highlighted below.

sudo ./ns Main.tcl

Finally, we have highlighted the result which is acquired through running Ns2 main file in Ubuntu.

Result of Running Ns2 Main File in Ubuntu

        Don’t worry if you’ve any uncertainties, because our technical experts are always ready to help you.