Starting with version 10, Red Hat Enterprise Linux and RHEL-based distributions no longer include a traditional X server. Consequently, the /usr/share/xsessions/ files required by ThinLinc are not available through the standard package repositories. This will lead to the error “No X11 desktop environments installed” being shown during session startup (on older ThinLinc versions, the error “No executable profiles could be found” is instead shown).
To work around this issue, you must manually create the entries under /usr/share/xsessions. Simply install the desktop environment in question and add the corresponding /usr/share/xsessions/ file, and you will be good to go.
As of writing, GNOME is the only desktop environment that is available under RHEL10 that works with ThinLinc’s X server. Going forward, the availability is likely to improve as more and more desktop environments are added to EPEL.
GNOME and GNOME Classic
/usr/share/xsessions/gnome.desktop:
[Desktop Entry]
Name=GNOME
Comment=This session logs you into GNOME
Exec=/usr/bin/gnome-session
TryExec=/usr/bin/gnome-session
Type=Application
DesktopNames=GNOME
X-GDM-SessionRegisters=true
X-GDM-CanRunHeadless=true
/usr/share/xsessions/gnome-classic.desktop:
[Desktop Entry]
Name=GNOME Classic
Comment=This session logs you into GNOME Classic
Exec=env GNOME_SHELL_SESSION_MODE=classic gnome-session
TryExec=gnome-session
Type=Application
DesktopNames=GNOME-Classic;GNOME;
X-GDM-SessionRegisters=true
X-GDM-CanRunHeadless=true
Wayland is quite fundamentally different to X11, so you’re right, it’s no small task. We are actively working on it though. It’s likely we will post updates here on the community forum, so stay tuned. Otherwise, the relevant entry in our Bugzilla is 4748.
I have a CachyOS (Arch based) installation that is using the Cosmic DE which is using Wayland. I have installed XWayland but I was still getting told that there is no X11 environment which led me to this post. I am wondering is you have any guidance for getting ThinLinc server configured for this Cosmic Wayland environment.
The command I ran to install XWayland sudo pacman -S xorg-xwayland
and I created the /usr/share/xsessions/ directory and then created a file named cosmic.desktopwith the content shown below
[Desktop Entry] Name=COSMIC Comment=This session logs you into Cosmic Exec=/usr/bin/cosmic-session TryExec=/usr/bin/cosmic-session Type=Application DesktopNames=COSMIC X-GDM-SessionRegisters=true X-GDM-CanRunHeadless=true
This made it possible to connect to the the CachyOS / Cosmic system but the desktop is not resizing like it normally does. See screenshot.
Is it possible to fix this? If so, how do I do that?
UPDATE: While I did get ThinLinc to kind of work as far as getting logged in there were a couple of gotcha’s that make it a no go unless there are fixes.
After getting logged I was mostly unable to type in the remote system
After rebooting I was unable to login to the Cosmic desktop on the laptop itself. The login process would accept my password and then flip quickly to an error screen and then put me back at a logon prompt.Yeah for auto snapper btrfs snapshsots which made it possible for me to quickly revert to a previous working state
I’m somewhat surprised you managed to get COSMIC running at all, since from what I can tell it is Wayland-only. You would need to install an X11-based desktop environment in order for it to work with ThinLinc.
It depends a little bit on your distribution, as to which DEs still have X11 support. But two DEs which are popular for use with ThinLinc are XFCE and MATE. It may be worth giving these a go.