The following content explains the steps/procedure in installing various softwares related to TeraSim
Installing virtual Box in Windows 10:
Go to google and search for Oracle virtual box version 6.1.18 (other version can be chosen based on our machine) and download it from the website.
You can go through these links mentioned here to download the software and installation procedure.
https://www.oracle.com/in/virtualization/technologies/vm/downloads/virtualbox-downloads.html
(Follow the steps given in this video)
https://www.youtube.com/watch?v=8mns5yqMfZk
Installing UBUNTU in Windows 10:
After installing Virtual Box following the above steps, go to the UBUNTU homepage. https://ubuntu.com/
Now, select the Downloads drop-down tab and then click on the version of UBUNTU (20.4 LTS) and download the ISO file.
Save this ISO in a separate directory -- say SOFTWARES.
Now open the Virtual Box in your system and follow the steps described in the following video link for installing the UBUNTU on the Virtual Box. https://www.youtube.com/watch?v=x5MhydijWmc
(You can watch it from 4:07).
Installing NS3 on UBUNTU:
Open a browser and type the keyword “NS3” and then move to official website of NS3 ( https://www.nsnam.org/ )
Download ns-allinone-3.31.tar.bz2 ( https://www.nsnam.org/releases/ns-all...) file from official ns3 website
Copy this ns-allinone-3.31.tar.bz2 into their favorite drive (say, E-drive). Now extract the files by un-taring in Ubuntu. A folder with the name “ns-allinone-3.31” will be created in that drive.
Now open a terminal using the command ALT + CRTL + T. A terminal opens.
Now issue the command cd ns-allinone-3.31 on the terminal.
Now go to the folder ns-allinone-3.31.
Follow the below commands to install ns3.
$ ./build.py --enable-examples --enable-test
$ cd ns-3.31/
$ ./waf --build-profile=debug --enable-examples --enable-test configure
$ ./waf
Test file helps you to verify that all the components are installed properly (You can skip this test and run next command to run our first program (Proper output == Proper installation))
$ ./test.py
$ ls
Verify by running an example project. Here we run hello-simulator
$ ./waf --run hello-simulator
If you get 'Hello Simulator' as output for the above command, then your installation is successful.
OR
You can follow the below video link for detailed steps.
Integrating Terasim in NS-3:
1. After installing ns-allinone-3.30.1, make sure the folder is in HOME.
2. Then open the terminal and run the following commands-
$ sudo su
- give your password you used during installation of UBUNTU.
- Now reach contrib folder
# cd ns-allinone-3.30.1/ns-3.30.1/contrib # git clone https://github.com/UN-Lab/thz.git
# cd ..
# cd..
# chmod –R 777 *
# ./build.py
3. Now go to ns-allinone-3.30.1/ns-3.30.1/contrib/thz/examples
4. Copy the files nano-adhoc.cc and macro-adhoc.cc and paste them in the scratch
folder present in ns-3.30.1.5.
5. Now run the file as using the following commands
# cd ns-3.30.
# ./waf --run scratch/nano-adhoc
Or
# ./waf --run scratch/macro-adhoc
If you are getting the output on the terminal, then you are successful in TeraSim installation.
Else, refer this link if you face any problems https://apps.nsnam.org/app/thz/
~~~~~~~Good Luck~~~~~~
By. Arikatla Sasi lavanya and Sowmya Kothamasu