Running OMF on the Android platform¶
Running RC on Android¶
WINLAB has a guide for this:
http://www.orbit-lab.org/wiki/Documentation/Android-OMF
AM on Amazon EC2 instance¶
To demonstrate OMF on Android, we set up an amazon EC2 server with an AM. First, we installed the ec2 tools on a local Ubuntu machine according to the instructions here: https://help.ubuntu.com/community/EC2StartersGuide . We created an instance from the karmic x86 server image (ami-1515f67c) and opened ports 5022 (AM), 22 (SSH) and XMPP (5222) using ec2-authorize default -p <port>. Then we installed the AM from our repository and Openfire according to the instructions in the OMF install guide.
We've also installed phpmyadmin, mysql-server and apache2 in the EC2 machine and imported our inventory sample. A single node was added to the nodes table with control IP 1.2.3.4. The RC on the android phone will report the fake address 1.2.3.4 instead of its actual 3G/WLAN IP address, since we otherwise would have to update the inventory every time it changes.
The omf_create_sysnode script was used to create an XMPP system node for 1.2.3.4.
Running EC on a Laptop¶
On a Linux machine, install the omf-expctl package from our repository. Set the XMPP server IP address in nodehandler.yaml to the external IP address of the EC2 instance.