Установка всего этого добра на Debian 8 Jessie.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
apt-get update apt-get upgrade wget -qO - 'http://repo.mosquitto.org/debian/mosquitto-repo.gpg.key' | apt-key add - wget -qO - 'https://bintray.com/user/downloadSubjectPublicKey?username=openhab' | apt-key add - wget -qO - 'https://repos.influxdata.com/influxdb.key' | apt-key add - wget -qO - 'https://packagecloud.io/grafana/stable/gpgkey' | apt-key add - echo "deb http://repo.mosquitto.org/debian jessie main" | tee /etc/apt/sources.list.d/mosquitto.list echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee /etc/apt/sources.list.d/webupd8team-java.list echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list echo 'deb https://dl.bintray.com/openhab/apt-repo2 stable main' | tee /etc/apt/sources.list.d/openhab2.list echo "deb https://repos.influxdata.com/debian jessie stable" | tee /etc/apt/sources.list.d/influxdb.list echo "deb https://packagecloud.io/grafana/stable/debian/ jessie main" | tee /etc/apt/sources.list.d/grafana_stable.list echo "deb-src https://packagecloud.io/grafana/stable/debian/ jessie main" | tee -a /etc/apt/sources.list.d/grafana_stable.list apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886 apt-get install apt-transport-https apt-get update apt-get install mosquitto oracle-java8-installer openhab2 openhab2-addons influxdb grafana systemctl start openhab2.service systemctl status openhab2.service systemctl daemon-reload systemctl enable openhab2.service |
Debian 9 Stretch.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
apt update apt upgrade apt install apt-transport-https dirmngr wget -qO - 'http://repo.mosquitto.org/debian/mosquitto-repo.gpg.key' | apt-key add - wget -qO - 'https://bintray.com/user/downloadSubjectPublicKey?username=openhab' | apt-key add - wget -qO - 'https://repos.influxdata.com/influxdb.key' | apt-key add - wget -qO - 'https://packagecloud.io/grafana/stable/gpgkey' | apt-key add - echo "deb http://repo.mosquitto.org/debian stretch main" | tee /etc/apt/sources.list.d/mosquitto.list echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee /etc/apt/sources.list.d/webupd8team-java.list echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list echo 'deb https://dl.bintray.com/openhab/apt-repo2 stable main' | tee /etc/apt/sources.list.d/openhab2.list echo "deb https://repos.influxdata.com/debian stretch stable" | tee /etc/apt/sources.list.d/influxdb.list echo "deb https://packagecloud.io/grafana/stable/debian/ stretch main" | tee /etc/apt/sources.list.d/grafana_stable.list echo "deb-src https://packagecloud.io/grafana/stable/debian/ stretch main" | tee -a /etc/apt/sources.list.d/grafana_stable.list apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886 apt update apt install mosquitto oracle-java8-installer openhab2 openhab2-addons influxdb grafana systemctl start openhab2.service systemctl status openhab2.service systemctl daemon-reload systemctl enable openhab2.service |
Связка openhab, influxdb, grafana.
1 2 3 4 5 6 7 8 9 10 |
$ influx Connected to http://localhost:8086 version 1.3.1 InfluxDB shell version: 1.3.1 > CREATE DATABASE openhab_db > CREATE USER admin WITH PASSWORD 'SuperPassword' WITH ALL PRIVILEGES > CREATE USER openhab WITH PASSWORD 'Password1' > CREATE USER grafana WITH PASSWORD 'Password' > GRANT ALL ON openhab_db TO openhab > GRANT READ ON openhab_db TO grafana > exit |
1 |
nano /etc/influxdb/influxdb.conf |
1 2 3 4 5 |
[http] enabled = true bind-address = ":8086" auth-enabled = true ... |
1 |
nano /etc/grafana/grafana.ini |
1 2 3 4 5 6 7 |
[users] # disable user signup / registration allow_sign_up = false ... [auth.anonymous] # enable anonymous access enabled = true |