X-Git-Url: https://git.rohieb.name/stratum0-wiki.git/blobdiff_plain/e69bb3eadec07d00766bd2ee7410deb0c9a800f0..2a34a1a7ca357d1e558656cb4935082b7d3207e5:/Infodisplay.mw?ds=sidebyside

diff --git a/Infodisplay.mw b/Infodisplay.mw
index 3f4f593f7..266002d93 100644
--- a/Infodisplay.mw
+++ b/Infodisplay.mw
@@ -23,17 +23,42 @@ Auf dem Infodisplay stehen relevante Informationen zur Verfügung:
 * Visualisiert Stromverbrauch und Netzwerkdinge im Spacenetz
 * IRC-Channel
 
-Das ganze ist derzeit auf Full-HD optimiert. Da die Software auf einer [http://infodisplay.local:8000 Webseite] basiert (im Fullscreen angezeigt, aus dem Space-Netz erreichbar), ist sie theoretisch auf auf mehreren Displays deploybar.
+Das ganze ist derzeit auf Full-HD optimiert. Da die Software auf einer [http://infodisplay.local:8000 Webseite] basiert (im Fullscreen angezeigt, aus dem Space-Netz erreichbar), ist sie theoretisch auf mehreren Displays deploybar.
 
 == Setup ==
 Raspbian auf Raspberry Pi installieren. Dann:
- sudo apt install git firefox-esr xserver-xorg-legacy xserver-xorg cec-utils python3-rpi.gpio node xinit            # oder auch firefox, je nach Verfügbarkeit
- git clone https://gitli.stratum0.org/kasalehlia/s0infodisplay/        # macht lokal einen HTTP-Server und baut die HTML-Seite
- git clone https://github.com/rohieb/infopoint-html.git                # startet einen Firefox im Vollbild
+
+Pakete installieren:
+ curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - 
+ # oder was mittlerweile nach https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions aktuell ist
+ 
+ sudo apt -y install git firefox-esr xserver-xorg-legacy xserver-xorg x11-xserver-utils cec-utils python3-rpi.gpio npm xinit libicu-dev nodejs unattended-upgrades
+ # oder auch 'firefox', je nach Verfügbarkeit
+
+s0infodisplay macht lokal einen HTTP-Server und baut die HTML-Seite:
+ git clone https://gitli.stratum0.org/kasalehlia/s0infodisplay/
+ cd s0infodisplay/
+ npm install
+ NODE_ENV=production npm run build
+
+infopoint-html startet einen Firefox im Vollbild:
+ cd
+ git clone https://github.com/rohieb/infopoint-html.git
+ echo -e '#!/bin/sh\nexec /home/pi/infopoint-html/src/infopoint-html' | sudo tee /usr/bin/infopoint-html
+ sudo chmod +x /usr/bin/infopoint-html
+ echo 'URL="http://localhost:8000/"' | sudo tee /etc/default/infopoint-html
+
+systemd-logind session activation für den X-Server umgehen:
+ sudo dpkg-reconfigure xserver-xorg-legacy   # hier dann die dritte Option, "Anybody", auswählen
+
+systemd-Services installieren:
  sudo cp s0infodisplay/s0infodisplay.service s0infodisplay/pirscreencontrol.service infopoint-html/infopoint-html.service /etc/systemd/system/
  sudo systemctl daemon-reload
- echo "allowed_users = anybody" | sudo tee /etc/X11/Xwrapper.config    # systemd-logind session activation umgehen...
- echo 'URL="http://localhost:8000/"' | sudo tee /etc/default/infopoint-html
  sudo systemctl enable s0infodisplay.service
  sudo systemctl enable infopoint-html.service
  sudo systemctl enable pirscreencontrol.service
+
+=== Troubleshooting ===
+* Wenn das Display mit einem schwarzen Rahmen angezeigt wird
+ sudo raspi-config
+ -> 7 Advanced Options -> A2 Overscan -> <no>