Step 1:
sudo apt-get install git -y
Step 2:
git clone https://github.com/weirdadithya/installns2.git
Step 3:
cd installns2
Step 4:
chmod +x install.sh
Step 5:
./install.sh
Step 6:
source ~/.bashrc
That's it!
Hopefully you now have NS2 and NAM installed!
Step 7:
cd ~/ns-allinone-2.35
Step 8:
./install
Step 9:
source ~/.bashrc
Step 10:
chmod +x xgraph.sh
Step 11:
./xgraph.sh
Step 12:
source ~/.bashrc