In a previous tutorial, I demonstrated how to set up a VNC server to establish remote access to a GNU/Linux system. You can find that brilliant guide here. However, with the increasing adoption of Wayland, and the growing complexity of VNC support on it, (see this article: Wayland FAQ), we will explore an alternative solution. In this article, we will look at how to set up an RDP server, which is the native solution for remote desktop access when using GNOME on the latest version of Debian.
⚠️ Please note this limitation: a remote connection can only be established if a session is open. This means we cannot connect to the GDM (GNOME Display Manager).⚠️
With GNOME, we have two ways of enabling screen sharing: graphically or via CLI. We will look at both methods.
It can be useful to enable the remote desktop from CLI. Indeed, if we only have a ssh access to the machine we will be able to enable it. All the configuration will be done with the grdctl tool.
user@debian:~$ grdctl status
RDP:
Status: disabled
TLS certificate: /home/user/.local/share/gnome-remote-desktop/rdp-tls.crt
TLS key: /home/user/.local/share/gnome-remote-desktop/rdp-tls.key
View-only: yes
Username: (empty)
Password: (empty)
user@debian:~$ grdctl rdp set-credentials user 'stdP@$$!'
user@debian:~$ grdctl rdp enable
user@debian:~$ grdctl rdp disable-view-only
user@debian:~$ grdctl rdp disable
We need to install an RDP client such as FreeRDP. Once installed, we can proceed to connect to the server.
root@host:~# apt install freerdp2-wayland
std@host:~$ wlfreerdp /v:192.168.1.200 /u:"user" /p:'stdP@$$!' /w:1900 /h:1280 /cert:ignore
Contact :