This tutorial will help you set up a small footprint (memory and storage) basic GUI solution.
The OS I chose to do this on is Debian 11.
su
apt update
apt install icewm xinit alsa-utils
Note: alsa-utils
is optional, but without it, you will have no sound.
exit
nano ~/.bashrc
and paste:
if [[ -z $DISPLAY ]] && [[ "$(tty)" = "/dev/tty1" ]]; then
exec startx
fi
systemctl reboot
Resources: