From 8ce2cb1030ae11ed00a1cd5af712aaf56dfc1736 Mon Sep 17 00:00:00 2001 From: Daniel Bohrer <Daniel Bohrer@stratum0.org/mediawiki> Date: Tue, 30 May 2017 20:38:35 +0000 Subject: [PATCH] /* Setup */ mehr struktur, debian nodejs verwirrung (see /usr/share/doc/nodejs/README.Debian), infopoint-html install --- Infodisplay.mw | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/Infodisplay.mw b/Infodisplay.mw index 3f4f593f7..94b2c9e29 100644 --- a/Infodisplay.mw +++ b/Infodisplay.mw @@ -27,13 +27,29 @@ Das ganze ist derzeit auf Full-HD optimiert. Da die Software auf einer [http://i == 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: + sudo apt install git firefox-esr xserver-xorg-legacy xserver-xorg x11-xserver-utils cec-utils python3-rpi.gpio nodejs-legacy npm xinit + # 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 + +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: + echo "allowed_users = anybody" | sudo tee /etc/X11/Xwrapper.config + +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 -- 2.20.1