Usually we talk about the Debian 12 operating system as an industrial server, in this guide we will talk about a workstation or home server as a Debian 12.
When installing the operating system, we installed the graphical shell; you can choose Gnome or KDE. The task has arisen to connect to it remotely from the Windows operating system, using the standard utility - Remote Desktop Connection.
1. Install the necessary services on Linux Debain 12
apt update
apt upgrade
apt install xrdp
apt install xfce4
1.1 Let's make the necessary settings
echo xfce4-session >~/.xsession
1.2 Restart the service
service xrdp restart
1.3 Let's allow access
In file
nano /etc/X11/Xwrapper.config
Let's change the line:
allowed_users=console
on the:
allowed_users=anybody
I installed xrdp on the server following your example, as a client I tried different options, the latest option is xfreerdp
[ERROR][com.freerdp.core] - freerdp_tcp_connect:freerdp_set_last_error_ex ERRCONNECT_CONNECT_FAILED
2) Try change default SSL certificate