Aide installation Domoticz sur Debian 9.6
Publié : 01 janv. 2019, 20:36
Bonjour à tous,
Voilà prêt d'une semaine que je galére pour installer Domoticz sur un Débian 9.6. Aucun tuto sur le net mise à par que du Raspberry.
Enfin j'en ai trouvé un (https://larumeurdaklain.blogspot.com/20 ... oticz.html) mais cela installe une version bêta, j'ai réussi à le lancé mais une fois le PC rebooté Domoticz ne redémarre pas malgré la config du fichier pour qu'il se lance.
Je recommence et je m'aide maintenant du wiki de Domoticz (https://www.domoticz.com/wiki/Install.txt) je vais lister ce qu'il doit être fait et pouvez vous me dire si j'ai bon.
Pour la seconde commande j'ai enlevé la version de boost car elle n'est plus dispo.
Compile OpenZWave
J'ai modifié le fichier domoticz.sh avec mon user et changé le port.
D'ailleurs dans le fichier à USERNAME il n'y a pas de $ devant faut il le mettre ou pas ?
Quel commande dois-je faire pour le relancer ? Le port doit il être changé ailleurs ?
Merci de votre aide.
Voilà prêt d'une semaine que je galére pour installer Domoticz sur un Débian 9.6. Aucun tuto sur le net mise à par que du Raspberry.
Enfin j'en ai trouvé un (https://larumeurdaklain.blogspot.com/20 ... oticz.html) mais cela installe une version bêta, j'ai réussi à le lancé mais une fois le PC rebooté Domoticz ne redémarre pas malgré la config du fichier pour qu'il se lance.
Je recommence et je m'aide maintenant du wiki de Domoticz (https://www.domoticz.com/wiki/Install.txt) je vais lister ce qu'il doit être fait et pouvez vous me dire si j'ai bon.
Pour la seconde commande j'ai enlevé la version de boost car elle n'est plus dispo.
J'ajoute aussi pythonsudo apt-get install build-essential -y
sudo apt-get install cmake libboost-dev libboost-system-dev libboost-thread-dev libsqlite3-dev subversion curl libcurl4-openssl-dev libusb-dev zlib1g-dev libssl-dev git
J'installe ce qu'il faut pour la clé Zwavesudo apt-get install python3-dev
Compile OpenZWave
Update OpenZWavegit clone https://github.com/OpenZWave/open-zwave.git
ln -s open-zwave open-zwave-read-only
cd open-zwave
make
cd ..
Installation:cd open-zwave
git pull
make clean
make
cd ..
J'ai ce résultat à la suite de cette commande es bon ?git clone https://github.com/domoticz/domoticz.git domoticz
cd domoticz
git pull
cmake -DCMAKE_BUILD_TYPE=Release
sebr@debian:~/domoticz$ cmake -DCMAKE_BUILD_TYPE=Release
-- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is GNU 6.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Failed to get ProjectRevision from git
-- Read ProjectRevision from appversion.default
-- ###########################
-- Compiling Revision #9700
-- ###########################
-- Using builtin Mosquitto library
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libssl.a;/usr/lib/x86_64-linux-gnu/libcrypto.a (found version "1.1.0j")
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.5.3", minimum required is "3.4")
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.5m.so (found suitable version "3.5.3", minimum required is "3.4")
-- Python3 includes found at: /usr/include/python3.5m
-- Looking for execinfo.h
-- Looking for execinfo.h - found
-- Looking for 3 include files sys/types.h, ..., linux/i2c.h
-- Looking for 3 include files sys/types.h, ..., linux/i2c.h - found
-- Building with I2C support
-- Looking for include files sys/types.h, linux/spi/spidev.h
-- Looking for include files sys/types.h, linux/spi/spidev.h - found
-- Building with SPI support
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- OPENSSL_LIBRARIES: /usr/lib/x86_64-linux-gnu/libssl.a;/usr/lib/x86_64-linux-gnu/libcrypto.a
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Boost version: 1.62.0
-- Found the following Boost libraries:
-- thread
-- system
-- chrono
-- date_time
-- atomic
-- Linking against boost static libraries
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8")
-- ZLIB libraries found at: /usr/lib/x86_64-linux-gnu/libz.so
-- ZLIB includes found at: /usr/include
-- Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so (found version "7.52.1")
-- Curl libraries found at: /usr/lib/x86_64-linux-gnu/libcurl.so
-- Curl includes found at: /usr/include/x86_64-linux-gnu
-- Found LIBUSB: /usr/lib/x86_64-linux-gnu/libusb.so
-- LIBUSB found at: /usr/lib/x86_64-linux-gnu/libusb.so
-- /home/sebr/open-zwave-read-only/libopenzwave.a
-- /lib/x86_64-linux-gnu/libudev.so
-- GPIO is available
-- Not found telldus-core (telldus-core.h), not adding tellstick support
/usr/bin/c++ ;;-std=c++11;-O3;-DNDEBUG;-I/usr/include/python3.5m;-I/home/sebr/domoticz/main;-I/home/sebr/domoticz/tinyxpath;-I/usr/include;-I/usr/include;-I/usr/include;-I/home/sebr/domoticz/zip;-I/usr/include/x86_64-linux-gnu;-I/home/sebr/domoticz/hardware/openzwave;-DBUILTIN_MQTT;-DENABLE_PYTHON;-DHAVE_EXECINFO_H;-DHAVE_LINUX_I2C;-DHAVE_LINUX_SPI;-DWWW_ENABLE_SSL;-DWITH_LIBUSB;-DWITH_OPENZWAVE;-DWITH_GPIO -x c++-header -o /home/sebr/domoticz/stdafx.h.gch/.c++ /home/sebr/domoticz/main/stdafx.h
-- Using static libgcc/libstdc++
-- Configuring done
-- Generating done
-- Build files have been written to: /home/sebr/domoticz
A la suite pour démarrer il est indiqué de faire:make -j 3
j'ai:./domoticz
Domoticz et lancé depuis http://192.168.1.97:8080sebr@debian:~/domoticz$ ./domoticz
2019-01-01 21:04:25.560 Status: Domoticz V4.10310 (c)2012-2019 GizMoCuz
2019-01-01 21:04:25.560 Status: Build Hash: 5f666c11, Date: 2019-01-01 14:27:03
2019-01-01 21:04:25.560 Status: Startup Path: /home/sebr/domoticz/
2019-01-01 21:04:25.639 Status: PluginSystem: Started, Python version '3.5.3'.
2019-01-01 21:04:25.640 Active notification Subsystems: gcm, http (2/13)
2019-01-01 21:04:25.640 Status: WebServer(HTTP) started on address: :: with port 8080
2019-01-01 21:04:25.642 Error: WebServer(SSL) startup failed on address 0.0.0.0 with port: 443: bind: Permission denied
2019-01-01 21:04:25.642 Error: WebServer(SSL) check privileges for opening ports below 1024
2019-01-01 21:04:25.642 Status: Proxymanager started.
2019-01-01 21:04:25.643 Starting shared server on: :::6144
2019-01-01 21:04:25.643 Status: TCPServer: shared server started...
2019-01-01 21:04:25.643 Status: RxQueue: queue worker started...
2019-01-01 21:04:27.646 Status: EventSystem: reset all events...
2019-01-01 21:04:27.647 Status: EventSystem: reset all device statuses...
2019-01-01 21:04:27.658 Status: Python EventSystem: Initalizing event module.
2019-01-01 21:04:27.659 Status: EventSystem: Started
2019-01-01 21:04:27.659 Status: EventSystem: Queue thread started...
2019-01-01 21:04:28.105 Status: PluginSystem: Entering work loop.
J'ai modifié le fichier domoticz.sh avec mon user et changé le port.
D'ailleurs dans le fichier à USERNAME il n'y a pas de $ devant faut il le mettre ou pas ?
Je souhaite relancer domoticz pour la prise en compte, mais aucune commande ne fonctionne.sudo nano /home/sebr/domoticz/domoticz.sh
A la ligne USERNAME remplacez $USERNAME par votre utilisateur :
USERNAME=$USERNAME
DAEMON=/home/$USERNAME/domoticz/$NAME
DAEMON_ARGS="-daemon -www 8084"
J'ai relancé ma VM, relancer domoticz avec la commande ./domoticz.sh mais il s'ouvre toujours sur le 8080sudo /home/sebr/domoticz/domoticz.sh status
sudo service domoticz.sh status
Quel commande dois-je faire pour le relancer ? Le port doit il être changé ailleurs ?
Merci de votre aide.