I have created an install script that will turn a fresh Ubuntu minimal 18.04 LTS image into a working Openhab2 setup. I have tested it to work with the Odroid C2 only, but it is possible that this will work with other ARM64 devices running Ubuntu 18.04 and newer. The PI range are not arm64 so please do not try this with a raspberry PI, instead use openhabian for those devices.
For anyone not familiar with the Odroid C2, it is similar to the PI3 with the advantages that it has double the ram, true 1000mbps network, and more than twice the CPU grunt. The C2 is also one of the best budget devices to run KODI on due to the devs using it for testing and it supporting H265 playback at 4K 60 FPS (Pi3 can not do h265). You can have multiples of them around your house as spare parts running KODI set top boxes. For more info see https://libreelec.wiki/
How to auto install Openhab2 onto the Odroid C2
Download the image from here:
The exact link I used is
Use Etcher to flash the image you downloaded from the link above to a SD or EMMC card.
Insert and power on the Odroid C2 using a good power supply and cable.
If the blue LED stops flashing after 16 seconds just pull the power and re-apply. The LED goes out after the card has finished expanding to fill your entire card on first boot and is normal.
SSH into the device using putty (The default login details are “root” as user and “odroid” for password)
The script will change the password for root in the very first step as it is important for security to never leave it as the default password.
Now on to the fun stuff, enter this into the linux terminal via putty or your favorite SSH client…
wget http://pcmus.com/openhab/scripts/install-openhab-arm64.sh nano install-openhab-arm64.sh
The nano step is optional and will open the script up where you can read every line if you wish, or edit any of the preferences in the script at the very start of the file. For example you may wish to opt out of installing mosquitto. Save if you make any changes and then exit.
Run the script using this command
sudo bash ./install-openhab-arm64.sh
Sit back and answer any of the questions which are mostly timezone selection or entering in passwords you wish to use. If all goes well you will end up with a working system in around 20 minutes.