Problem: It's difficult for a user to override/customize/extend instance configuration
(Title was: Modify instance setup code to provide VNC session for XFCE)
Hello, I have modified the base Ubuntu 22.04 image and installed XFCE4. To make XFCE4 as the default windowing environment in graphical desktop, I edited the /etc/vnc/xstartup and change the session from gnome-session to startxfce4. I can reboot the system, reconnect from exosphere and find XFCE4 as my default environment, so these changes stay persistent. So far everything worked as intended. I created image of this system at this point to use as our base image.
The new instances booted of this image also boots into XFCE4 as intended, and it is great. However, if I restart that specific instance, and reconnect it, I find the /etc/vnc/xstartup was overwritten and defaulted back to gnome-session. I find this really baffling, and also quite frustrating. We need a consistent solution that will preserve the customizations we did to the base image. I appreciate any suggestions.
If you would like to try for yourself, you can try with antsthings-xfce-image in my allocation.