List

 

(Ubuntu standalone/virtualbox in Windows 10 => both were successfully installed)

Install required packages: Alt+ctrl+T => open a terminal & run the following commands:

sudo apt-get install gcc g++ python
sudo apt-get install gcc g++ python python-dev
sudo apt-get install mercurial
sudo apt-get install bzr
sudo apt-get install gdb valgrind
sudo apt-get install gsl-bin libgsl0-dev libgsl0ldbl
sudo apt-get install flex bison libfl-dev
sudo apt-get install g++-3.4 gcc-3.4
sudo apt-get install tcpdump
sudo apt-get install sqlite sqlite3 libsqlite3-dev
sudo apt-get install libxml2 libxml2-dev
sudo apt-get install libgtk2.0-0 libgtk2.0-dev
sudo apt-get install vtun lxc
sudo apt-get install uncrustify
sudo apt-get install doxygen graphviz imagemagick sudo apt-get install texlive texlive-extra-utils texlive-latex-extra
sudo apt-get install python-sphinx dia
sudo apt-get install python-pygraphviz python-kiwi python-pygoocanvas libgoocanvas-dev
sudo apt-get install libboost-signals-dev libboost-filesystem-dev
sudo apt-get install openmpi*

Download the NS3 sources using Mercurial or tarball:
1. Using Mercurial
    cd
    mkdir repos
    cd repos
    hg clone http://code.nsnam.org/ns-3-allinone
2. Using tarball
    cd
    mkdir tarballs
    cd tarballs wget
    http://www.nsnam.org/release/ns-allinone-3.13.tar.bz2
    tar xjf ns-allinone-3.13.tar.bz2

Download  necessary stuff by running:

    sudo ./download.py


Build NS3 by running the following commands in the terminal:
    sudo ./build.py

Waf is a python based framework designed for configuring, compiling and installing applications.
Configure NS3 with Waf by running the following commands terminal:
cd ns-3-dev    //  (if you are in ns-3-allinone directory, run this to go to ns-3-dev directory)
sudo ./waf distclean
    sudo ./waf configure    // (or use this > ./waf configure –enable-examples –enable-tests)
    sudo ./waf build

Test if installation was successfull or not:
(minimal test)    sudo ./test.py -c core
(full test)           sudo ./test.py  

Run NS3 program using:

    sudo ./waf – -run filename

Note:
        The program you want to run MUST BE in the /sratch directory.
        Because when waf is run, the programs are built at the same time.
Example:
    Copy myfirst.cc from an example directory to scratch directory and use waf as follows:  
sudo cp examples/tutorial/first.cc scratch/myfirst.cc
            sudo ./waf
            sudo ./waf –run scratch/myfirst

    If everything is done correctly, the following output may be seen in the terminal:  

Waf: Entering directory ‘/home/user/repos/ns-3-allinone/ns-3-dev/build’

Waf: Leaving directory ‘/home/userrepos/ns-3-allinone/ns-3-dev/build’

’build’ finished successfully (1.175s)

Sent 1024 bytes to 10.1.1.2

Received 1024 bytes from 10.1.1.1

Received 1024 bytes from 10.1.1.2

Further reference
—————–
Installing crypto++ (libcryptopp) on Ubuntu

 

Further Reference

 

Create test.cc as follows:

 

  1. #include
  2. #include “crypto++/aes.h”
  3. #include “crypto++/modes.h”
  4. using namespace std;
  5. using namespace CryptoPP;
  6. int main(){
  7. cout << “Hey” << endl;
  8. return 0;
  9. }

 

Compile and run test.cc source file

 

-> g++ -Wall test.cc -o test   (can also use gcc)

-> ./test

—————–

NS3 – how to add crypto++ module

Open the scriptfile wscript

Find in wscript < # append user  >

Paste the following:

conf.env[‘lcryptopp’] = conf.check(mandatory=True, lib=’cryptopp’, libpath=’/usr/include/cryptopp’)
    conf.env.append_value(‘CXXDEFINES’, ‘ENABLE_CRYPTOPP’)
    conf.env.append_value(‘CCDEFINES’, ‘ENABLE_CRYPTOPP’)

Then run the following commands:

sudo ./waf distclean
sudo ./waf configure (with any other options that you normally would add)
sudo ./waf

Further Reference
—————-

 

  Posts

1 2
May 25th, 2017

Install Eric 6 for Python (Windows/Ubuntu)

Installation of Eric 6 from source (Machine running on Windows 10 Pro) : Prerequisite: 1. Install Python 3 (python-3.6.1-amd64) – […]

December 20th, 2016

FORPHEUS is another example of deep learning

FORPHEUS is another example of deep learning! This is developed by the famous Japanese company Omron. Omron is famous for […]

July 17th, 2016

Trends in data science: machine learning and statistics

trend in data science, machine learning and statistics

July 13th, 2016

Deep learning system for thwarting feline intrusion!

An interesting and practical application of deep learning networks system. This system recognizes cats in the garden and triggers the sprinkler […]

July 10th, 2016

Sketch-based online shopping in the future

Forget keywords — this new system lets you search with rudimentary sketches

June 9th, 2016

Another good book on LTE

Yet another good book that I’ve found on LTE. The 2nd edition is recommended – has more elaborated stuff than […]

June 6th, 2016

An excellent book on LTE

This is an excellent book on LTE. Researchers who want to simulate LTE models can be benefited by the easy-to-grasp […]

May 31st, 2016

Wireless data is getting insanely fast.

You thought 4G would solve buffering videos – yet that didn’t happen. But next-gen 5G networks could yield truly supersonic […]

April 28th, 2016

Virtual CCNA Bootcamp!

Free CCNA Workbook will be offering a Virtual CCNA Boot Camp during the second week of July 2016 (July 11 […]

April 14th, 2016

Banking Trojan “Citadel” Returns

http://blog.jpcert.or.jp/2016/02/banking-trojan–27d6.html