In this post I will describe my own quick way of installing and configuring Kura on a Raspberry PI board. Please refer to the official Kura installation guide for more information.
- Raspberry PI 2 or 3 with a recent version of Raspbian OS and connected to the internet. See my quick start.
Download Kura package
First of all you need to download Kura on your PI from this page.
Identify the package to be downloaded from the list. I typically use the Extended, No Net, with Web UI version - Kura 1.4.0 Extended Download: Raspbian (Model 2, No Net, with Web UI).
Versions with network are a little bit more challenging to install.
Download the selected package using the web browser or you can use this command:
cd /tmp wget https://s3.amazonaws.com/kura_downloads/raspbian/release/1.4.0/kura_1.4.0_raspberry-pi-2-nn_installer.deb
First update your system's package list by entering the following command:
sudo apt-get update
Install the Kura package:
sudo dpkg -i kura_1.4.0_raspberry-pi-2-nn_installer.deb
Ignore the dependency problems warnings and fix the installation by running the following command:
sudo apt-get install -f
You can now delete the Kura package:
Reboot the Raspberry Pi
Kura server will be restarted automatically so you should be able to access the Kura administrative UI - http://[HOST]/kura
Default login is admin/admin
To view Kura logs type the following command
tail -f /var/log/kura.log
It is strongly suggested to change admin password. This can be done by selecting the WebConsole service from the UI.
Disable CloudService (optional)
In my examples I will connect Kura to IBM Watson IoT Platform. The CloudService is a proprietary service and not appropriate for connecting to Watson IoT so we can disable it permanently.
Edit the Kura /opt/eclipse/kura/kura/config.ini file and modify the osgi.bundles parameter by changing the action for the https://developer.ibm.com/recipes/kura/plugins/org.eclipse.kura.core.cloud_*.jar from "start" to "stop".