Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3546

Raspberry Pi OS • SetUp a kiosk mode in a Raspberry Pi 5

$
0
0
Hey guys! I hope y'all doing good
Im really in a pickel, I'm trying to use my raspberry as a kiosk but my currently solution is not working...
Im basically new to Linux so if someone could take a look and explain to me what im doing wrong, I would really appreciat it. Thank you!!
Description:
Im using Raspberry Pi OS Lite 64-bits
Im trying to use systemd to startup labwc and run a Chromium web page.
These are my two archives

etc/systemd/system/kiosk-labwc.service :

[Unit]
Description=Servicio Kiosk Wayland con LabWC
After=network-online.target
After=multi-user.target
Wants=network-online.target

[Service]
Type=simple
User=mark
Group=mark
WorkingDirectory=/home/mark
ExecStart=/usr/bin/labwc
Restart=always
RestartSec=5

#Configurar Wayland
#Esta variable de entorno es vital para Wayland. Le indica al compositor donde crear sockets y archivos temporales
#ncesarios para comunicarse con las aplicaciones
Environment=XDG_RUNTIME_DIR=/run/user/1000
Environment=WAYLAND_DISPLAY=wayland-1
ENvironment=XDG_SESSION_TYPE=wayland
#Configura la entrada estandar del servicio para que se vincule a una terminal virtual. Esto permite que el compositor Wayland tome >StandardInput=tty
TTYPath=/dev/tty7

[Install]
WantedBy=multi-user.target

And the scipt that labwc should run is located in: ~/.config/labwc/autostart :
GNU nano 7.2 /home/mark/.config/labwc/autostart
#!/bin/bash
sleep 2
chromium \
--ozone-platform=wayland \
--kiosk \
--start-maximize \
--disable-infobars \
--noerrdialogs \
--no-first-run \
https://time.is/New_York &

Statistics: Posted by jcmm2002 — Mon Oct 13, 2025 6:41 pm



Viewing all articles
Browse latest Browse all 3546

Trending Articles