Link zur OpenHAB 2 Seite mit Installationsanleitung zum Raspberry Pi 4
Installation der notwendigen Pakete
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install screen mc vim git htop
wget -qO - 'https://bintray.com/user/downloadSubjectPublicKey?username=openhab' | sudo apt-key add -
sudo apt-get install apt-transport-https
echo 'deb https://dl.bintray.com/openhab/apt-repo2 stable main' | sudo tee /etc/apt/sources.list.d/openhab2.list
echo 'deb http://repos.azulsystems.com/debian stable main' > /etc/apt/sources.list.d/zulu.list
sudo apt-get update
sudo apt-get install openhab2 zulu-embedded-8
Service installieren
Services Datei anlegen
Korrekter Inhalt der Services Datei
sudo systemctl start openhab2.service
sudo systemctl status openhab2.service
sudo systemctl daemon-reload
sudo systemctl enable openhab2.service