SlideShare ist ein Scribd-Unternehmen logo
1 von 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

Weitere ähnliche Inhalte

Was ist angesagt?

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
 

Was ist angesagt? (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
 

Ähnlich wie 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
 

Ähnlich wie 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
 

Mehr von Kishoj Bajracharya

Mehr von 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
 

Kürzlich hochgeladen

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxannathomasp01
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17Celine George
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxPooja Bhuva
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 

Kürzlich hochgeladen (20)

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 

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