„Domoticz okosotthon telepítése Debian 10 környezetben” változatai közötti eltérés
Innen: IT documentation
(Új oldal, tartalma: „== Összefoglalás == A leírás a Domoticz<ref>https://domoticz.com/</ref> 2020.2.11995 okosotthon telepítését mutatja be. A leírás Debian 10.6 operációs rend…”) |
|||
| 1. sor: | 1. sor: | ||
== Összefoglalás == | ==Összefoglalás== | ||
A leírás a Domoticz<ref>https://domoticz.com/</ref> 2020.2.11995 okosotthon telepítését mutatja be. | A leírás a Domoticz<ref>https://domoticz.com/</ref> 2020.2.11995 okosotthon telepítését mutatja be. | ||
| 6. sor: | 6. sor: | ||
A parancsok root jogot feltételeznek. (állandó root jog: sudo -i) | A parancsok root jogot feltételeznek. (állandó root jog: sudo -i) | ||
== Előfeltételek == | ==Előfeltételek== | ||
Függőségek telepítése<syntaxhighlight lang="bash"> | Függőségek telepítése<syntaxhighlight lang="bash"> | ||
apt -y install libpython3.7 | apt -y install libpython3.7 | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== Domoticz telepítése == | ==Domoticz telepítése== | ||
Konyvtár, felhasználó létrehozása, Domoticz lettöltése:<syntaxhighlight lang="bash"> | Konyvtár, felhasználó létrehozása, Domoticz lettöltése:<syntaxhighlight lang="bash"> | ||
mkdir /opt/domoticz | mkdir /opt/domoticz | ||
| 23. sor: | 23. sor: | ||
User=domoticz | User=domoticz | ||
Group=domoticz | Group=domoticz | ||
ExecStart=/opt/domoticz/domoticz -www 8080 -sslwww | ExecStart=/opt/domoticz/domoticz -www 8080 -sslwww 8443 | ||
WorkingDirectory=/opt/domoticz | WorkingDirectory=/opt/domoticz | ||
# | # | ||
| 29. sor: | 29. sor: | ||
# | # | ||
# The following line is for pre-16.04 systems. | # The following line is for pre-16.04 systems. | ||
# ExecStartPre=setcap 'cap_net_bind_service=+ep' / | # ExecStartPre=setcap 'cap_net_bind_service=+ep' /opt/domoticz/domoticz | ||
# | # | ||
# The below works on Ubuntu 16.04 LTS | # The below works on Ubuntu 16.04 LTS | ||
| 50. sor: | 50. sor: | ||
[[Kategória:Debian 10]] | [[Kategória:Debian 10]] | ||
[[Kategória:Domoticz]] | [[Kategória:Domoticz]] | ||
<references /> | |||
A lap 2020. október 30., 12:32-kori változata
Összefoglalás
A leírás a Domoticz[1] 2020.2.11995 okosotthon telepítését mutatja be.
A leírás Debian 10.6 operációs rendszeren készült.
A parancsok root jogot feltételeznek. (állandó root jog: sudo -i)
Előfeltételek
Függőségek telepítése
apt -y install libpython3.7
Domoticz telepítése
Konyvtár, felhasználó létrehozása, Domoticz lettöltése:
mkdir /opt/domoticz
wget -qO- https://releases.domoticz.com/releases/release/domoticz_linux_x86_64.tgz | tar -xzf - -C /opt/domoticz
useradd -d /opt/domoticz -M -c "Domoticz home automation system" -s /sbin/nologin domoticz
chown -R domoticz:domoticz /opt/domoticz
A /etc/systemd/system/domoticz.service fájl létrehozása a következő tartalommal:
[Unit]
Description=domoticz_service
[Service]
User=domoticz
Group=domoticz
ExecStart=/opt/domoticz/domoticz -www 8080 -sslwww 8443
WorkingDirectory=/opt/domoticz
#
# Give the right to open priviliged ports. This allows you to run on a port <1024 without root permissions (user/group setting above)
#
# The following line is for pre-16.04 systems.
# ExecStartPre=setcap 'cap_net_bind_service=+ep' /opt/domoticz/domoticz
#
# The below works on Ubuntu 16.04 LTS
# CapabilityBoundingSet=CAP_NET_BIND_SERVICE
#
# The following works on Ubuntu 18.04
# AmbientCapabilities=CAP_NET_BIND_SERVICE
#
Restart=on-failure
RestartSec=1m
#StandardOutput=null
[Install]
WantedBy=multi-user.target
Szolgáltatás engedélyezése:
systemctl daemon-reload
systemctl enable domoticz.service
service domoticz start