Eliminate Lag when Connecting to Ubuntu Server via xRDP with Remmina

Abstract: Resolve input lag in Ubuntu Server xRDP sessions by optimizing color depth, compression, and Remmina settings for smoother remote desktop performance.

Created: 2026-09-15 by

Eliminate lag in Ubuntu Server xRDP sessions by disabling graphical effects, optimizing network settings, and configuring xRDP to use lower color depths. This approach reduces bandwidth consumption and processing overhead, resulting in a smoother remote desktop experience when connecting via Remmina on Linux clients.

Installing and Configuring xRDP

Before addressing performance issues, ensure that xRDP is correctly installed and configured to support multiple simultaneous connections. Ubuntu Server does not include a graphical interface by default, so you must install the necessary components first. Open your terminal and update the package list to ensure you have the latest software versions.

sudo apt update
sudo apt install xrdp xfce4-session -y

The xfce4-session package provides a lightweight desktop environment that consumes fewer resources than GNOME or KDE, which is crucial for minimizing lag. After installation, start the xRDP service and enable it to launch at boot time. You should also add the xrdp user to the ssl-cert group to allow access to SSL certificates required for secure connections.

sudo systemctl enable xrdp
sudo systemctl start xrdp
sudo adduser xrdp ssl-cert

If you are using UFW (Uncomplicated Firewall), ensure that port 3389 is open to allow incoming RDP traffic. Without this configuration, your Remmina client will fail to connect entirely, let alone suffer from lag.

Optimizing xRDP Configuration for Performance

Lag often stems from high-bandwidth usage caused by rich graphics and high color depths. The primary configuration file for xRDP is located at /etc/xrdp/xrdp.ini. Editing this file allows you to enforce stricter compression and lower resolution standards that are sufficient for most administrative tasks.

Open the configuration file with a text editor such as nano or vim.

sudo nano /etc/xrdp/xrdp.ini

Locate the [Globals] section and modify the following parameters:

  • Color Depth: Change the color_depth from 32 to 16 or 8. Lower color depths significantly reduce the amount of data transmitted over the network. For example, setting color_depth=16 is often a sweet spot between quality and speed.
  • Bitmap Caching: Enable bitmap caching by setting bitmap_cache=yes. This allows the client to store frequently used images locally, reducing redundant transfers.
  • Compression: Ensure that compression=yes is set. This enables zlib compression for the RDP stream, which helps mitigate latency on slower connections.

Additionally, check the [Session] section to ensure that the session type matches your installed desktop environment. If you installed xfce4-session, ensure the session is set to xfce. Mismatched sessions can cause fallback mechanisms that introduce additional delay.

Tuning Remmina Client Settings

The client-side configuration in Remmina plays an equally important role in determining responsiveness. When creating or editing your connection profile, navigate to the Display and Advanced tabs to optimize how your local machine renders the remote session.

In the Display tab, adjust the screen resolution to match your physical monitor or choose a fixed lower resolution like 1024x768 if you are on a constrained network. Avoid using "Use host display" if it forces high-resolution scaling over a slow link. In the Advanced tab, select the Quality setting to "Low" or "Medium". This forces Remmina to prioritize speed over visual fidelity, dropping unnecessary graphical artifacts that contribute to input lag.

You should also disable features like "Share printer", "Share clipboard", and "Map local drives" if they are not strictly necessary. Each shared resource adds overhead to the RDP handshake and ongoing session maintenance. By stripping down the connection to essential video and input streams, you reduce the processing burden on both the server and the client.

Network and System-Level Optimizations

Beyond application-level tweaks, system-level adjustments can further stabilize your connection. On the Ubuntu Server, consider limiting the CPU frequency scaling if the server is under heavy load. Use tools like cpupower to set the governor to performance during active sessions, ensuring consistent response times.

If you are experiencing intermittent lag rather than constant slowness, check for packet loss using mtr or ping from your client to the server. High jitter or packet loss indicates a network infrastructure issue that no amount of xRDP tuning can fix. In such cases, consider using SSH tunneling to encapsulate the RDP traffic, which can sometimes bypass problematic network routing.

ssh -L 3390:localhost:3389 user@server_ip

Connect Remmina to localhost:3390 instead of the direct IP address. This method encrypts the traffic and can improve stability on untrusted networks, though it may add slight computational overhead due to encryption/decryption.

Maintaining Stability

Regularly monitor the server's resource usage with htop or top while connected. If CPU or memory usage spikes during idle periods, investigate background services that might be interfering with the xRDP process. Disabling unused services via systemctl disable can free up resources for the remote desktop session.

For persistent issues, review the xRDP logs located in /var/log/xrdp.log and /var/log/xrdp-sesman.log. These logs often contain warnings about failed authentication attempts or session timeouts that can hint at underlying configuration errors. Correcting these errors prevents session drops that manifest as perceived lag or disconnection frustration.

Frequently Asked Questions

Why is my xRDP connection still laggy after lowering color depth?

Lowering color depth addresses bandwidth but not necessarily processing latency. Check if your Ubuntu Server is running heavy background updates or antivirus scans that consume CPU cycles. Additionally, verify that your Remmina client has hardware acceleration enabled for rendering the remote display.

Can I use xRDP with GNOME instead of XFCE?

Yes, but GNOME is resource-intensive and often causes more lag on xRDP compared to lighter environments like XFCE or LXDE. If you must use GNOME, ensure you are using the latest version of xRDP and consider disabling desktop animations in the GNOME settings to reduce graphical overhead.

How do I troubleshoot black screens on xRDP?

A black screen usually indicates a mismatch between the session manager and the desktop environment. Ensure that ~/.xsessionrc contains the correct command to start your desktop (e.g., startxfce4). Also, verify that the xrdp user has proper permissions to access the X server socket.

Is SSH tunneling faster than direct RDP?

No, SSH tunneling adds encryption overhead which typically increases latency. However, it improves security and can sometimes bypass firewalls or NAT issues that cause connection instability. Use it only if direct RDP fails to connect reliably.

What happens if I increase the maximum allowed connections?

Increasing concurrent connections allows more users to log in simultaneously but multiplies the server's resource consumption. This can lead to increased lag for all users if the server lacks sufficient RAM or CPU power. Monitor system loads closely before raising this limit beyond the default.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More