opentechinstitute/nm-dispatcher-olsrd — pull request #3 by technosopher (2013-11-04 21:14:46+00:00)
Title: Decompose

This pull request overhauls nm-dispatcher-olsrd to leverage the new commotionc-based core "library", which now contains all essential functions needed to establish a commotion network. This pull request therefore depends on https://github.com/opentechinstitute/commotion-linux-py/commit/f37ed6651e213d062a77932508cd65b1f29c1003). For convenience and completeness, this pull request should be tested in tandem with https://github.com/opentechinstitute/commotion-mesh-applet/commit/85aaf2ea874c9f4e2bb0e66f37cc61217a781b7e (although nm-dispatcher-olsrd can theoretically function independently of the mesh-applet)

Closes issue #1 .

To test this pull request, all of the following steps must be done for our two supported platforms (Ubuntu 12.04 or later, and Debian testing):
- Install the commotion-linux-py, olsrd, python-networkmanager, and commotion-wpasupplicant debian packages from downloads.commotionwireless.net/linux with dpkg -i
- On debian, recompile and reinstall the wpasupplicant package with CONFIG_IBSS_RSN=y set in /debian/config/linux. (To do this, apt-get source wpasupplicant, make the change, then dpkg-buildpackage -rfakeroot -uc -b in the root of the extracted source package, and the dpkg -i the newly-rebuilt package)
- Confirm that sample config files have been installed in /etc/commotion/profiles.d
- Modify or create a new profile in this directory. Reconnect to any network, so that the dispatcher runs. Confirm that the corresponding NetworkManager profile now exists in /etc/NetworkManager/system-connections
- Connect to a mesh network using Network Manager. Confirm that olsrd is automatically started.
- Optimally, confirm that the client can connect to an encrypted mesh, see neighbors (iw dev