Kiosk wMaker Firefox: Unterschied zwischen den Versionen
Uli (Diskussion | Beiträge) |
Uli (Diskussion | Beiträge) |
||
Zeile 91: | Zeile 91: | ||
cp /root/xorg.conf.new /etc/X11/xorg.conf | cp /root/xorg.conf.new /etc/X11/xorg.conf | ||
Hier einige Einstelleungen die für den Kiosk wichtig | Hier einige Einstelleungen die für den Kiosk wichtig | ||
− | Section "ServerLayout" | + | '''Section "ServerLayout"''' |
+ | ... | ||
Option "BlankTime" "0" | Option "BlankTime" "0" | ||
Option "StandbyTime" "0" | Option "StandbyTime" "0" | ||
Zeile 99: | Zeile 100: | ||
Option "DontZap" "true" | Option "DontZap" "true" | ||
Option "DontVTSwitch" "true" | Option "DontVTSwitch" "true" | ||
− | + | ... | |
− | ... | + | Weiter Infos hier: |
− | Option | + | '''Option "DontVTSwitch" "boolean"''' |
− | Option | + | This disallows the use of the Ctrl+Alt+Fn sequence (where Fn refers to one of the numbered function keys). That sequence is normally used to switch to another "virtual terminal" on operating systems that have this feature. When this option is enabled, that key sequence has no special meaning and is passed to clients. Default: off. |
− | Option | + | '''Option "DontZap" "boolean"''' |
− | + | This disallows the use of the Ctrl+Alt+Backspace sequence. That sequence is normally used to terminate the Xorg server. When this option is enabled, that key sequence has no special meaning and is passed to clients. Default: off. | |
− | Option | + | Option "BlankTime" "time" |
− | + | sets the inactivity timeout for the blanking phase of the screensaver. time is in minutes. This is equivalent to the Xorg server's `-s' flag, and the value can be changed at run-time with xset(1x) . Default: 10 minutes. | |
− | Option | + | '''Option "StandbyTime" "time"''' |
− | + | sets the inactivity timeout for the "standby" phase of DPMS mode. time is in minutes, and the value can be changed at run-time with xset(1x) . Default: 20 minutes. This is only suitable for VESA DPMS compatible monitors, and may not be supported by all video drivers. It is only enabled for screens that have the "DPMS" option set (see the MONITOR section below). | |
+ | '''Option "SuspendTime" "time"''' | ||
+ | sets the inactivity timeout for the "suspend" phase of DPMS mode. time is in minutes, and the value can be changed at run-time with xset(1x) . Default: 30 minutes. This is only suitable for VESA DPMS compatible monitors, and may not be supported by all video drivers. It is only enabled for screens that have the "DPMS" option set (see the MONITOR section below). | ||
+ | '''Option "OffTime" "time"''' | ||
+ | sets the inactivity timeout for the "off" phase of DPMS mode. time is in minutes, and the value can be changed at run-time with xset(1x) . Default: 40 minutes. This is only suitable for VESA DPMS compatible monitors, and may not be supported by all video drivers. It is only enabled for screens that have the "DPMS" option set (see the MONITOR section below). | ||
+ | '''Option "NoPM" "boolean"''' | ||
+ | Disables something to do with power management events. Default: PM enabled on platforms that support it. | ||
== Firefox == | == Firefox == |
Version vom 18. September 2014, 10:38 Uhr
Inhaltsverzeichnis
Erklärung
Diese Dokumentation zeigt die Schritte zu einem Linux PC der den Browser Firefox als KIOSK anbietet. Dieser kann als öffentlicher PC für Besucher, Kunden usw. verwendet werden. Veränderungen am Kiosk soll ausgeschlossen werden. Nach einem Neustart des PCs soll ein vorher definierter Zustand wieder hergestellt werden. Die Installation von Linux ist nicht Bestandteil der Anleitung
Anwendung
- Linux Ubuntu 14.4
- WMaker - Windows Display Manager
- Firefox - Webbrowser
- Add-on: Full Screen+ 2.0.3
- Add-on: Menu Editor 1.2.7
Installation
Vorausgesetzt wird eine Ubuntu 14.4 Installation ohne Displaymanager (am besten den Ubuntu Server). Sollte aber auch mit anderen Debian basierten System funktionieren.
- Installation der benötigten Pakete
# Xserever aptitude install xorg xserver-xorg-video-all xserver-xorg-input-all ttf-freefont xscreensaver xscreensaver-gl xterm
# Benutzer Autologin aptitude install mingetty
# Nummernblock aktivieren aptitude install numlockx
# WMaker - Displaymanager aptitude install wmaker
# Firefox aptitude install firefox firefox-locale-de
Konfiguration
System
Benutzer anlegen
adduser autologin
Autologin konfigurieren
vi /etc/init/tty1.conf Change: #exec /sbin/getty -8 38400 tty1 exec /sbin/mingetty --autologin autologin --noclear tty1
Starten des Windowmakers
vi /home/autologin/.bash_profile startx logout
Nach dem Autologin wird die .bash_profile ausgeführt. Durch den Befehl startx wird der Windowmanager wmaker gestartet. Nachdem dieser geschlossen wurde, erfplgt ein logout des Bentzers autologin. Der wird anschließend wieder automatisch angemeldet und der Windowsmanager wmaker wird wieder gestartet. So wird sichergestellt, dass der Kiosk erhalten bleibt.
Konfiguration der Desktop Umgebung - .xinitrc
In der Datei /home/autologin/.xinitrc können Anpassungen der Dektopumgebung vorgenommen werden. Hier der Inhalt der Datei, folgend dazu die Erklärugen:
#!/bin/bash # ## --- Erlaubt Infos ueber xmessage an den X-Server zu senden export DISPLAY=:0.0 xhost + ## --- Schaltet die Numlock-Taste ein /usr/bin/numlockx on ## --- Deaktviert Tasten im Grafikmodus xmodmap /home/autologin/.Xmodmap ## -- Startet den WindowMaker mit Voreinstellungen # --no-clip = Keine Clips auf dem Desktop # --no-dock = Keine Docked-Applications auf dem Desktop wmaker --no-clip --no-dock & ## --- Startet den Browser Mozilla Firefox exec /usr/bin/firefox -contentLocale de-DE -UILocale de-DE
Numlock
Um die Numlock Taste einzuschalten und zu verhindern, dass diese deaktiviert wird, verwende ich das Programm numlockx.
Xmodmap
In der Datei /home/autologin/.Xmodmap kann man die Tastatur anpassen/verändern. Damit können z.B. unerwünschte Tastaturkürzel deaktiviert werden.
Die Datei ist in der Regel nicht vorhanden und kann so erzeugt werden:
su - autologin export DISPLAY=:0.0 xhost + xmodmap -pke > .Xmodmap
Weitere Information erhält man durch den Befehl
xmodmap -pm
Weiter infos finden Sie auf dieser Webseite: http://blacketernal.wordpress.com/set-up-key-mappings-with-xmodmap/
Xorg.conf
In der Xorg Konfiguration können Einstellungen zum Monitor, Fonts, Treiber, Tastatur, Maus usw. angepasst werden. Die xorg.conf ist in der Regel nicht vorhanden und muss erzeugt werden. Dazu ruft man den X-Server mit dem Parameter -configure auf. Dies funktioniert allerdings nur mit Root Rechten und nur dann, wenn kein anderer X-Server in Betrieb ist. Achtung! - Der X Server darf nicht laufen. Dazu müssen in der Datei /home/autologin/.bash_profile die Eintrage startx und logout auskommentiert werden und der Windowsmanager gestoppt werden.
X -configure cp /root/xorg.conf.new /etc/X11/xorg.conf
Hier einige Einstelleungen die für den Kiosk wichtig
Section "ServerLayout" ... Option "BlankTime" "0" Option "StandbyTime" "0" Option "SuspendTime" "0" Option "OffTime" "0" Option "NoPM" "true" Option "DontZap" "true" Option "DontVTSwitch" "true" ...
Weiter Infos hier:
Option "DontVTSwitch" "boolean" This disallows the use of the Ctrl+Alt+Fn sequence (where Fn refers to one of the numbered function keys). That sequence is normally used to switch to another "virtual terminal" on operating systems that have this feature. When this option is enabled, that key sequence has no special meaning and is passed to clients. Default: off. Option "DontZap" "boolean" This disallows the use of the Ctrl+Alt+Backspace sequence. That sequence is normally used to terminate the Xorg server. When this option is enabled, that key sequence has no special meaning and is passed to clients. Default: off.
Option "BlankTime" "time"
sets the inactivity timeout for the blanking phase of the screensaver. time is in minutes. This is equivalent to the Xorg server's `-s' flag, and the value can be changed at run-time with xset(1x) . Default: 10 minutes. Option "StandbyTime" "time" sets the inactivity timeout for the "standby" phase of DPMS mode. time is in minutes, and the value can be changed at run-time with xset(1x) . Default: 20 minutes. This is only suitable for VESA DPMS compatible monitors, and may not be supported by all video drivers. It is only enabled for screens that have the "DPMS" option set (see the MONITOR section below). Option "SuspendTime" "time" sets the inactivity timeout for the "suspend" phase of DPMS mode. time is in minutes, and the value can be changed at run-time with xset(1x) . Default: 30 minutes. This is only suitable for VESA DPMS compatible monitors, and may not be supported by all video drivers. It is only enabled for screens that have the "DPMS" option set (see the MONITOR section below). Option "OffTime" "time" sets the inactivity timeout for the "off" phase of DPMS mode. time is in minutes, and the value can be changed at run-time with xset(1x) . Default: 40 minutes. This is only suitable for VESA DPMS compatible monitors, and may not be supported by all video drivers. It is only enabled for screens that have the "DPMS" option set (see the MONITOR section below). Option "NoPM" "boolean" Disables something to do with power management events. Default: PM enabled on platforms that support it.
Firefox
Um Firefox in die richtige Form zu bringen verwende ich zwei Firefox Erweiterungen die über add-ons installiert werden kann.
Menu Editor - http://menueditor.mozdev.org/ Full Sreen+ - https://addons.mozilla.org/de/firefox/addon/fullscreen-1/?src=api