Install rdesktop on Linux Desktop to Remotely Connect to Windows via RDP
Recently, I switched my office computer to the Deepin system. The QQ and WeChat applications running on Wine were extremely unstable and frequently crashed, so I decided to find an alternative solution. Remotely connecting to my home Windows machine (installed on PVE) is straightforward. While using software like Sunflower or TeamViewer is an option, these tools are often unstable and provide unsatisfactory display quality. The best solution is to use Windows' built-in RDP for remote desktop connections.

Allow Windows Remote Connections
Taking Windows 10 as an example, open Settings > System > Remote Desktop and enable Remote Desktop. (You must also allow port 3389 in the firewall; if you are unsure, you can temporarily disable the firewall.)

Additionally, you need to map a public port on your router. The default remote port for Windows is 3389.
Install rdesktop on Deepin
Theoretically, the installation method is the same for Deepin, Debian, and Ubuntu systems:
# Install rdesktop
sudo apt install rdesktop
Use rdesktop to Remotely Connect to Windows
# Remote connect to Windows
rdesktop -g 1920x1080 -a 24 192.168.0.31 -u admin -p password
The meanings of the parameters above are as follows:
-g: Specifies the resolution for the remote desktop. Here, I set it to1920x1080.-a: Sets the color depth. The default is 16; I set it to 24. Higher color depth provides better visual quality but requires higher network bandwidth.192.168.0.31: The remote target IP. If you are using a public port mapping via a router, enter your public domain name (or IP):port.-u: Specifies the username (the Windows username).-p: Specifies the password (the Windows password).
Troubleshooting Errors
If you encounter an error during connection:
ERROR: CredSSP: Initialize failed, do you have correct kerberos tgt initialized ? Failed to connect, CredSSP required by server.
Open Windows 10 Settings > System > Remote Desktop > Advanced Settings, and uncheck "Require computers to use Network Level Authentication to connect."

Conclusion
This article references the following content: