Recently, I installed AnyDesk on a gnome-based Debian machine, and when I tried to connect this machine with another AnyDesk installation, I got the error message “Remote display server is not supported (e.g. Wayland)”.
The above error restricts me from accessing my remote desk, which we going to solve today.
Why did the error occur?
What I found is that X11 is capable of transmitting displays over the network, which is not possible yet with the Wayland window system, which is the reason for the above error.
Is Wayland network transparent / does it support remote rendering?
No, that is outside the scope of Wayland. To support remote rendering, you need to define a rendering API, which is something I’ve been very careful to avoid doing. The reason Wayland is so simple and feasible at all is that I’m sidestepping this big task and pushing it to the clients.
This doesn’t mean that remote rendering won’t be possible with Wayland, it just means that you will have to put a remote rendering server on top of Wayland.wayland.freedekstop.org
For those who are not aware of Wayland and X11, then I must give you a short introduction, and if you are really interested in-depth in this topic, then you are too smart to search on the internet.
Wayland and X11 are technologies that allow you to take advantage of graphical interfaces, without them, you would be left with command-line interfaces
Check this article to find the difference between X11 and Wayland.
Know the difference between: ifconfig vs ip: Difference and Comparing Network Configuration
Switch from Wayland Window System to X11
There are multiple ways to switch from the Wayland window system to the X11 window system, such as follows:
- Easily switch from Wayland to the X11 Window system from the lockscreen.
- Modify /etc/gdm3/daemon.conf or /etc/gdm3/custom.conf to permanently disable Wayland.
Easily switch from Wayland to X11 Window system from lockscreen
This method is good for those who don’t have sudo access to modify /etc/gdm3/daemon.conf or /etc/gdm3/custom.conf, or else you just want to temporarily switch from Wayland to an X11 window system for time being.
And personally, I found this method pretty convenient to use, so let me show you how you can change the window system from the lock screen.
Please read this guide first, then perform the subsequent steps.
First, you need to log out of your system by running the below code or you can follow the conventional method to get logged out.
loginctl terminate-user $(users)
After that press enter to login and you will find the gear icon on the right bottom, click on that you will find different options to choose from the list.
By default, Ubuntu users are running on X11, but if somehow it is on Ubuntu on Wayland, then change it to “Ubuntu”, and Debian-based users need to select “Gnome on Xorg”.
After that, login back in and go to Settings->About to check for new changes. In the Windowing System section, you will find X11 in the case of Ubuntu and Debian-based users.
Now you can try to access AnyDesk from a remote PC or perform the task that displayed the previous error.
Modify /etc/gdm3/daemon.conf or /etc/gdm3/custom.conf to permanently disable Wayland
The above method was pretty straightforward. You just need to click on the gear button to switch from Wayland to X11 and vice versa. If you want to permanently disable the Wayland window system and use X11 permanently, then you should follow the below method.
Well, you need to modify /etc/gdm3/daemon.conf or /etc/gdm3/custom.conf to disable the Wayland window system. For that reason, you need to have sudo privileges.
I found Ubuntu use /etc/gdm3/custom.conf and Debian 11 use /etc/gdm3/daemon.conf so first check which file is available to your system.
ls -l /etc/gdm3/
Accordingly to the above output, you can run the below command with sudo:
sudo nano /etc/gdm3/daemon.conf
sudo nano /etc/gdm3/custom.conf
In the above file, you need to search for “WaylandEnable=false” which is commented out by default, and once you find out the line, you need to uncomment it to enable X11 and save the file.
Then restart your system to reflect the changes.
To verify the changes, you can go to the About section of your Gnome settings or else run the application that had the compatibility issues.
That’s all to enable X11 and disable the Wayland Window System.
In the following article, you learned how to temporarily switch from Wayland to X11 and vice versa, along with the permanent steps to enable X11 on Gnome-based Linux distributions.
Check this article: How to find UUID of Disk Storage with the simple command
A man with a tech effusive who has explored some of the amazing technology stuff and is exploring more. While moving towards, I had a chance to work on Android development, Linux, AWS, and DevOps with several open-source tools.