I just installed Rocky 8 using the Server with GUI profile, which installed Gnome and its dependencies.
I have also installed mate-desktop and its dependencies from EPEL.
This machine is only accessed via ssh and vnc. I would like to make the mate-desktop the default for all users in their vnc sessions. If this isn’t possible, what needs to go in the ~/.vnc/xstartup in order to start mate-desktop instead of gnome in VNC sessions?
For the ~/.vnc/xstartup method, you’ll most likely want a command like mate-session or dbus-launch mate-session. (I do something similar for some systems with XFCE-based remote desktops over xrdp. These systems don’t run any “local” GUI.)
Do you need the Gnome at all? If not, then you could remove it.
Default for GDM were discussed in Configure default session for GDM but does VNC use GDM?
I got this working. I found that installing “mate-desktop” and its dependencies was insufficient, I had to firstly install “mate-control-center” and “mate-session-manager”. This allowed the mate-desktop to start (I already had the code in my .vnc/xtartup file), but without a window manager, so then I installed “marco”.
Finally, it appeared that some useful mate packages were not installed, so I took a maximal approach: