/////////////// ИНСТАЛАЦИЯ ///////////////
Разрешаване на зависимостите.sudo apt install software-properties-common
sudo apt install apt-transport-https
Добавяне на Zulu-ключ и Zulu-хранилище.
sudo apt-add-repository 'deb http://repos.azulsystems.com/ubuntu stable main'
Добавяне на openHAB-ключ и openHAB-хранилище.
echo 'deb https://dl.bintray.com/openhab/apt-repo2 stable main' | sudo tee /etc/apt/sources.list.d/openhab2.list
sudo apt upgrade
Инсталация на Java Zulu.
Инсталация на openHAB2 stable.
Инсталация на openHAB допълнения.
Старт на сервиза и автозапуск.
sudo systemctl status openhab2.service
sudo systemctl daemon-reload
sudo systemctl enable openhab2.service
Добавяне на нови псевдоними
alias openhab='cd /etc/openhab2'
alias sitemaps='cd $OPENHAB_CONF/sitemaps'
alias items='cd $OPENHAB_CONF/items'
alias things='cd $OPENHAB_CONF/things'
alias icons='cd $OPENHAB_CONF/icons/classic'
alias rules='cd $OPENHAB_CONF/rules'
alias scripts='cd $OPENHAB_CONF/scripts'
alias persistence='cd $OPENHAB_CONF/persistence'
alias icons='cd $OPENHAB_CONF/icons/classic'
alias transform='cd $OPENHAB_CONF/transform'
alias services='cd $OPENHAB_CONF/services'
alias whitelist='nano $OPENHAB_CONF/misc/exec.whitelist'
alias backup='sudo openhab-cli backup'
/*.................... OTHERS ....................*/
alias grub='sudo nano /boot/grub/grub.cfg'
alias update='sudo apt update'
alias upgrade='sudo apt upgrade'
alias poweroff='sudo poweroff'
alias reboot='sudo reboot'
alias speedtest='/home/openhab/ookla/speedtest'
alias ip='sh /home/openhab/scripts/ip.sh'
alias hddtemp='sudo hddtemp /dev/sda'
Достъп до логове
///////////////// КЕШ /////////////////
При неадекватно поведение на openHAB2 - изпразване на кеша и на JSON-обекта.sudo openhab-cli clean-cache
/////////////// ИЗТРИВАНЕ ///////////////
Ако install --reinstall не помага - тотално нулиране и отначало.sudo apt-get purge openhab2
sudo apt-get purge openhab2-addons
sudo apt-get purge zulu-8
до нови срещи ^.^
0 Response to "Инсталация на openHAB 2 в Ubuntu Server 16/18 LTS"
Публикуване на коментар