Skip to content

Instantly share code, notes, and snippets.

@sc0rp10n-py
Created November 20, 2022 00:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sc0rp10n-py/a8bace48d49cebafae5e4f68c9a645ce to your computer and use it in GitHub Desktop.
Save sc0rp10n-py/a8bace48d49cebafae5e4f68c9a645ce to your computer and use it in GitHub Desktop.
Automated script to download, build and install ns3
#!/bin/sh
echo "Script to Download, Build and Install ns3 by nsnam.org"
echo "Downloading script"
wget https://www.nsnam.org/releases/ns-allinone-3.37.tar.bz2
echo "Extracting the archive"
tar -xvf ns-allinone-3.37.tar.bz2
echo "Building and testing ns3"
cd ns-allinone-3.37
cd ns-3.37
./ns3 configure --enable-examples --enable-tests
echo "Building"
./ns3 build
echo "Testing started"
./test.py
echo "Done"
@sc0rp10n-py
Copy link
Author

Put the above in a file install.sh
then do
sudo chmod +x install.sh
then run
./install.sh
and wait for completion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment