DTN Quick Start for Linux
Ubuntu and Debian
The DTN2 source code distribution can automate the creation of deb packages. We just followed the recipe on a couple systems to create these packages.
1. Install the Oasys and DTN2 package appropriate for your architecture. If your package manager doesn't offer to install them automatically just download them and run: sudo dpkg -i *.deb.
Ubuntu 9.04 |
i386 |
liboasys_1.4.0_i386.deb dtn_2.7.0_i386.deb |
Ubuntu 10.04 |
i386 |
liboasys_1.4.0_i386.deb dtn_2.7.0_i386.deb |
Debian Squeeze |
amd64 |
liboasys_1.4.0_amd64.deb dtn_2.7.0_amd64.deb |
2. Put up a useful configuration file and restart the daemon. Writing a config file for DTN2 can be confusing. Here is an example that does flood routing and neighbor discovery on a wireless interface configured to use a link-local (ipv4 auto-config) address.
3. Download and run the PyGTK GUI. This will let you view your link status, bundle inventory, and send and receive bundles.
Notes:: :: Unlike many other systems Ubuntu's network manager won't fall back to IPv4 auto-config if DHCP fails. To enable IPv4 auto-config on an ad-hoc network you have previously discovered on recent Ubuntu systems do the following:
- Right-click on the network icon in the menu bar.
Select Edit Connections....
Click on the Wireless tab.
Select the wireless network you want to work with and click the Edit button.
Click on the IPv4 Settings tab.
In the Method menu select Link-Local Only.
You probably also want to check the Available to all users box too.
:: The debian packages do some extra work that does not happen when you install from source.
- Creating a "dtn" user.
- Placing a config file in /etc/dtn.conf
- Initializing a database in /var/dtn
- Placing a startup script in /etc/init.d/dtn and links for runlevels 2, 3, 4, 5.
Other Linuxes
For other Linux distributions you still have to build from source. For 32-bit systems this us pretty easy. As mentioned above, debian packages do some extra work that does not happen when you install from source. For one thing the dtnd daemon will not automatically run. The config script mentioned in instruction 2, and the GUI in instruction 3 are still applicable, though.