Install a series of NS3 packages with the following script:
#!/bin/sh
sudo apt-get install gcc g++ python python-pygccxml
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 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 python-gnome2 python-gnomedesktop python-rsvg
sudo apt-get install Ipython
sudo apt-get install Qt4-dev-tools
sudo apt-get install gnuplot
sudo apt-get install wireshark*
Configuring NS3 in Eclipse
Help-> "Install New software ..." Enter the website, select all.
Http://download.eclipse.org/tools/cdt/releases/kepler
After importing the project, right-click the project, set,
In the builder settings tag for C + + Builder:
Remove the check in front of "Use default Build Command" and "Generate Makefile automatically"
Set build command: ${workspace_loc:/ns-3.19/waf}
Set up build directory: ${workspace_loc:/ns-3.19//build}
In the behaviour tag for C + + Builder:
Select All Workbench Build behavior check boxes are selected, the first 2 values are empty, and the last one is clean.
Setting up Eclipse executor using external tools
Run->external Tools->externel Tools configurations, right-select New,name in program can be set to ns3-waf-3.19, set ${in location WORKSPACE_LOC:/NS-3.19/WAF}, set to--run "${string_prompt}" in Settings ${workspace_loc:/ns-3.19},argument in working directory.
Finally click the run selector and you can choose Scratch-simulator to perform the simulation.