Ankündigung
Einklappen
Keine Ankündigung bisher.
Raspberry Image Version 2.2 mit SmarthomeNG 1.5.1
Einklappen
Dieses Thema ist geschlossen.
X
X
-
Inwiefern kommst nicht zurecht? Ich denke, inzwischen ist es recht simpel. Eigentlich braucht man auch nur das mixed widget. Ist zwar nicht sonderlich übersichtlich, aber funktional.
-
JajaZitat von Onkelandy Beitrag anzeigensmai weiß schon, was die quad_docu ist, er hat's nur vergessen
Zu meiner Verteidigung: Ich habe nicht behauptet, ich würde diese nicht kennen. Ich habe nur gesagt, es gäbe den Ordner bei mir nicht.
Ganz vergessen habe ich sie nicht, aber ich komme immer noch nicht ganz zurecht damit.
Einen Kommentar schreiben:
-
webster86 Da ist beim Erstellen der Zertifikate was schief gelaufen. Kannst du bitte nochmals die setup_nginx ausführen und den kompletten Output hier posten?
Hat du Port 80 vom Router auf deinen Raspi weitergeleitet? Das ist nötig für die Zertifikatserstellung.
Einen Kommentar schreiben:
-
whe
smai weiß schon, was die quad_docu ist, er hat's nur vergessen
Du kannst versuchen, index.php?pages=quad_docu aufzurufen. Da sollte eigentlich schon was kommen. Es handelt sich um ein eigenes "Listendesign". Siehe in diesem Thread: https://knx-user-forum.de/forum/supp...66#post1106566
Es ist allerdings nötig, zwei Zeilen im root.html einzusetzen. Siehe auch PR: https://github.com/Martin-Gleiss/smartvisu/pull/212
Einen Kommentar schreiben:
-
nein es geht um das 2.2 Meldung ignorieren ist das eine aber nach dem oben gezeigten setup(Konfigurationsversuch) startet nginx nicht mehr sondern meldet einen Fehler...Zitat von Onkelandy Beitrag anzeigenIch vermute su sprichst vom Image 2.1? Da ist der Reverse Proxy für nginx nicht vorbereitet. Wenn du ihn nicht brauchst, ignoriere die Fehler.
Wenn du ihn brauchst, gönn dir das hier: https://knx-user-forum.de/forum/supp...01#post1250601
Besser wäre natürlich, du kannst 2.2 nutzen, denn da ist alles vorbereitet. Alles andere ist pain in the ass...
Code:[smarthome@SmartHomeNG ~]$ systemctl status nginx ● nginx.service - A high performance web server and a reverse proxy server Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Tue 2018-09-18 15:51:50 CEST; 16h ago Docs: man:nginx(8) Process: 548 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE) Sep 18 15:51:48 SmartHomeNG systemd[1]: Starting A high performance web server and a reverse proxy server... Sep 18 15:51:50 SmartHomeNG nginx[548]: nginx: [emerg] BIO_new_file("/etc/letsencrypt/live/anders-electro.de/fullchain.pem") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/letsencrypt/live/ Sep 18 15:51:50 SmartHomeNG nginx[548]: nginx: configuration file /etc/nginx/nginx.conf test failed Sep 18 15:51:50 SmartHomeNG systemd[1]: nginx.service: Control process exited, code=exited status=1 Sep 18 15:51:50 SmartHomeNG systemd[1]: Failed to start A high performance web server and a reverse proxy server. Sep 18 15:51:50 SmartHomeNG systemd[1]: nginx.service: Unit entered failed state. Sep 18 15:51:50 SmartHomeNG systemd[1]: nginx.service: Failed with result 'exit-code'.
Einen Kommentar schreiben:
-
im SmartVISU2.9 Verzeichnis gibt es unter Pages ein Verzeichnis "quad_docu"
SMAI kennt das nicht; wo kommt es her ?
bei GitHub finde ich es auch nicht.
es lässt sich nicht aufrufen, es erscheint nur eine leere Seite, obwohl HTML in der page source vorhanden ist.
quad.JPG
Einen Kommentar schreiben:
-
Ich vermute su sprichst vom Image 2.1? Da ist der Reverse Proxy für nginx nicht vorbereitet. Wenn du ihn nicht brauchst, ignoriere die Fehler.
Wenn du ihn brauchst, gönn dir das hier: https://knx-user-forum.de/forum/supp...01#post1250601
Besser wäre natürlich, du kannst 2.2 nutzen, denn da ist alles vorbereitet. Alles andere ist pain in the ass...
Einen Kommentar schreiben:
-
frustrierend...
habe beim setup all mal alles durchgeskipt und siehe da nginx läuft aber unkonfiguriert.
dann das nginx setup gestartet mit dem gleichen Ergebnis...
Code:login as: smarthome Linux SmartHomeNG 4.14.52-v7+ #1123 SMP Wed Jun 27 17:35:49 BST 2018 armv7l The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Tue Sep 18 15:43:18 2018 from 192.168.0.66 SmartHome Raspi running for: 0 days, 00h03m31s [smarthome@SmartHomeNG ~]$ sudo nano nginx.conf [smarthome@SmartHomeNG ~]$ setup_nginx.sh nginx: Webserver, necessary for SmartVisu, Backend, etc. (currently enabled) 1) Enable 2) Disable 3) Skip #? 1 Synchronizing state of nginx.service with SysV service script with /lib/systemd/systemd-sysv-install. Executing: /lib/systemd/systemd-sysv-install enable nginx nginx Service is enabled. The server is setup the following way to easily access your websites: http://<YOURIP>/smartVISU -> smartVISU 2.8 http://<YOURIP>/smartVISU2.9 -> smartVISU 2.9 http://<YOURIP>/backend-> SmarthomeNG Backend (if plugin is enabled in smarthome config) http://<YOURIP>/phpmyadmin -> Admin Tool to manage SQL database. Login is root/smarthome http://<YOURIP>/shnet -> SmarthomeNG Network Plugin. Port is configured to 8888. Change in /etc/nginx/sites-available/default http://<YOURIP>/monit -> If you enable monit (later) you can see the status of your services http://<YOURIP>/monitgraph -> If you enable monit (later) you can see graphs of your computer resources per service http://<YOURIP>/grafana -> If you enable influxdb and grafana (later) you can use time series databases You can setup nginx as a Reverse Proxy to securely access the listed websites from outside your home network. To work correctly you need to forward port 443 in your router to the internal IP of this Raspberry Pi (192.168.0.67). Furthermore you need to activate a Dynamic DNS service on your Router or other network device! 1) Enable 2) Disable 3) Skip #? 1 awk: Fatal: Die Datei „/etc/ssl/easy-rsa/vars“ kann nicht zum Lesen geöffnet werden (Datei oder Verzeichnis nicht gefunden) Setting up variables for OpenVPN. Please provide the relevant information... Please define the countrycode of your server (2 letter code like AT, DE, CH): de Please define the city of your server (string): wb Please define your email (name@domain.tld): mxxxx@gmx.de Please define your common=domain name (xxx.domain.tld): electro.de You have setup the variables for key generation like this: set_var EASYRSA_REQ_COUNTRY "DE" set_var EASYRSA_REQ_CITY "Wb" set_var EASYRSA_REQ_EMAIL "mxxxxx@gmx.de" set_var EASYRSA_REQ_CN "electro.de" set_var EASYRSA_BATCH "yes" Do you want to re-run the configuration? 1) Re-Run 2) Move-on #? 2 Initializing server certification process. Later you have to provide a password to protect your certificates (export password). Generating a 2048 bit RSA private key .............+++ .......+++ writing new private key to '/etc/ssl/easy-rsa/pki/private/ca.key.57wEkGCl63' ----- Using configuration from ./openssl-easyrsa.cnf Generating a 2048 bit RSA private key ............................................+++ .................................................+++ writing new private key to '/etc/ssl/easy-rsa/pki/private/server.key.AY4QuH5mWD' ----- Using configuration from ./openssl-easyrsa.cnf Check that the request matches the signature Signature ok The Subject's Distinguished Name is as follows commonName :ASN.1 12:'server' Certificate is to be certified until Sep 15 13:47:47 2028 GMT (3650 days) Write out database with 1 new entries Data Base Updated Enter Export Password: Verifying - Enter Export Password: Generating DH parameters, 2048 bit long safe prime, generator 2 This is going to take a long time .............................................+....+...........................................................................................................................................................+.......................+..+.............+...........................................................................................+..........+...........................................................+................................+.............................................................+......................+.......................+.............................+...............................+.............+.........+...............................+.....................................................................................................................................................................+.......................................................................................+..................................++*++* Make sure the process was writing at least 5 lines with ... and +. Otherwise Ctrl-C and restart setup_nginx.sh. Server certificates were generated: ca.crt, ca.key, ca.pem, ca.crl (for revoking certificates), dh.pem, server.crt, server.key. Creating ta.key (for openvpn). Creating a random file (for freeradius). Now you have to create a certificate for each client. Please define the name of your client (string like MacBook, iPhone, etc.). Hit Enter to create no (more) client certificates. android Please define whether your certificate should be password protected when importing or not. 1) Password 2) NoPass #? 1 Setting a password for android Generating a 2048 bit RSA private key .......+++ ..............+++ writing new private key to '/etc/ssl/easy-rsa/pki/private/android.key.kGBI3MGxr8' Enter PEM pass phrase: Verifying - Enter PEM pass phrase: ----- Using configuration from ./openssl-easyrsa.cnf Check that the request matches the signature Signature ok The Subject's Distinguished Name is as follows commonName :ASN.1 12:'android' Certificate is to be certified until Sep 15 13:51:37 2028 GMT (3650 days) Write out database with 1 new entries Data Base Updated Creating pkcs12 file with suffix pfx. You can rename that p12 if needed. It's recommended to set a password. Enter pass phrase for pki/private/android.key: Enter Export Password: Verifying - Enter Export Password: Creating and setting up openvpn configuration file for your client android in /home/smarthome. Please define the name of your client (string like MacBook, iPhone, etc.). Hit Enter to create no (more) client certificates. Creating client certificates finished. Copying all relevant server files for openvpn/nginx to /etc/ssl/ca/ Folder content of /etc/ssl/ca/ /etc/ssl/ca//ca.pem /etc/ssl/ca//dh.pem /etc/ssl/ca//ta.key /etc/ssl/ca//certs: ca.crt server.crt /etc/ssl/ca//private: ca.crl ca.key server.key Client certificates and ca.crt are copied to /home/smarthome. Make sure to transfer them securely to your clients. They are saved as pkcs12 with suffix pfx. You can change the suffix to p12 if needed. If you need seperate crt and key files have a look at the folder /etc/ssl/easy-rsa/pki Folder content of /home/smarthome: android.pfx openvpn_android.conf smarthomeng.private ca.crt openvpn_client_example.conf ta.key Finished certificate setup. Changing nginx config based on domain anders-electro.de sed: /etc/nginx/sites-available/default.conf kann nicht gelesen werden: Datei oder Verzeichnis nicht gefunden You have to put your private key password in the lua script to make reverse proxy work correctly. Either do it manually by changing first line in /etc/nginx/scripts/hass_access.lua. Or provide the password here and let me insert it automatically (Hit enter to skip): pass Creating Letsencrypt certificate IMPORTANT: You HAVE to forward port 80 to your Raspi on your router now before you advance. Did you forward port 80 to this Raspberry Pi (IP: 192.168.0.67)? 1) Yes 2) No 3) Skip #? 1 Going on with creating the SSL certificate Please provide your mail address in the next step. Saving debug log to /var/log/letsencrypt/letsencrypt.log Enter email address (used for urgent renewal and security notices) (Enter 'c' to cancel):mxxxx@gmx.de ------------------------------------------------------------------------------- Please read the Terms of Service at https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf. You must agree in order to register with the ACME server at https://acme-v01.api.letsencrypt.org/directory ------------------------------------------------------------------------------- (A)gree/(C)ancel: a Obtaining a new certificate Performing the following challenges: http-01 challenge for electro.de Using the webroot path /var/www/letsencrypt for all unmatched domains. Waiting for verification... Cleaning up challenges Failed authorization procedure. anders-electro.de (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://anders-electro.de/.well-known/acme-challenge/BHU7kGkFepyvUcNgx_f-_H_I19_p4-JJAJBVZT5faCM: "<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/D" IMPORTANT NOTES: - If you lose your account credentials, you can recover through e-mails sent to mxxxx@gmx.de. - The following errors were reported by the server: Domain: anders-electro.de Type: unauthorized Detail: Invalid response from http://anders-electro.de/.well-known/acme-challenge/BHU7kGkFepyvUcNgx_f-_H_I19_p4-JJAJBVZT5faCM: "<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/D" To fix these errors, please make sure that your domain name was entered correctly and the DNS A record(s) for that domain contain(s) the right IP address. - Your account credentials have been saved in your Certbot configuration directory at /etc/letsencrypt. You should make a secure backup of this folder now. This configuration directory will also contain certificates and private keys obtained by Certbot so making regular backups of this folder is ideal. Now change the port forwarding from 80 to 443 on your router! Restarting nginx now. Copy certificates to your client. If you also want to use OpenVPN, just import the copied conf file to your favourite OpenVPN client (Tunnelblick, OpenVPN, etc.) Start and enable openvpn (later in the setup process) Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details. /opt/setup/setup_nginx.sh: Zeile 319: tl: Kommando nicht gefunden. /opt/setup/setup_nginx.sh: Zeile 320: Syntaxfehler beim unerwarteten Wort `fi' /opt/setup/setup_nginx.sh: Zeile 320: `fi' [smarthome@SmartHomeNG ~]$
Einen Kommentar schreiben:
-
es wäre super wenn du sie seperat bereitstellen könntest! wie gesagt als Rohversion lies sich nginx ja installieren und startete auch.Zitat von Onkelandy Beitrag anzeigenwebster86 Im alten Image gab es die ganzen Config Optionen nicht. Ich könnte sie prinzipiell separat bereitstellen. Aber nginx müsstest du alles manuell installieren. Wenn du keinen Reverse Proxy nutzen willst, kannst dir das aber auch sparen und einfach das installierte apache2 nutzen.
Versteh ich dich richtig. Mit dem aktuellen Image ist es nicht möglich, die Bootfiles fürn Raspi 3 auf die boot Partition zu kopieren, da sie zu klein ist? Laut Post von whe ist das aber gar nicht nötig? Also einfach alles lassen wie's ist? Bzw. die root Partition expanden durch setup_all
Aber dann wird das das Problem sein.. Leeres File bei nginx.conf kommt eben daher, dass erst seit 2.2 nginx installiert ist.
Ja richtig die boot-Partition ist zu klein, aber das 2.2 läuft auch so ohne die Dateien von whe. das expandieren scheint nicht so ganz zu klappen auch via rasp-config nicht.
die leere nginx.conf hatte ich bei installieren des 2.2 Images. es kommt die erwähnt Syntaxfehlermeldung bei installieren, deswegen startet vermutlich nginx nicht weil die conf leer bleibt. Ich habe noch 2 SD Karten bestellt, vllt sind die jetzigen ja tatsächlich beschädigt.
Einen Kommentar schreiben:
-
whe Die Skripts sind alle im /opt Verzeichnis zu finden bzw im Unterverzeichnis image_setup oder so. Da kannst einfach ein cat machen.
Wenn man mal was falsch gemacht hat, kann man von vorne starten und alles bis dorthin skippen. Oder einfach nur direkt das gewünschte Skript, zb setup_nginx starten.
Die Warnung ist unsmart integriert und hat u.U. keinen Grund. Es wird einfach ein git stash ausgeführt, was eben alle Änderungen überrschreibt. That's all. Github zickt immer wieder mal selbst wenn man nur die Permissions ändert, drum ist diese Frage einfach unintelligent quick and dirty drin.
Einen Kommentar schreiben:
-
webster86 Im alten Image gab es die ganzen Config Optionen nicht. Ich könnte sie prinzipiell separat bereitstellen. Aber nginx müsstest du alles manuell installieren. Wenn du keinen Reverse Proxy nutzen willst, kannst dir das aber auch sparen und einfach das installierte apache2 nutzen.
Versteh ich dich richtig. Mit dem aktuellen Image ist es nicht möglich, die Bootfiles fürn Raspi 3 auf die boot Partition zu kopieren, da sie zu klein ist? Laut Post von whe ist das aber gar nicht nötig? Also einfach alles lassen wie's ist? Bzw. die root Partition expanden durch setup_all
Aber dann wird das das Problem sein.. Leeres File bei nginx.conf kommt eben daher, dass erst seit 2.2 nginx installiert ist.
Einen Kommentar schreiben:
-
wo kommt denn diese WARNING her ?
HTML-Code:Do you want to update SmarthomeNG? 1) Update 2) Skip #? 1 Do you want to update to the latest Master (recommended!) or Develop version? 1) Master 2) Develop #? 1 WARNING: Changes to the source code/plugins are lost. Back them up now and proceed later. 1) Proceed 2) Stop #? WARNING: Changes to the source code/plugins are lost. Back them up now and proceed later. Skipping
Einen Kommentar schreiben:
-
Ein dickes Lob mal wieder für das neue Image.
Teste es gerade. Bis jetzt ging alles ratzfatz und das Austauschen der boot partition beim Pi 3 B+ hat sich erübrigt.
Mir fehlt leider etwas mehr Doku zum neuen "system_update"
ein paar Sätze für die Leute, die an der Stelle nach dem alten "update.sh" suchen, wäre hilfreich.
wie kann ich denn Teile daraus wiederholen, wenn ich irgendwo eine Frage falsch beantwortet habe ?
Einen Kommentar schreiben:
-
Hmm ich ziehe das Image nochmal.
Ich habe es mit win32diskimager "gebrannt".
Danke schon mal für deine Hilfe
Update, leider keine neuen Erkenntnisse.
Habe vorher immer mit Minitool Partition die SD Card zu erweitern (weil ich sonst die Bootfiles für den 3B+ nicht draufkopieren konnte).
Das habe ich jetzt gelassen aber es brachte keine Verbesserung nginx startet nicht (aber der "Lesefehler" der config-file kommt nicht) nur fail to start a high performance server etc...
beim Versuch sich die nginx.conf via sudo nano anzuschauen sieht man nur eine leere Datei?!
andere Variante probiert, das nächst ältere Image gebrannt... Resultat: setup_all -> Befehl nicht gefunden ??
Zuletzt geändert von webster86; 17.09.2018, 08:19.
Einen Kommentar schreiben:
-
Tut mir echt Leid, ich kann den Fehler nicht nachvollziehen. Hab gerade das zip vom Sourceforge herunter geladen und auf eine SD Karte gezogen. Gestartet, läuft alles wie geplant. Womit schreibst du das Image auf die SD Karte? Ich habe win32diskimager bzw. etcher auf mac genutzt.
Einen Kommentar schreiben:


Einen Kommentar schreiben: