Hello,
I’d like to have my pygame autostart at boot.
The pygame/python deps are all ok (already succeed to start it through xfce term).
But I’d like to avoid start xfce and work directly with X11.
So I seek for Autostart Options in config menu and and setup to 17 (custom script in foreground & autologin)
Added the following line :
xinit
which python3
‘/home/dietpi/Devel/battleship/game.py’
And I’d like to run into dietpi user.
Seems that /var/lib/dietpi/dietpi-autostart/custom.sh
was not executable (this is a bug?) so I chmoded +x it
I see that X11 should work in unprivileged user but can’t get it working.
I added tty group to dietpi user, and added g+rw to /dev/tty0
The error that I have is :
cannot open virtual console 2
Of course I can start it a root, but I’d like to avoid this solution if possible.
Thanks a lot
Required Information
-
DietPi version |
cat /boot/dietpi/.version
G_DIETPI_VERSION_CORE=8
G_DIETPI_VERSION_SUB=14
G_DIETPI_VERSION_RC=2
G_GITBRANCH=‘master’
G_GITOWNER=‘MichaIng’
G_LIVE_PATCH_STATUS[0]=‘not applicable’
G_LIVE_PATCH_STATUS[1]=‘applied’
G_LIVE_PATCH_STATUS[2]=‘applied’ -
Distro version |
echo $G_DISTRO_NAME $G_RASPBIAN
bullseye 0 -
Kernel version |
uname -a
Linux DietPi 5.15.84-v7+ #1613 SMP Thu Jan 5 11:59:48 GMT 2023 armv7l GNU/Linux -
SBC model |
echo $G_HW_MODEL_NAME
or (EG: RPi3)
RPi 2 Model B (armv7l) -
Power supply used | (EG: 5V 1A RAVpower)
enough -
SD card used | (EG: SanDisk ultra)
enough