Tutorial NS 3

Cara Install Aplikasi NS3 di Linux ( distro Ubuntu )

Silahkan di Buka Terminal linux

Ctl + ALt + T kemudian 

Ketik Perintah

sudo -s 

lalu maksukkan pasword administrator

lalu ketikan Perintah 

apt-get update sampai proses 100 %

kalau tidak berhasil silahkan ubah terlebih dahulu sou.list nya dengan cara.

Ketikan 
nano /etc/apt/source.list


Lalu isikan didalam source.list

deb http://kambing.ui.ac.id/ubuntu/ precise-proposed main restricted universe multiverse
deb http://kambing.ui.ac.id/ubuntu/ precise-security main restricted universe multiverse
deb http://kambing.ui.ac.id/ubuntu/ precise-updates main restricted universe multiverse
deb http://kambing.ui.ac.id/ubuntu/ precise main restricted universe multiverse  

 kemudian tekan ctl + X lalu tekan yes ( Y ) untuk menyimpan Konfigurasinya.

lalu lakukan instalasi packet di bawah ini diterminal.


To install prerequisites-

sudo apt-get install gcc g++ python python-dev mercurial bzr gdb valgrind gsl-bin libgsl0-dev libgsl0ldbl flex bison tcpdump sqlite sqlite3 libsqlite3-dev libxml2 libxml2-dev libgtk2.0-0 libgtk2.0-dev uncrustify doxygen graphviz imagemagick texlive texlive-latex-extra texlive-generic-extra texlive-generic-recommended texinfo dia texlive texlive-latex-extra texlive-extra-utils texlive-generic-recommended texi2html python-pygraphviz python-kiwi python-pygoocanvas libgoocanvas-dev python-pygccxml
 


 (now make sure you have not run sudo su to be superuser)
Downloading NS-3(ns-3 version 3.19 not 3.13)
cd 
 
mkdir ns3

cd ns3


  tar xjf ns-allinone-3.19.tar.bz2

cd ns-allinone-3.19/

  ls



Then you can find build.py along with other files.
Then to build the examples in ns-3 run    ./build.py --enable-examples --enable-tests
If the build is successful then it will give output
 "Build finished successfully".(clap for yourself)

Now run the following command to configure with waf(build tool)

./waf -d debug --enable-examples --enable-tests configure

To build with waf(optional)

./waf

To test everything allright

./test.py


Semoga Berhasil.

0 Response to "Tutorial NS 3"

Post a Comment