First, let's admit that running Linux games on Ubuntu 24.04 (GNOME) using Proxmox VM and Remote Desktop Protocol (RDP) to access a Windows PC can be quite a complex setup. The xRDP server is installed to enable RDP access to the Ubuntu system. In this article, we will discuss the common issues and solutions when RDP periodically stops working on Ubuntu 24.04.
Understanding the Problem
When using RDP to access a Windows PC from Ubuntu 24.04, you might encounter occasional disconnections or freezing issues. These problems can be frustrating, especially when you're in the middle of a game or an important task. The root cause of these issues can be various, including network connectivity problems, software incompatibilities, or configuration issues.
Checking Network Connectivity
The first step in troubleshooting RDP disconnections is to check the network connectivity between the Ubuntu system and the Windows PC. You can do this by pinging the Windows PC from the Ubuntu terminal:
sudo ping
If the ping command fails, you might have a network connectivity issue. In this case, you should check your firewall settings, network interfaces, and routing tables.
Updating Software
Another common cause of RDP disconnections is software incompatibilities. Ensure that both the Ubuntu system and the Windows PC have the latest software updates installed:
Updating Ubuntu
Run the following commands in the Ubuntu terminal:
sudo apt update
sudo apt upgrade
Updating Windows
On the Windows PC, you can check for updates by going to Settings > Windows Update > Check for updates.
Configuring xRDP
If the problem persists, you might need to configure the xRDP server on Ubuntu. This can include setting up encryption, changing the RDP port, or adjusting the session settings:
sudo nano /etc/xrdp/startwm.sh
Add the following lines at the end of the file:
# Start Xorg with encryption
XSTART=/usr/bin/Xorg -auth /var/run/gdm/auth/auth.socket -nolisten tcp -nolisten unix &
# Start Xorg with no encryption
XSTART=/usr/bin/Xorg -auth /var/run/gdm/auth/auth.socket -nolisten tcp -nolisten unix :0 -nosplash &
X11_SESSION_MANAGER=gdm:/org/gnome/SessionManager:/org/gnome/SessionManager/Desktop:/org/gnome/SessionManager/RequiresActive=false
Save and exit the file.
Adjusting RDP Client Settings
Sometimes, the issue might be with the RDP client settings. You can try adjusting the settings in the RDP client application, such as increasing the color depth or adjusting the resolution:
Adjusting RDP Client Settings in rdesktop
Open the rdesktop configuration file:
sudo nano ~/.rdp/
Add the following lines at the end of the file:
full address: :
color depth: 32
Save and exit the file.
- Check network connectivity between Ubuntu and Windows PC using ping command.
- Update software on both Ubuntu and Windows PC.
- Configure xRDP server settings.
- Adjust RDP client settings.
These steps should help you troubleshoot and resolve RDP disconnections on Ubuntu 24.04. If you continue to experience issues, you may need to consult additional resources: