SlideShare a Scribd company logo
Installation of Ubuntu, ns3 and
compiling first script for
Network Animator (nam)
JAWAD ALI
UNIVERSITY OF ENGINEERING AND TECHNOLOGY PESHAWAR
Portion covered in the presentation
 Vmware .exe and Ubuntu .iso downloading and installation
 Creating new machine for running Ubuntu
 Installation of Ubuntu
 Setting Ubuntu dimension for efficient use
 Installation of prerequisites for ns3 simulator
 Installation of ns3
 Compiling first script using ns3 (wap)
 Installation of network animator (NetAnim)
 Converting example script to NetAnim ready .xml animation
 Running .xml animation via NetAnim
Vmware installation
 Download fresh .exe copy of vmware workstation (likely to be VMWare WS 11)
from
https://my.vmware.com/web/vmware/info/slug/desktop_end_user_computing/vm
ware_workstation/11_0
 Install it on your machine in the regular manner
 Now, download Ubuntu 14.04 LTE or newer version from Ubuntu official site for
Free from http://www.ubuntu.com/download/desktop
Creating New machine for Ubuntu and
Ubuntu installation
 Open vmware workstation and go to File>New
 In the next window, select Ubuntu 14.04 - 32bit operating system and use
the default specifications for the machine except changing the SCSI hard
drive size to >15GB as shown in Fig. 1
 Locate the downloaded .iso of Ubuntu 32bit and proceed with making
machine.
 This above step will take few seconds. You need to power up your new
machine so that in installation begins
Figure 1
Setting Ubuntu dimensions for efficient
use
 After you are finished with the installation
process, you will see a login screen. Logging into
the Administrator account will lead you to your
newly installed Ubuntu desktop as shown in Fig.2.
 Now you need to set resolution of Ubuntu
desktop by right clock on the screen and making
it equal to your parent machine dimensions.
 The go to vmware preferences in the edit menu
and mark the resolution of guest for having full
screen Ubuntu environment on your vmware.
Figure 2
Installation of prerequisites for ns3
simulator
 There are several techniques followed now a days for installation of ns3 and
indeed several versions of ns3.
 We will install ns-3-dev as we are going to run developmental tasks on it
 Follow the instruction manual given on https://www.nsnam.org/wiki/Installation
 The core of ns-3 requires a gcc/g++ installation of 3.4 or greater, and Python 2.4
or greater
Installation of prerequisites for ns3
simulator (cont.)
 All Ubuntu download and install commands are
prefixed by sudo apt-get install <package
name> followed by your Admin password
 Install the following packages one by one using
the above syntax in terminal that can be found
by searching it in the computer programs by
clicking on the Ubuntu icon in the upper left
corner of the Ubuntu desktop screen.
 gcc g++ python
 Mercurial
 Python-dev
 Qt4-dev-tools
 Bzr
 Cmake libc6-dev libc6-dev-i386 g++-multilib
 7z
 Sqlite3 sqlite
 Valgrid gdb
 Flex bison tcpdump
(other packages are listed in
(https://www.nsnam.org/wiki/Installation))
Note: Copy/Paste works in terminal. Change the
copy/paste short cuts from keyboard shortcuts
settings in the Ubuntu as you are familiar with
Ctrl+C and Ctrl+V version of these shortcuts. By
default its Ctrl+Alt+C/V
Solving prerequisite issues using bake
(Cont.)
 Bake is one of the convenient way to install all packages and also installing ns3 into the machine
 Universal technique: if you get in trouble with downloading any package that you need on Ubuntu
and you are not aware of its presence on the Ubuntu github. You should use the following
universal search technique using terminal
apt-cache search <package name>
 This will give u a list of available packages ready to download. For example you want to download
vlc player and you don’t know its store name
 Type: apt-cache search vlc, and it will give you something like shown in Fig. 3.
 All you need to do is type sudo apt-get install vlc-nox and press enter plus password
Figure 3
Using bake (cont.)
 Download mercurial using the technique given in the previous slide if u haven’t
downloaded it till now.
 Go to home directory and then to resource in the terminal view using the below
command
Cd
Cd resource Note: just type: cd res<tab_key>
 Now, type hg clone http://code.nsname.org/bake bake
 Your resources now have Bake copied
Using bake (cont.)
 As you are now in resource directory, cd bake will lead you
to bake directory.
 Here type ./bake.py check and you will see the list of
dependencies that are currently required by ns3 for its
installation as shown in Fig. 4
 An ok to a module means that module is not required. You
can download the missing module by typing its name
prefixed by apt-cache search in the terminal. Then install it
using sudo apt-get install <package_name>
 Remember that you have to append the path of this folder
if you want to check dependencies outside this folder in
the terminal using procedure given on
https://www.nsnam.org/docs/bake/tutorial/html/bake-
tutorial.html
Figure 4
Using bake (cont.)
 Add module that you want to download using bake by typing bake.py configure –
e ns-3.17 or bake.py configure ns-3-dev
 The deploy the module by typing bake.py deploy
 If commands does not work with just there names start bake.py with a dot and a
forward slash like ./bake.py deploy
 The deploy is the convenience two commands bake.py download and bake.py
build as these two are combined in one
 Hurrah! You have configured ns3 in your resource folder
Compiling first script with ns3
Configuration of ns3 with waf tool for script compilation
 Waf is by default copied into your ns-3-dev folder so you don’t need to get it
again from ns3 site.
 Waf acknowledges g++ for its use for source coding
 Type these two strings one by one in your terminal after you cd into ns-3-dev
folder CXXFLAGS=“03” ./waf configure and then CXXX=g++3.4 ./waf configure
 Type ./waf –d optimized configure; ./waf while your are in ns-3-dev folder
 You have successfully built 2200 .cc files and you can find them all in your build
folder from desktop file explorer as well.
Compiling first script with ns3 (cont.)
 The test scripts are present in ~/resource/ns-3-dev/examples/tutorial/
 Copy first.cc in to the ~/resource/ns-3-dev/scratch/ and rename it to myfirst.cc or
whatever you prefer
 Run the following command in terminal while you cd in ns-3-dev ./waf –run
scratch/myfirst (“—” is a double minus and file name is without .cc) or just ./waf --
run myfirst
 Hurrah! Your script is ready and waiting for you in build directory
Converting example script to NetAnim
ready .xml animation
 Before you run ./waf command. Open the myfirst.cc in text editor and add this line
before simulation.run();
AnimationInterface anim (“animation.xml”);
anim SetConstantPosition (nodes.Get(0), 1.0, 2.0); //or any other coordinate
anim SetConstantPosition (nodes.Get(1), 2.0, 3.0);
 This will generate a .xml file ready to be used in network animator and the file will
be in the place where you are now in the terminal
Running .xml animation via NetAnim
 Cd into ~/resource/netanim/
Type:
1- make clean
2- qmake NetAnim.pro
3- make
-4 ./NetAnim (case sensetive)
(First 3 are one time only commands)
 Open animation.xml as shown in Fig. 5 and
run it.
It is a good practice that you copy the shortcut of
animator and place it on desktop
Figure 5
Running .xml animation via NetAnim
Figure 6: Animation

More Related Content

What's hot

Computer Network Architecture.pptx
Computer Network Architecture.pptxComputer Network Architecture.pptx
Computer Network Architecture.pptx
AshokRachapalli1
 
install and manage network protocol .pptx
install and manage network protocol .pptxinstall and manage network protocol .pptx
install and manage network protocol .pptx
TadeseBeyene
 
Omnet++
Omnet++Omnet++
Omnet++
Ahmed Nour
 
Remote Server.pptx
Remote Server.pptxRemote Server.pptx
Remote Server.pptx
dirahayu2
 
Chapter 7 - Computer Networking a top-down Approach 7th
Chapter 7 - Computer Networking a top-down Approach 7thChapter 7 - Computer Networking a top-down Approach 7th
Chapter 7 - Computer Networking a top-down Approach 7th
Andy Juan Sarango Veliz
 
Troubleshooting Your Network.pptx
Troubleshooting Your Network.pptxTroubleshooting Your Network.pptx
Troubleshooting Your Network.pptx
ssusere578aa
 
IT Essentials (Version 7.0) - ITE Chapter 6 Exam Answers
IT Essentials (Version 7.0) - ITE Chapter 6 Exam AnswersIT Essentials (Version 7.0) - ITE Chapter 6 Exam Answers
IT Essentials (Version 7.0) - ITE Chapter 6 Exam Answers
ITExamAnswers.net
 
Peer To Peer Networking
Peer To Peer NetworkingPeer To Peer Networking
Peer To Peer Networking
icanhasfay
 
Telnet & SSH
Telnet & SSHTelnet & SSH
Telnet & SSH
NetProtocol Xpert
 
Redes CISCO. Guía de estudio para la certificación CCNP. Parte 1
Redes CISCO. Guía de estudio para la certificación CCNP. Parte 1Redes CISCO. Guía de estudio para la certificación CCNP. Parte 1
Redes CISCO. Guía de estudio para la certificación CCNP. Parte 1
José Ricardo Tillero Giménez
 
IT Essentials (Version 7.0) - ITE Chapter 13 Exam Answers
IT Essentials (Version 7.0) - ITE Chapter 13 Exam AnswersIT Essentials (Version 7.0) - ITE Chapter 13 Exam Answers
IT Essentials (Version 7.0) - ITE Chapter 13 Exam Answers
ITExamAnswers.net
 
Servidor DNS con IPv6 en Linux
Servidor DNS con IPv6 en LinuxServidor DNS con IPv6 en Linux
Servidor DNS con IPv6 en Linux
Erick Cruz
 
Best fit topology - LO1 part I
Best fit topology - LO1 part IBest fit topology - LO1 part I
Best fit topology - LO1 part I
Abenezer Abiti
 
شبكات الحاسب السلكية واللاسلكية
شبكات الحاسب السلكية واللاسلكيةشبكات الحاسب السلكية واللاسلكية
شبكات الحاسب السلكية واللاسلكية
تقانة
 
Basic networking 07-2012
Basic networking 07-2012Basic networking 07-2012
Basic networking 07-2012
Samuel Dratwa
 
Instalasi linux debian
Instalasi linux debianInstalasi linux debian
Instalasi linux debian
Fatimah Syarifuddin
 
Configuration of ring topology in packet tracer by Tanjilur Rahman
Configuration of ring topology in packet tracer by Tanjilur RahmanConfiguration of ring topology in packet tracer by Tanjilur Rahman
Configuration of ring topology in packet tracer by Tanjilur Rahman
TanjilurRahman6
 
Best fit topology - lo1 part iii
Best fit topology - lo1 part iiiBest fit topology - lo1 part iii
Best fit topology - lo1 part iii
Abenezer Abiti
 

What's hot (20)

Icmp
IcmpIcmp
Icmp
 
Computer Network Architecture.pptx
Computer Network Architecture.pptxComputer Network Architecture.pptx
Computer Network Architecture.pptx
 
install and manage network protocol .pptx
install and manage network protocol .pptxinstall and manage network protocol .pptx
install and manage network protocol .pptx
 
Omnet++
Omnet++Omnet++
Omnet++
 
Remote Server.pptx
Remote Server.pptxRemote Server.pptx
Remote Server.pptx
 
Chapter 7 - Computer Networking a top-down Approach 7th
Chapter 7 - Computer Networking a top-down Approach 7thChapter 7 - Computer Networking a top-down Approach 7th
Chapter 7 - Computer Networking a top-down Approach 7th
 
Troubleshooting Your Network.pptx
Troubleshooting Your Network.pptxTroubleshooting Your Network.pptx
Troubleshooting Your Network.pptx
 
IT Essentials (Version 7.0) - ITE Chapter 6 Exam Answers
IT Essentials (Version 7.0) - ITE Chapter 6 Exam AnswersIT Essentials (Version 7.0) - ITE Chapter 6 Exam Answers
IT Essentials (Version 7.0) - ITE Chapter 6 Exam Answers
 
Peer To Peer Networking
Peer To Peer NetworkingPeer To Peer Networking
Peer To Peer Networking
 
Telnet & SSH
Telnet & SSHTelnet & SSH
Telnet & SSH
 
Redes CISCO. Guía de estudio para la certificación CCNP. Parte 1
Redes CISCO. Guía de estudio para la certificación CCNP. Parte 1Redes CISCO. Guía de estudio para la certificación CCNP. Parte 1
Redes CISCO. Guía de estudio para la certificación CCNP. Parte 1
 
IT Essentials (Version 7.0) - ITE Chapter 13 Exam Answers
IT Essentials (Version 7.0) - ITE Chapter 13 Exam AnswersIT Essentials (Version 7.0) - ITE Chapter 13 Exam Answers
IT Essentials (Version 7.0) - ITE Chapter 13 Exam Answers
 
Telnet
TelnetTelnet
Telnet
 
Servidor DNS con IPv6 en Linux
Servidor DNS con IPv6 en LinuxServidor DNS con IPv6 en Linux
Servidor DNS con IPv6 en Linux
 
Best fit topology - LO1 part I
Best fit topology - LO1 part IBest fit topology - LO1 part I
Best fit topology - LO1 part I
 
شبكات الحاسب السلكية واللاسلكية
شبكات الحاسب السلكية واللاسلكيةشبكات الحاسب السلكية واللاسلكية
شبكات الحاسب السلكية واللاسلكية
 
Basic networking 07-2012
Basic networking 07-2012Basic networking 07-2012
Basic networking 07-2012
 
Instalasi linux debian
Instalasi linux debianInstalasi linux debian
Instalasi linux debian
 
Configuration of ring topology in packet tracer by Tanjilur Rahman
Configuration of ring topology in packet tracer by Tanjilur RahmanConfiguration of ring topology in packet tracer by Tanjilur Rahman
Configuration of ring topology in packet tracer by Tanjilur Rahman
 
Best fit topology - lo1 part iii
Best fit topology - lo1 part iiiBest fit topology - lo1 part iii
Best fit topology - lo1 part iii
 

Similar to Installation of ubuntu, ns3 and compiling first

Nuxeo5 - Continuous Integration
Nuxeo5 - Continuous IntegrationNuxeo5 - Continuous Integration
Nuxeo5 - Continuous IntegrationPASCAL Jean Marie
 
Adding System Call to Kernel
Adding System Call to KernelAdding System Call to Kernel
Adding System Call to Kernel
Muhammad Bilal
 
Linux
LinuxLinux
Installing OpenCV 4 on Ubuntu 18.x
Installing OpenCV 4 on Ubuntu 18.xInstalling OpenCV 4 on Ubuntu 18.x
Installing OpenCV 4 on Ubuntu 18.x
Nader Karimi
 
Steps to install ns3
Steps to install ns3Steps to install ns3
Steps to install ns3
DIGITAL PADM
 
BLCN532 Lab 1Set up your development environmentV2.0.docx
BLCN532 Lab 1Set up your development environmentV2.0.docxBLCN532 Lab 1Set up your development environmentV2.0.docx
BLCN532 Lab 1Set up your development environmentV2.0.docx
moirarandell
 
Part 4 Scripting and Virtualization (due Week 7)Objectives1. .docx
Part 4 Scripting and Virtualization (due Week 7)Objectives1. .docxPart 4 Scripting and Virtualization (due Week 7)Objectives1. .docx
Part 4 Scripting and Virtualization (due Week 7)Objectives1. .docx
karlhennesey
 
Orangescrum In App Chat Add-on User Manual
Orangescrum In App Chat Add-on User ManualOrangescrum In App Chat Add-on User Manual
Orangescrum In App Chat Add-on User Manual
Orangescrum
 
Smiley033
Smiley033Smiley033
Making environment for_infrastructure_as_code
Making environment for_infrastructure_as_codeMaking environment for_infrastructure_as_code
Making environment for_infrastructure_as_code
Soshi Nemoto
 
Install websphere message broker 8 RHEL 6 64 bits
Install websphere message broker 8 RHEL 6 64 bitsInstall websphere message broker 8 RHEL 6 64 bits
Install websphere message broker 8 RHEL 6 64 bits
Manuel Vega
 
Vmware Command Line
Vmware   Command LineVmware   Command Line
Vmware Command Linelifeit
 
Sun raysetup
Sun raysetupSun raysetup
Sun raysetup
Portal Oliveira
 
Getting started with robonova in ubuntu
Getting started with robonova in ubuntuGetting started with robonova in ubuntu
Getting started with robonova in ubuntu
Sandeep Saini
 
Introduction to Docker
Introduction to DockerIntroduction to Docker
Introduction to Docker
皓鈞 張
 
Development platform virtualization using qemu
Development platform virtualization using qemuDevelopment platform virtualization using qemu
Development platform virtualization using qemuPremjith Achemveettil
 
Prizm Installation Guide
Prizm Installation GuidePrizm Installation Guide
Prizm Installation Guide
vjvarenya
 
How to-simulate-network-devices
How to-simulate-network-devicesHow to-simulate-network-devices
How to-simulate-network-devicesSusant Sahani
 

Similar to Installation of ubuntu, ns3 and compiling first (20)

Nuxeo5 - Continuous Integration
Nuxeo5 - Continuous IntegrationNuxeo5 - Continuous Integration
Nuxeo5 - Continuous Integration
 
Adding System Call to Kernel
Adding System Call to KernelAdding System Call to Kernel
Adding System Call to Kernel
 
Linux
LinuxLinux
Linux
 
Installing OpenCV 4 on Ubuntu 18.x
Installing OpenCV 4 on Ubuntu 18.xInstalling OpenCV 4 on Ubuntu 18.x
Installing OpenCV 4 on Ubuntu 18.x
 
Steps to install ns3
Steps to install ns3Steps to install ns3
Steps to install ns3
 
BLCN532 Lab 1Set up your development environmentV2.0.docx
BLCN532 Lab 1Set up your development environmentV2.0.docxBLCN532 Lab 1Set up your development environmentV2.0.docx
BLCN532 Lab 1Set up your development environmentV2.0.docx
 
Part 4 Scripting and Virtualization (due Week 7)Objectives1. .docx
Part 4 Scripting and Virtualization (due Week 7)Objectives1. .docxPart 4 Scripting and Virtualization (due Week 7)Objectives1. .docx
Part 4 Scripting and Virtualization (due Week 7)Objectives1. .docx
 
Orangescrum In App Chat Add-on User Manual
Orangescrum In App Chat Add-on User ManualOrangescrum In App Chat Add-on User Manual
Orangescrum In App Chat Add-on User Manual
 
Smiley033
Smiley033Smiley033
Smiley033
 
Howto Pxeboot
Howto PxebootHowto Pxeboot
Howto Pxeboot
 
Making environment for_infrastructure_as_code
Making environment for_infrastructure_as_codeMaking environment for_infrastructure_as_code
Making environment for_infrastructure_as_code
 
Install websphere message broker 8 RHEL 6 64 bits
Install websphere message broker 8 RHEL 6 64 bitsInstall websphere message broker 8 RHEL 6 64 bits
Install websphere message broker 8 RHEL 6 64 bits
 
Vmware Command Line
Vmware   Command LineVmware   Command Line
Vmware Command Line
 
Sun raysetup
Sun raysetupSun raysetup
Sun raysetup
 
Getting started with robonova in ubuntu
Getting started with robonova in ubuntuGetting started with robonova in ubuntu
Getting started with robonova in ubuntu
 
Introduction to Docker
Introduction to DockerIntroduction to Docker
Introduction to Docker
 
Development platform virtualization using qemu
Development platform virtualization using qemuDevelopment platform virtualization using qemu
Development platform virtualization using qemu
 
html
htmlhtml
html
 
Prizm Installation Guide
Prizm Installation GuidePrizm Installation Guide
Prizm Installation Guide
 
How to-simulate-network-devices
How to-simulate-network-devicesHow to-simulate-network-devices
How to-simulate-network-devices
 

More from Jawad Khan

2.1 input and output in c
2.1 input and output in c2.1 input and output in c
2.1 input and output in c
Jawad Khan
 
2.2 variable arithmetics and logics
2.2 variable arithmetics and logics2.2 variable arithmetics and logics
2.2 variable arithmetics and logics
Jawad Khan
 
1.2 programming fundamentals
1.2 programming fundamentals1.2 programming fundamentals
1.2 programming fundamentals
Jawad Khan
 
1.1 programming fundamentals
1.1 programming fundamentals1.1 programming fundamentals
1.1 programming fundamentals
Jawad Khan
 
7 8. emi - analog instruments and digital instruments
7 8. emi - analog instruments and digital instruments7 8. emi - analog instruments and digital instruments
7 8. emi - analog instruments and digital instruments
Jawad Khan
 
6. emi instrument transformers (with marking)
6. emi   instrument transformers (with marking)6. emi   instrument transformers (with marking)
6. emi instrument transformers (with marking)
Jawad Khan
 
5 emi ac bridges (with marking)
5 emi  ac bridges (with marking)5 emi  ac bridges (with marking)
5 emi ac bridges (with marking)
Jawad Khan
 
4. emi potentiometer and ac bridges
4. emi  potentiometer and ac bridges4. emi  potentiometer and ac bridges
4. emi potentiometer and ac bridges
Jawad Khan
 
3 .emi wattmeter and energy meter
3 .emi   wattmeter and energy meter3 .emi   wattmeter and energy meter
3 .emi wattmeter and energy meter
Jawad Khan
 
2. emi analog electromechanical instruments
2. emi  analog electromechanical instruments2. emi  analog electromechanical instruments
2. emi analog electromechanical instruments
Jawad Khan
 
1. emi concept of measurement system
1. emi   concept of measurement system1. emi   concept of measurement system
1. emi concept of measurement system
Jawad Khan
 
Varibale frequency response lecturer 2 - audio+
Varibale frequency response   lecturer 2 - audio+Varibale frequency response   lecturer 2 - audio+
Varibale frequency response lecturer 2 - audio+
Jawad Khan
 
Variable frequency response lecture 3 - audio
Variable frequency response   lecture 3 - audioVariable frequency response   lecture 3 - audio
Variable frequency response lecture 3 - audio
Jawad Khan
 
Varibale frequency response lecturer 1 - audio
Varibale frequency response   lecturer 1 - audioVaribale frequency response   lecturer 1 - audio
Varibale frequency response lecturer 1 - audio
Jawad Khan
 
Two port network - part 3
Two port network - part 3Two port network - part 3
Two port network - part 3
Jawad Khan
 
Two port network - part 2
Two port network - part 2Two port network - part 2
Two port network - part 2
Jawad Khan
 
Two port network - part 1
Two port network - part 1Two port network - part 1
Two port network - part 1
Jawad Khan
 
4. ideal transformer and load conversion
4. ideal transformer and load conversion4. ideal transformer and load conversion
4. ideal transformer and load conversion
Jawad Khan
 
3. magnetic coupled circuits examples
3. magnetic coupled circuits examples3. magnetic coupled circuits examples
3. magnetic coupled circuits examples
Jawad Khan
 
2. magnetic coupled circuits
2. magnetic coupled circuits2. magnetic coupled circuits
2. magnetic coupled circuits
Jawad Khan
 

More from Jawad Khan (20)

2.1 input and output in c
2.1 input and output in c2.1 input and output in c
2.1 input and output in c
 
2.2 variable arithmetics and logics
2.2 variable arithmetics and logics2.2 variable arithmetics and logics
2.2 variable arithmetics and logics
 
1.2 programming fundamentals
1.2 programming fundamentals1.2 programming fundamentals
1.2 programming fundamentals
 
1.1 programming fundamentals
1.1 programming fundamentals1.1 programming fundamentals
1.1 programming fundamentals
 
7 8. emi - analog instruments and digital instruments
7 8. emi - analog instruments and digital instruments7 8. emi - analog instruments and digital instruments
7 8. emi - analog instruments and digital instruments
 
6. emi instrument transformers (with marking)
6. emi   instrument transformers (with marking)6. emi   instrument transformers (with marking)
6. emi instrument transformers (with marking)
 
5 emi ac bridges (with marking)
5 emi  ac bridges (with marking)5 emi  ac bridges (with marking)
5 emi ac bridges (with marking)
 
4. emi potentiometer and ac bridges
4. emi  potentiometer and ac bridges4. emi  potentiometer and ac bridges
4. emi potentiometer and ac bridges
 
3 .emi wattmeter and energy meter
3 .emi   wattmeter and energy meter3 .emi   wattmeter and energy meter
3 .emi wattmeter and energy meter
 
2. emi analog electromechanical instruments
2. emi  analog electromechanical instruments2. emi  analog electromechanical instruments
2. emi analog electromechanical instruments
 
1. emi concept of measurement system
1. emi   concept of measurement system1. emi   concept of measurement system
1. emi concept of measurement system
 
Varibale frequency response lecturer 2 - audio+
Varibale frequency response   lecturer 2 - audio+Varibale frequency response   lecturer 2 - audio+
Varibale frequency response lecturer 2 - audio+
 
Variable frequency response lecture 3 - audio
Variable frequency response   lecture 3 - audioVariable frequency response   lecture 3 - audio
Variable frequency response lecture 3 - audio
 
Varibale frequency response lecturer 1 - audio
Varibale frequency response   lecturer 1 - audioVaribale frequency response   lecturer 1 - audio
Varibale frequency response lecturer 1 - audio
 
Two port network - part 3
Two port network - part 3Two port network - part 3
Two port network - part 3
 
Two port network - part 2
Two port network - part 2Two port network - part 2
Two port network - part 2
 
Two port network - part 1
Two port network - part 1Two port network - part 1
Two port network - part 1
 
4. ideal transformer and load conversion
4. ideal transformer and load conversion4. ideal transformer and load conversion
4. ideal transformer and load conversion
 
3. magnetic coupled circuits examples
3. magnetic coupled circuits examples3. magnetic coupled circuits examples
3. magnetic coupled circuits examples
 
2. magnetic coupled circuits
2. magnetic coupled circuits2. magnetic coupled circuits
2. magnetic coupled circuits
 

Recently uploaded

PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
Ralf Eggert
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
Neo4j
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
Neo4j
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
James Anderson
 
Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
RinaMondal9
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
Quotidiano Piemontese
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
Matthew Sinclair
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
DianaGray10
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
nkrafacyberclub
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Aggregage
 

Recently uploaded (20)

PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
 
Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
 

Installation of ubuntu, ns3 and compiling first

  • 1. Installation of Ubuntu, ns3 and compiling first script for Network Animator (nam) JAWAD ALI UNIVERSITY OF ENGINEERING AND TECHNOLOGY PESHAWAR
  • 2. Portion covered in the presentation  Vmware .exe and Ubuntu .iso downloading and installation  Creating new machine for running Ubuntu  Installation of Ubuntu  Setting Ubuntu dimension for efficient use  Installation of prerequisites for ns3 simulator  Installation of ns3  Compiling first script using ns3 (wap)  Installation of network animator (NetAnim)  Converting example script to NetAnim ready .xml animation  Running .xml animation via NetAnim
  • 3. Vmware installation  Download fresh .exe copy of vmware workstation (likely to be VMWare WS 11) from https://my.vmware.com/web/vmware/info/slug/desktop_end_user_computing/vm ware_workstation/11_0  Install it on your machine in the regular manner  Now, download Ubuntu 14.04 LTE or newer version from Ubuntu official site for Free from http://www.ubuntu.com/download/desktop
  • 4. Creating New machine for Ubuntu and Ubuntu installation  Open vmware workstation and go to File>New  In the next window, select Ubuntu 14.04 - 32bit operating system and use the default specifications for the machine except changing the SCSI hard drive size to >15GB as shown in Fig. 1  Locate the downloaded .iso of Ubuntu 32bit and proceed with making machine.  This above step will take few seconds. You need to power up your new machine so that in installation begins Figure 1
  • 5. Setting Ubuntu dimensions for efficient use  After you are finished with the installation process, you will see a login screen. Logging into the Administrator account will lead you to your newly installed Ubuntu desktop as shown in Fig.2.  Now you need to set resolution of Ubuntu desktop by right clock on the screen and making it equal to your parent machine dimensions.  The go to vmware preferences in the edit menu and mark the resolution of guest for having full screen Ubuntu environment on your vmware. Figure 2
  • 6. Installation of prerequisites for ns3 simulator  There are several techniques followed now a days for installation of ns3 and indeed several versions of ns3.  We will install ns-3-dev as we are going to run developmental tasks on it  Follow the instruction manual given on https://www.nsnam.org/wiki/Installation  The core of ns-3 requires a gcc/g++ installation of 3.4 or greater, and Python 2.4 or greater
  • 7. Installation of prerequisites for ns3 simulator (cont.)  All Ubuntu download and install commands are prefixed by sudo apt-get install <package name> followed by your Admin password  Install the following packages one by one using the above syntax in terminal that can be found by searching it in the computer programs by clicking on the Ubuntu icon in the upper left corner of the Ubuntu desktop screen.  gcc g++ python  Mercurial  Python-dev  Qt4-dev-tools  Bzr  Cmake libc6-dev libc6-dev-i386 g++-multilib  7z  Sqlite3 sqlite  Valgrid gdb  Flex bison tcpdump (other packages are listed in (https://www.nsnam.org/wiki/Installation)) Note: Copy/Paste works in terminal. Change the copy/paste short cuts from keyboard shortcuts settings in the Ubuntu as you are familiar with Ctrl+C and Ctrl+V version of these shortcuts. By default its Ctrl+Alt+C/V
  • 8. Solving prerequisite issues using bake (Cont.)  Bake is one of the convenient way to install all packages and also installing ns3 into the machine  Universal technique: if you get in trouble with downloading any package that you need on Ubuntu and you are not aware of its presence on the Ubuntu github. You should use the following universal search technique using terminal apt-cache search <package name>  This will give u a list of available packages ready to download. For example you want to download vlc player and you don’t know its store name  Type: apt-cache search vlc, and it will give you something like shown in Fig. 3.  All you need to do is type sudo apt-get install vlc-nox and press enter plus password Figure 3
  • 9. Using bake (cont.)  Download mercurial using the technique given in the previous slide if u haven’t downloaded it till now.  Go to home directory and then to resource in the terminal view using the below command Cd Cd resource Note: just type: cd res<tab_key>  Now, type hg clone http://code.nsname.org/bake bake  Your resources now have Bake copied
  • 10. Using bake (cont.)  As you are now in resource directory, cd bake will lead you to bake directory.  Here type ./bake.py check and you will see the list of dependencies that are currently required by ns3 for its installation as shown in Fig. 4  An ok to a module means that module is not required. You can download the missing module by typing its name prefixed by apt-cache search in the terminal. Then install it using sudo apt-get install <package_name>  Remember that you have to append the path of this folder if you want to check dependencies outside this folder in the terminal using procedure given on https://www.nsnam.org/docs/bake/tutorial/html/bake- tutorial.html Figure 4
  • 11. Using bake (cont.)  Add module that you want to download using bake by typing bake.py configure – e ns-3.17 or bake.py configure ns-3-dev  The deploy the module by typing bake.py deploy  If commands does not work with just there names start bake.py with a dot and a forward slash like ./bake.py deploy  The deploy is the convenience two commands bake.py download and bake.py build as these two are combined in one  Hurrah! You have configured ns3 in your resource folder
  • 12. Compiling first script with ns3 Configuration of ns3 with waf tool for script compilation  Waf is by default copied into your ns-3-dev folder so you don’t need to get it again from ns3 site.  Waf acknowledges g++ for its use for source coding  Type these two strings one by one in your terminal after you cd into ns-3-dev folder CXXFLAGS=“03” ./waf configure and then CXXX=g++3.4 ./waf configure  Type ./waf –d optimized configure; ./waf while your are in ns-3-dev folder  You have successfully built 2200 .cc files and you can find them all in your build folder from desktop file explorer as well.
  • 13. Compiling first script with ns3 (cont.)  The test scripts are present in ~/resource/ns-3-dev/examples/tutorial/  Copy first.cc in to the ~/resource/ns-3-dev/scratch/ and rename it to myfirst.cc or whatever you prefer  Run the following command in terminal while you cd in ns-3-dev ./waf –run scratch/myfirst (“—” is a double minus and file name is without .cc) or just ./waf -- run myfirst  Hurrah! Your script is ready and waiting for you in build directory
  • 14. Converting example script to NetAnim ready .xml animation  Before you run ./waf command. Open the myfirst.cc in text editor and add this line before simulation.run(); AnimationInterface anim (“animation.xml”); anim SetConstantPosition (nodes.Get(0), 1.0, 2.0); //or any other coordinate anim SetConstantPosition (nodes.Get(1), 2.0, 3.0);  This will generate a .xml file ready to be used in network animator and the file will be in the place where you are now in the terminal
  • 15. Running .xml animation via NetAnim  Cd into ~/resource/netanim/ Type: 1- make clean 2- qmake NetAnim.pro 3- make -4 ./NetAnim (case sensetive) (First 3 are one time only commands)  Open animation.xml as shown in Fig. 5 and run it. It is a good practice that you copy the shortcut of animator and place it on desktop Figure 5
  • 16. Running .xml animation via NetAnim Figure 6: Animation