Terminal

Setup

GRUB_CMDLINE_LINUX_DEFAULT="fbcon=rotate:1"
# you really have to configure the below, otherwise
# LightDM auto-login will fail...
autologin-user=public

# put any session from /usr/share/xsessions (strip .desktop from the file names there)
# here, if you want to run any other session than x-session-manager
 autologin-session=e2od
[Seat:*]
greeter-session=lightdm-autologin-greeter
[Desktop Entry]
Name=Kiosk Browser Session
Comment=Kiosk Browser
Exec=/usr/share/xsessions/kiosk.sh
TryExec=/usr/bin/chromium-browser
Type=Application
#!/usr/bin/env bash
# place this file in
# /usr/share/xsessions/kiosk.sh
# and make it executable

# switch off power management and screen saver
xset -dpms
xset s off
xrandr -o right
xinput set-prop "10" --type=float "Coordinate Transformation Matrix" 0 1 0 -1 0 1 0 0 1
xinput set-prop "11" --type=float "Coordinate Transformation Matrix" 0 1 0 -1 0 1 0 0 1

# detect screen size
#SIZE=`xrandr | awk '/\*\+/ {print $1}' | sed 's/x/,/' `
SLEEPTIME="0.2s"
STARTURL="http://example.com"

# restart browser if stopped
while true; do 

chromium-browser --incognito --no-first-run --no-message-box \
                 --noerrdialogs --disable-translate --default-browser \
                 --start-maximized --window-position=0,0 --window-size=1200,1920 \
                 --no-default-browser-check --kiosk $STARTURL

sleep $SLEEPTIME;
done

sketching

toggle display


Revision #1
Created 17 April 2024 09:09:03 by Thomas Lüdecke
Updated 6 June 2024 08:44:06 by Thomas Lüdecke