Software⏱️ 4 min read📅 2026-06-19

How to Fix: Xorg error coming from running xpra

Xorg error fix for Ubuntu 18.04 with xpra

Quick Answer: Install the xserver-xorg-video-dummy package to resolve the Xorg display number issue.

The error 'xorg did not provide a display number using -displayfd' is encountered when running xpra on Ubuntu 18.04, affecting users who are trying to run X applications in a browser. This issue can be frustrating as it prevents the user from successfully connecting to their remote desktop. In this troubleshooting guide, we will walk through the steps to resolve this error.

The primary goal of this guide is to help users identify and fix the root cause of the 'xorg did not provide a display number using -displayfd' error, which is related to Xorg's display configuration. By following these steps, users should be able to resolve the issue and successfully run xpra.

🛑 Root Causes of the Error

  • The first main reason why this error happens is due to an invalid or missing display configuration in Xorg. This can occur when the system proxy settings are not properly configured or when the '/run/xpra/system' directory does not exist. To resolve this, we need to ensure that the system proxy settings are correct and the '/run/xpra/system' directory is present.
  • An alternative reason for this error could be related to an incorrect or missing Xorg configuration file. In some cases, the '-displayfd' option may not be correctly set in the Xorg configuration file. To resolve this, we need to verify that the Xorg configuration file is correct and update the '-displayfd' option if necessary.

🛠️ Step-by-Step Verified Fixes

Enabling Dummy Driver

  1. Step 1: To enable the dummy driver, run the command `sudo apt-get install xserver-xorg-video-dummy` as mentioned in the error message. This will install the dummy driver, which is a placeholder for Xorg's display configuration.
  2. Step 2: Once the dummy driver is installed, we need to update the Xorg configuration file to use the '-displayfd' option correctly. Open the Xorg configuration file in a text editor and add the following line at the end of the file: `-displayfd 10`. This will enable the dummy driver and allow xpra to connect to the remote desktop.
  3. Step 3: After updating the Xorg configuration file, restart the X server by running the command `sudo service lightdm restart` (or `sudo systemctl restart lightdm` on newer systems). This will apply the changes and allow xpra to connect to the remote desktop.

Verifying System Proxy Settings

  1. Step 1: To verify that the system proxy settings are correct, run the command `sudo apt-get install xproxy` as mentioned in the error message. This will install the xproxy package, which provides a way to configure the system proxy settings.
  2. Step 2: Once the xproxy package is installed, we need to edit the `/etc/xproxy.conf` file and set the 'proxy' option to 'none'. This will disable any proxy settings that may be interfering with the connection. Save the changes and restart the X server by running the command `sudo service lightdm restart` (or `sudo systemctl restart lightdm` on newer systems).

💡 Conclusion

By following these steps, users should be able to resolve the 'xorg did not provide a display number using -displayfd' error and successfully run xpra on Ubuntu 18.04. Remember to verify that the system proxy settings are correct and update the Xorg configuration file as necessary.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions