I have installed the Gnome Desktop using this guide https://dietpi.com/blog/?p=1714
apt install task-gnome-desktop
dietpi-software install 6
dietpi-autostart 16
This works fine and automatically boots to the desktop which is great. The reason for Gnome is it is an RPI 4 Touchscreen with CM4 module and Gnome has built in virtual keyboard etc
I would like to also automatically start into chromium app or kiosk mode as well as the desktop, I still need the user to access the desktop etc chromium will just be displaying a Node-Red app etc
If I change and use the dietpi-autostart to start chromium with localhost:1880 it works… but I can no longer get to the desktop or anything, it doesn’t even start.
So I tried to follow a few guides to autostart chromium as seen below, the use a script and custom service:
https://pimylifeup.com/raspberry-pi-kiosk/
I keep getting errors related to X server etc… I can’t even start chromium from the terminal.
/usr/bin/chromium-desktop
I get these errors when trying to start chromium from the terminal
[3403:3403:0429/225129.693541:ERROR:ozone_platform_x11.cc(238)] Missing X server or $DISPLAY
[3403:3403:0429/225129.693720:ERROR:env.cc(255)] The platform failed to initialize. Exiting.
This is the complete error when trying to run the script from the tutorial
dietpi@fuxaHMI:~/Autostart$ sudo bash kiosk.sh
xset: unable to open display ""
xset: unable to open display ""
xset: unable to open display ""
unclutter: could not open display
sed: can't read /home/root/.config/chromium/Default/Preferences: No such file or directory
sed: can't read /home/root/.config/chromium/Default/Preferences: No such file or directory
[4737:4737:0429/231343.183413:ERROR:ozone_platform_x11.cc(238)] Missing X server or $DISPLAY
[4737:4737:0429/231343.183580:ERROR:env.cc(255)] The platform failed to initialize. Exiting.
I have spent hours trying to google and search forums etc but no luck