Can´t get my Raspberry Pi to autostart Chromium
- /RaspberryPi
- Corporate
- Posts: 2449
- Joined: Wed Jun 05, 2019 1:29 am
Can´t get my Raspberry Pi to autostart Chromium
Hi,
I have been trying to get my Raspberry Pi to autostart fullscreen to a webpage for a couple of days now but I don´t seem to get it correct, nothing happens.
From SSH console:
niklas@solar:~ $ sudo systemctl status kiosk.service
○ kiosk.service - Chromium Kiosk
Loaded: loaded (/lib/systemd/system/kiosk.service; enabled; preset: enabled)
Active: inactive (dead) since Sun 2023-11-26 13:44:17 CET; 3s ago
Duration: 830ms
Process: 2176 ExecStart=/bin/bash /home/niklas/chrome.sh (code=exited, status=0/SUCCESS)
Main PID: 2176 (code=exited, status=0/SUCCESS)
CPU: 25ms
Nov 26 13:44:17 solar systemd[1]: Started kiosk.service - Chromium Kiosk.
Nov 26 13:44:17 solar systemd[1]: kiosk.service: Deactivated successfully.
It looks like it just stops the service, how to fix?
in the kiosk.service:
[Unit]
Description=Chromium Kiosk
[url=https://wants=graphical.target/]Wants=graphical.target[/url]
[url=https://after=graphical.target/]After=graphical.target[/url]
[Service]
Environment=DISPLAY=:0.0
Environment=XAUTHORITY=/home/niklas/.Xauthority
Type=simple
ExecStart=/bin/bash /home/niklas/chrome.sh
Restart=on-abort
User=niklas
Group=sudo
[Install]
[url=https://wantedby=graphical.target/]WantedBy=graphical.target[/url]
in the chrome file
#!usr/bin/env bash
xset s noblank
xset s off
unclutter -idle 0.5 -root &
/usr/bin/chromium-browser --noerrdialogs --disable-infobars --kioskhttps://mywebpage &
submitted by /u/NickTheJellyfish
[link] [comments]
Source: https://www.reddit.com/r/raspberry_pi/c ... _chromium/
/RaspberryPi