Eclipse Kura aims at offering a Java/OSGi-based container for M2M applications running in service gateways. Kura provides or, when available, aggregates open source implementations for the most common services needed by M2M applications.

Kura components are designed as configurable OSGi Declarative Service exposing service API and raising events. While several Kura components are in pure Java, others are invoked through JNI and have a dependency on the Linux operating system

1 Install Eclipse Kura

Assuming you are properly logged in on your Raspberry Pi, here’s how to install Kura:

Backup /etc/network/interfaces as Kura will modify them. If you are using wifi, it will be missing in Kura.
source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback

iface eth0 inet manual

allow-hotplug wlan0
iface wlan0 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

allow-hotplug wlan1
iface wlan1 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
            
  1. let's make sure Debian repositories descriptions are up-to-date
    Copy
    $ sudo apt-get update
  2. Donwload the code
    Copy
    $ wget https://s3.amazonaws.com/kura_downloads/raspbian/release/1.3.0/kura_1.3.0_raspberry-pi-2_installer.deb
  3. dpkg will complain about missing dependencies, and will fail. Indeed, Kura depends on some packages that you probably don’t have on your Raspberry Pi
    Copy
    $ sudo dpkg -i kura_1.3.0_raspberry-pi-2_installer.deb
  4. so we must tell Aptitude to download those automatically for us
    Copy
    $ sudo apt-get install -f
  5. You should now reboot your Raspberry Pi to make sure all the Kura services are properly started.
    Copy
    $ reboot
    In order to confirm that Kura is properly installed, you can try accessing its web UI from a web browser. From a remote computer the URL should point the ip address of your rasbpberry pi like http://192.168.xx.yy/kura. From rasbpberry pi console use local ip address http://127.0.0.1/kura.
    The default credentials are: admin / admin.
To disable (or enable) kura from service you can use
Copy
$ sudo systemctl enable kura