Versioner sammenlignet

Nøgle

  • Linjen blev tilføjet.
  • Denne linje blev fjernet.
  • Formatering blev ændret.

...

Kodeblok
docker run \
        --name openhab \
        --net=host \
        -v /etc/localtime:/etc/localtime:ro \
        -v /etc/timezone:/etc/timezone:ro \
        -v /opt/openhab/conf:/openhab/conf \
        -v /opt/openhab/userdata:/openhab/userdata \
        -v /opt/openhab/addons:/openhab/addons \
        -d \
        -e USER_ID=1003 \
        -e GROUP_ID=9001 \
        --restart=always \
        openhab/openhab

Java install on Ubuntu

Do not install Java 10 or 11, currently only java 8 is supported (do review here)

Kodeblok
languagebash
sudo apt install openjdk-8-jdk
java -version
openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-0ubuntu0.18.04.1-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)
Advarsel

With Java 10 accidentally installed, I experienced that all things suddenly was "uninitiallized". See screenshot in the gallery

An alternative is Zulu:

Kodeblok
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0xB1998361219BD9C9
sudo apt-add-repository 'deb http://repos.azulsystems.com/ubuntu stable main'
sudo apt-get update
sudo apt-get install zulu-8

Installing openHAB

Very simple, just follow https://www.openhab.org/docs/installation/linux.html#package-repository-installation

Backup

The easiest way is the make a cron job for backup, information on backup and restore are at https://www.openhab.org/docs/installation/linux.html#backup-and-restore

...