SlideShare una empresa de Scribd logo
1 de 5
How to Setup OLSR and DTN
                       Help Manual
                    Prepared by: KISHOJ BAJRACHARYA
                                     June 13, 2011


Installing Ubuntu
Before installing Ubuntu, first make sure that the flash drive is bootable. For making a
flash drive a bootable device for Ubuntu, select “Startup Disk Creator” from System →
Administration → Startup Disk Creator.

Install fresh Ubuntu on the machines. Steps for installing Ubuntu are as follow:

  1. Boot from the flash drive and click on ‘Install Ubuntu 10.04 LTS’.

  2. Select ‘English’ and click ‘Forward’.

  3. Select timezone as ‘Thailand Time’ and click ‘Forward’.

  4. Choose a keyboard layout and click ‘Forward’.

  5. Choose either ‘Erase and use the entire disk’ or ‘Specify partitions manually (ad-
     vanced)’ and click ‘Forward’.

  6. Enter the name of the user, login name, password and name of the computer and
     then click ‘Forward’.

  7. Ubuntu is now ready to install. Click on ‘Install’ for installing Ubuntu.

  8. Installation of Ubuntu starts and wait for sometime.

  9. Ubuntu will ask users to restart the computer once the installation finishes installing
     Ubuntu.




                                             1
Installing OLSR on Ubuntu
Before installing OLSR on Ubuntu, install all the packages suggested by Ubuntu updates.
Select “Synaptic Package Manager” from System → Administration → Synaptic Package
Manager.

   • Click on ‘Reload’ followed by ‘Mark All Updates’.

   • Click on ‘Apply’.

   • Reboot the machine and repeat the same process until no more updates available.

   • Search for the following packages and install dependencies for them either using synap-
     tic or using the command ‘sudo apt-get install package name’.

       1. iw
       2. hostapad
       3. flex
       4. bison
       5. autoconf
       6. build-essential
       7. libdb4.7-dev
       8. tcl-dev
       9. tclx8.4-dev
      10. db4.7-util
      11. libxerces-c2-dev
      12. python-dev

   • Download “oasys-1.4.0.tar.gz” and “dtn-2.7.0.tar.gz” from Sourceforge
      http://sourceforge.net/projects/dtn/files/

   • Set root privileges by typing the following command
     “sudo -s -H”

   • Extract the zipped file named as ‘olsrd+smon’ from oasys-1.4.0.tar.gz.

   • Open the terminal and change the directory to the directory where ‘olsrd-0.6.0’ is
     located.

   • Type the command “make build-all”.

   • Type the command “sudo make install all”.
                                        2
• Type the command “less /etc/olsrd.conf” and make ‘wlan1’ as a default interface.

       1. wlan0: internal interface.
       2. wlan1: external interface.

   • Type the command “iwconfig”.

   • Type the command “sudo cp olsrd.conf /etc”

   • Connect the USB for ‘wlan1’ on the machine.

   • Edit to the file named “adhoc start” and set the IP in that file which serves as the
     IP for that machine.

   • Start the OLSR connection for each machine by typing the following command
     “sudo ./adhoc start”.

   • Try to ping other machines on the same wireless network. Type the command “ping
     IP address”.

   • Start the OLSR by using the command “sudo olsrd”.

To browse OLSR information on browser
We can also observe the OLSR information using the browsers like IE, Mozilla, Chrome,
etc. Type the URI http://localhost:8080/ on the browser to get the information of OLSR.

For telnet use the following command
$telnet hostname local address

Using SMON on wireless network
SMON-START
C (C implies change in table)
L: 192.168.1.5 (IP of the local machine)
C (C implies change in table)
L: 192.168.1.5, 192.168.1.9 (Machine with IP 192.168.1.9 joins the wireless network)
If other machines join the wireless network then we can see ‘C’ and to view the IP of the
machine(s), type ‘L’
L: 192.168.1.5, 192.168.1.9, 192.168.1.6
To exit from the SMON, type Ctrl + ]



Installing DTN on Ubuntu
Perform the following operations to install DTN on Ubuntu.
                                           3
• Open the terminal for Ubuntu.
• Unzip the folder dtn+dtsolsr.
• Type the command “make clean” inside the folder “dtn-2.7.0” and “oasys”.
• Type the command “cd ../oasys-1.4.0/”
• Type the command “./build-configure.sh”
• Type the command “./configure –with-python=/usr/bin/py” (Python binding for
  oasys)
• Type the command “make all” followed by “make install”
• Create a symbolic link to oass-1.4.0 in home directory cd $HOME
  In -s oasys-1.4.0 oasys
• Extract DTN, compile and install using following commands
    1. tar xzvf dtn-2.7.0.tar.gz
    2. cd dtn-2.7.0
    3. ./build-configure.sh
    4. ./configure
    5. make all
    6. make install
• Install Python extension
    1. cd $HOME/dtn-2.7.0/applib
    2. make pythonapi (#this line might complain about having ‘nothing to do’ which
       can be safely ignored)
    3. make pythinapi install
• Edit /etc/dtn.conf. At least we need to set the ‘route local eid’ line.
• Initializw the dtnd database and test the dtnd daemon:
    1. dtnd –inti-db
    2. dtnd -l debug
• Provided that dtnd is still running, test the python binding in a separate console.
    1. cd $HOME/dtn-2.7.0/applib/python
    2. python test-swig-api.py
  Python binding like “import dtnapi” can be used in Python using above
                                       4
Experiments with DTN
DTN operations commands

  1. dtnsend → Used for sending data.

  2. dtnrecv → Used to detect the received data.

  3. dincp → Used to copy.

  4. dtncpd → Demon to wait for received file.

Example

   • dtncp olsrd.conf destination dtn for example dtncp olsrd.conf dtn://kishoj.dtn

   • dtncp . (Send the file to the current location)

   • dtnsend

To send the Message “Hello World” from “dtn://kishoj.dtn” to another dtn “dtn://interlab.dtn”,
type the following commands for source and receivers.

At the source (Here, source dtn is dtn://kishoj.dtn)

   • “dtnsend -s dtn://kishoj.dtn/test -d”

   • “dtn://interlab.dtn/test” -t m -p “Hello World”.

At the destination (Here, destination dtn is dtn://interlab.dtn)

   • “dtnrecv dtn://interlab.dtn/test”

   • “Hello World” → message from the source dtn “dtn://kishoj.dtn/test”.

Pinging the DTN
For pinging the dtn, following command is used
dtnping dtn://kishoj.dtn/ping




                                             5

Más contenido relacionado

La actualidad más candente

Exploiting Llinux Environment
Exploiting Llinux EnvironmentExploiting Llinux Environment
Exploiting Llinux EnvironmentEnrico Scapin
 
Open-E DSS V6 MPIO with ESXi 4.x
Open-E DSS V6 MPIO with ESXi 4.xOpen-E DSS V6 MPIO with ESXi 4.x
Open-E DSS V6 MPIO with ESXi 4.xopen-e
 
Recipe of a linux Live CD (archived)
Recipe of a linux Live CD (archived)Recipe of a linux Live CD (archived)
Recipe of a linux Live CD (archived)Bud Siddhisena
 
Code4vn - Linux day - linux boot process
Code4vn - Linux day - linux boot processCode4vn - Linux day - linux boot process
Code4vn - Linux day - linux boot processCường Nguyễn
 
Instructions
InstructionsInstructions
Instructionsds5ysm
 
Rhel 7/CentOS 7 boot process
Rhel 7/CentOS 7 boot processRhel 7/CentOS 7 boot process
Rhel 7/CentOS 7 boot processNilesh Vaghela
 
How to make multi-boot USB drive for LiveCD iso images on EFI/UEFI and BIOS
 How to make multi-boot USB drive for LiveCD iso images on EFI/UEFI and BIOS How to make multi-boot USB drive for LiveCD iso images on EFI/UEFI and BIOS
How to make multi-boot USB drive for LiveCD iso images on EFI/UEFI and BIOSKentaro Hatori
 
Linux booting procedure
Linux booting procedureLinux booting procedure
Linux booting procedureDhaval Kaneria
 
Linux Overload
Linux OverloadLinux Overload
Linux OverloadAllan Caeg
 
Rancher OS - A simplified Linux distribution built from containers, for conta...
Rancher OS - A simplified Linux distribution built from containers, for conta...Rancher OS - A simplified Linux distribution built from containers, for conta...
Rancher OS - A simplified Linux distribution built from containers, for conta...Pier Alberto Pierini
 
Linux booting Process
Linux booting ProcessLinux booting Process
Linux booting ProcessGaurav Sharma
 

La actualidad más candente (20)

Slider2
Slider2Slider2
Slider2
 
Unix environment
Unix environmentUnix environment
Unix environment
 
Exploiting Llinux Environment
Exploiting Llinux EnvironmentExploiting Llinux Environment
Exploiting Llinux Environment
 
Unix environment [autosaved]
Unix environment [autosaved]Unix environment [autosaved]
Unix environment [autosaved]
 
Open-E DSS V6 MPIO with ESXi 4.x
Open-E DSS V6 MPIO with ESXi 4.xOpen-E DSS V6 MPIO with ESXi 4.x
Open-E DSS V6 MPIO with ESXi 4.x
 
lec5+.docx
lec5+.docxlec5+.docx
lec5+.docx
 
Virtual boxen
Virtual boxenVirtual boxen
Virtual boxen
 
System administration
System administrationSystem administration
System administration
 
Ubuntu
UbuntuUbuntu
Ubuntu
 
Recipe of a linux Live CD (archived)
Recipe of a linux Live CD (archived)Recipe of a linux Live CD (archived)
Recipe of a linux Live CD (archived)
 
Code4vn - Linux day - linux boot process
Code4vn - Linux day - linux boot processCode4vn - Linux day - linux boot process
Code4vn - Linux day - linux boot process
 
Instructions
InstructionsInstructions
Instructions
 
Rhel 7/CentOS 7 boot process
Rhel 7/CentOS 7 boot processRhel 7/CentOS 7 boot process
Rhel 7/CentOS 7 boot process
 
How to make multi-boot USB drive for LiveCD iso images on EFI/UEFI and BIOS
 How to make multi-boot USB drive for LiveCD iso images on EFI/UEFI and BIOS How to make multi-boot USB drive for LiveCD iso images on EFI/UEFI and BIOS
How to make multi-boot USB drive for LiveCD iso images on EFI/UEFI and BIOS
 
Tai lieu 1
Tai lieu 1Tai lieu 1
Tai lieu 1
 
Linux booting procedure
Linux booting procedureLinux booting procedure
Linux booting procedure
 
Linux Overload
Linux OverloadLinux Overload
Linux Overload
 
Rancher OS - A simplified Linux distribution built from containers, for conta...
Rancher OS - A simplified Linux distribution built from containers, for conta...Rancher OS - A simplified Linux distribution built from containers, for conta...
Rancher OS - A simplified Linux distribution built from containers, for conta...
 
Self2013
Self2013Self2013
Self2013
 
Linux booting Process
Linux booting ProcessLinux booting Process
Linux booting Process
 

Similar a OLSR setup

Large Scale Deployment of Linux
Large Scale Deployment of LinuxLarge Scale Deployment of Linux
Large Scale Deployment of LinuxKshitij Agarwal
 
Domino9on centos6
Domino9on centos6Domino9on centos6
Domino9on centos6a8us
 
installation of VM and ubuntu.pptx
installation of VM and ubuntu.pptxinstallation of VM and ubuntu.pptx
installation of VM and ubuntu.pptxArchanaD30
 
TinyOS installation Guide And Manual
TinyOS installation Guide And ManualTinyOS installation Guide And Manual
TinyOS installation Guide And ManualAnkit Singh
 
Linux conf-admin
Linux conf-adminLinux conf-admin
Linux conf-adminbadamisri
 
Linux conf-admin
Linux conf-adminLinux conf-admin
Linux conf-adminbadamisri
 
Containers with systemd-nspawn
Containers with systemd-nspawnContainers with systemd-nspawn
Containers with systemd-nspawnGábor Nyers
 
Installing odoo v8 from github
Installing odoo v8 from githubInstalling odoo v8 from github
Installing odoo v8 from githubAntony Gitomeh
 
OSMC 2009 | Windows monitoring - Going where no man has gone before... by Mic...
OSMC 2009 | Windows monitoring - Going where no man has gone before... by Mic...OSMC 2009 | Windows monitoring - Going where no man has gone before... by Mic...
OSMC 2009 | Windows monitoring - Going where no man has gone before... by Mic...NETWAYS
 
Installing & Configuring IBM Domino 9 on CentOS
Installing & Configuring IBM Domino 9 on CentOSInstalling & Configuring IBM Domino 9 on CentOS
Installing & Configuring IBM Domino 9 on CentOSDevin Olson
 

Similar a OLSR setup (20)

Large Scale Deployment of Linux
Large Scale Deployment of LinuxLarge Scale Deployment of Linux
Large Scale Deployment of Linux
 
Linux
Linux Linux
Linux
 
Domino9on centos6
Domino9on centos6Domino9on centos6
Domino9on centos6
 
Sun raysetup
Sun raysetupSun raysetup
Sun raysetup
 
installation of VM and ubuntu.pptx
installation of VM and ubuntu.pptxinstallation of VM and ubuntu.pptx
installation of VM and ubuntu.pptx
 
TinyOS installation Guide And Manual
TinyOS installation Guide And ManualTinyOS installation Guide And Manual
TinyOS installation Guide And Manual
 
Linux
LinuxLinux
Linux
 
Linux conf-admin
Linux conf-adminLinux conf-admin
Linux conf-admin
 
Linux Conf Admin
Linux Conf AdminLinux Conf Admin
Linux Conf Admin
 
Linux conf-admin
Linux conf-adminLinux conf-admin
Linux conf-admin
 
snortinstallguide
snortinstallguidesnortinstallguide
snortinstallguide
 
Linux
LinuxLinux
Linux
 
Containers with systemd-nspawn
Containers with systemd-nspawnContainers with systemd-nspawn
Containers with systemd-nspawn
 
Hadoop on osx
Hadoop on osxHadoop on osx
Hadoop on osx
 
Presentación1
Presentación1Presentación1
Presentación1
 
Linux
Linux Linux
Linux
 
Installing odoo v8 from github
Installing odoo v8 from githubInstalling odoo v8 from github
Installing odoo v8 from github
 
OSMC 2009 | Windows monitoring - Going where no man has gone before... by Mic...
OSMC 2009 | Windows monitoring - Going where no man has gone before... by Mic...OSMC 2009 | Windows monitoring - Going where no man has gone before... by Mic...
OSMC 2009 | Windows monitoring - Going where no man has gone before... by Mic...
 
Unix Administration 2
Unix Administration 2Unix Administration 2
Unix Administration 2
 
Installing & Configuring IBM Domino 9 on CentOS
Installing & Configuring IBM Domino 9 on CentOSInstalling & Configuring IBM Domino 9 on CentOS
Installing & Configuring IBM Domino 9 on CentOS
 

Más de Kishoj Bajracharya

Más de Kishoj Bajracharya (8)

Tutorial for RDF Graphs
Tutorial for RDF GraphsTutorial for RDF Graphs
Tutorial for RDF Graphs
 
Comparison of Agent-based platforms
Comparison of Agent-based platformsComparison of Agent-based platforms
Comparison of Agent-based platforms
 
IPv6 examples
IPv6 examplesIPv6 examples
IPv6 examples
 
Network Coding
Network CodingNetwork Coding
Network Coding
 
Galios: Python Programming
Galios: Python Programming Galios: Python Programming
Galios: Python Programming
 
DBpedia mobile
DBpedia mobileDBpedia mobile
DBpedia mobile
 
Manual orange
Manual orangeManual orange
Manual orange
 
Random Number Generation
Random Number GenerationRandom Number Generation
Random Number Generation
 

Último

Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfErwinPantujan2
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxMaryGraceBautista27
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptxiammrhaywood
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 

Último (20)

Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptx
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 

OLSR setup

  • 1. How to Setup OLSR and DTN Help Manual Prepared by: KISHOJ BAJRACHARYA June 13, 2011 Installing Ubuntu Before installing Ubuntu, first make sure that the flash drive is bootable. For making a flash drive a bootable device for Ubuntu, select “Startup Disk Creator” from System → Administration → Startup Disk Creator. Install fresh Ubuntu on the machines. Steps for installing Ubuntu are as follow: 1. Boot from the flash drive and click on ‘Install Ubuntu 10.04 LTS’. 2. Select ‘English’ and click ‘Forward’. 3. Select timezone as ‘Thailand Time’ and click ‘Forward’. 4. Choose a keyboard layout and click ‘Forward’. 5. Choose either ‘Erase and use the entire disk’ or ‘Specify partitions manually (ad- vanced)’ and click ‘Forward’. 6. Enter the name of the user, login name, password and name of the computer and then click ‘Forward’. 7. Ubuntu is now ready to install. Click on ‘Install’ for installing Ubuntu. 8. Installation of Ubuntu starts and wait for sometime. 9. Ubuntu will ask users to restart the computer once the installation finishes installing Ubuntu. 1
  • 2. Installing OLSR on Ubuntu Before installing OLSR on Ubuntu, install all the packages suggested by Ubuntu updates. Select “Synaptic Package Manager” from System → Administration → Synaptic Package Manager. • Click on ‘Reload’ followed by ‘Mark All Updates’. • Click on ‘Apply’. • Reboot the machine and repeat the same process until no more updates available. • Search for the following packages and install dependencies for them either using synap- tic or using the command ‘sudo apt-get install package name’. 1. iw 2. hostapad 3. flex 4. bison 5. autoconf 6. build-essential 7. libdb4.7-dev 8. tcl-dev 9. tclx8.4-dev 10. db4.7-util 11. libxerces-c2-dev 12. python-dev • Download “oasys-1.4.0.tar.gz” and “dtn-2.7.0.tar.gz” from Sourceforge http://sourceforge.net/projects/dtn/files/ • Set root privileges by typing the following command “sudo -s -H” • Extract the zipped file named as ‘olsrd+smon’ from oasys-1.4.0.tar.gz. • Open the terminal and change the directory to the directory where ‘olsrd-0.6.0’ is located. • Type the command “make build-all”. • Type the command “sudo make install all”. 2
  • 3. • Type the command “less /etc/olsrd.conf” and make ‘wlan1’ as a default interface. 1. wlan0: internal interface. 2. wlan1: external interface. • Type the command “iwconfig”. • Type the command “sudo cp olsrd.conf /etc” • Connect the USB for ‘wlan1’ on the machine. • Edit to the file named “adhoc start” and set the IP in that file which serves as the IP for that machine. • Start the OLSR connection for each machine by typing the following command “sudo ./adhoc start”. • Try to ping other machines on the same wireless network. Type the command “ping IP address”. • Start the OLSR by using the command “sudo olsrd”. To browse OLSR information on browser We can also observe the OLSR information using the browsers like IE, Mozilla, Chrome, etc. Type the URI http://localhost:8080/ on the browser to get the information of OLSR. For telnet use the following command $telnet hostname local address Using SMON on wireless network SMON-START C (C implies change in table) L: 192.168.1.5 (IP of the local machine) C (C implies change in table) L: 192.168.1.5, 192.168.1.9 (Machine with IP 192.168.1.9 joins the wireless network) If other machines join the wireless network then we can see ‘C’ and to view the IP of the machine(s), type ‘L’ L: 192.168.1.5, 192.168.1.9, 192.168.1.6 To exit from the SMON, type Ctrl + ] Installing DTN on Ubuntu Perform the following operations to install DTN on Ubuntu. 3
  • 4. • Open the terminal for Ubuntu. • Unzip the folder dtn+dtsolsr. • Type the command “make clean” inside the folder “dtn-2.7.0” and “oasys”. • Type the command “cd ../oasys-1.4.0/” • Type the command “./build-configure.sh” • Type the command “./configure –with-python=/usr/bin/py” (Python binding for oasys) • Type the command “make all” followed by “make install” • Create a symbolic link to oass-1.4.0 in home directory cd $HOME In -s oasys-1.4.0 oasys • Extract DTN, compile and install using following commands 1. tar xzvf dtn-2.7.0.tar.gz 2. cd dtn-2.7.0 3. ./build-configure.sh 4. ./configure 5. make all 6. make install • Install Python extension 1. cd $HOME/dtn-2.7.0/applib 2. make pythonapi (#this line might complain about having ‘nothing to do’ which can be safely ignored) 3. make pythinapi install • Edit /etc/dtn.conf. At least we need to set the ‘route local eid’ line. • Initializw the dtnd database and test the dtnd daemon: 1. dtnd –inti-db 2. dtnd -l debug • Provided that dtnd is still running, test the python binding in a separate console. 1. cd $HOME/dtn-2.7.0/applib/python 2. python test-swig-api.py Python binding like “import dtnapi” can be used in Python using above 4
  • 5. Experiments with DTN DTN operations commands 1. dtnsend → Used for sending data. 2. dtnrecv → Used to detect the received data. 3. dincp → Used to copy. 4. dtncpd → Demon to wait for received file. Example • dtncp olsrd.conf destination dtn for example dtncp olsrd.conf dtn://kishoj.dtn • dtncp . (Send the file to the current location) • dtnsend To send the Message “Hello World” from “dtn://kishoj.dtn” to another dtn “dtn://interlab.dtn”, type the following commands for source and receivers. At the source (Here, source dtn is dtn://kishoj.dtn) • “dtnsend -s dtn://kishoj.dtn/test -d” • “dtn://interlab.dtn/test” -t m -p “Hello World”. At the destination (Here, destination dtn is dtn://interlab.dtn) • “dtnrecv dtn://interlab.dtn/test” • “Hello World” → message from the source dtn “dtn://kishoj.dtn/test”. Pinging the DTN For pinging the dtn, following command is used dtnping dtn://kishoj.dtn/ping 5