Our research experts have enlisted the step by step process of installing network simulator 2 in Ubuntu through this article. Let’s start this article with the initial step to install the Ns2.
Download Ns2 on Ubuntu
Initially, we have to download the network simulator 2 packets in Ubuntu using the below mentioned URL.
https://sourceforge.net/projects/nsnam/files/latest/download
Then, we have to copy and download the packages into the Ubuntu home folder/ns-allinone-2.35. The execution of below mentioned commands in Ubuntu terminal is used to extract the contents of packages and all the files are extracted into the folder namely, ns-allinone-2.35/ns-2.35.
tar -xvzf ns-src-2.35.tar.gz
Install Basic Required Packages
Following that, we have to install the required packages for the installation of Ns2 using the following commands.
sudo apt-get install build-essential autoconf automake libxmu-dev
sudo apt-get install gcc-4.4
Install Ns2 on Ubuntu
To install the Ns2 packages in Ubuntu, we have to execute the below mentioned commands in Ubuntu terminal.
cd ns-allinone-2.35
./install
To conclude this article, we hope that we offered the required information to install network simulator and you can reach to aid more processes based on Ns2.