Call Us! 1-800-383-5193
Call Us! 1-800-383-5193

Need Help?

Our experts will login to your server within 30 minutes to fix urgent issues.

We will keep your servers stable, secure and fast at all times for one fixed price.

Rdesktop failed to open display – Quick Fix

Do you need to work on Windows Server when you are much of a Linux guy ??

The rdesktop utility is useful to configure services in a windows server from a Linux system. However, it often fails with error “Rdesktop failed to open display“.

We troubleshoot rdesktop errors as a part of our Service Management Services.

Today, let’s discuss the common rdesktop error “failed to open display”. And we’ll also see how our Support Engineers fixes them.

 

What is rdesktop ?

Let’s begin by checking Rdesktop utility as such.

Rdesktop is an open-source software using RDP – Remote Desktop Protocol. It enables as well as connects with a windows system from a Linux system. Simply, while sitting in front of a Linux we can access the windows system. We can access as if we are sitting in front of the windows system.

The basic command to connect to a remote Windows server would be:

rdesktop -uUSER -pPASS host:port

Here, we need to use the Windows server valid username and password in the USER and PASS fields.

Sometimes everything doesn’t go well and we may encounter errors while connecting to the remote desktop.

ERROR: Failed to open display:

 

Causes and fixes for error rdesktop failed to open display

We’ll now take a look at the possible causes which gives you connection errors in a Windows server.

 

1. Missing Windows updates

Missing Windows updates can be one of the common reason for Rdesktop connection failure.

Windows server requires periodic updates to maintain security. The connection may fail to open display due to missing updates at the server side. It will fail to render the display.

When there are Rdesktop connection errors, we primarily check the status of the server updates. Our Support Engineers perform necessary updates on the server. Usually, the server might need a reboot after updates to make changes effective.

As part of our Server Management Services, we do regular updates on the server to avoid these Rdesktop failures too.

 

2. Missing Display variable

Similalrly, another reason for “Rdesktop failed to open display” can be missing display variable.

Let’s start by explaining the display variable. It is nothing but the file that says the system where to display the GUI.

Mostly we encounter this error while RDP to a windows server from within a Linux server. Simply let’s say we are opening a GUI Application from within the Linux server.

In such cases, as the Linux server itself doesn’t have a GUI the below error message shows up :

Gtk-WARNING **: cannot open display:

The workaround first is to enable “X11 forwarding” while doing SSH to the Linux server with the below command :

$ ssh username@hostname -X

Now as the Server itself has no GUI, we need to set the DISPLAY variable to the local workstation’s IP. Simply, the system where we want to see the display.

Therefore, we run the below command :

$ export DISPLAY='IP:0.0'

Here the IP is our local workstation’s IP address.

We also enable RDP port 3389 in Firewall and we kill other running rdesktop sessions.

Now it will open a GUI interface as below :

rdesktop failed to open display.

[Having trouble in enabling Rdesktop connection? – We’ll fix it for you.]

 

Conclusion

In short, rdesktop is a powerful application if you are working on linux and you need to troubleshoot windows system. Today, we saw how our Support Engineers fixes the errors related to rdesktop failed to open display.


PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

Submit a Comment

Your email address will not be published. Required fields are marked *

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF