By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service. The dark mode beta is finally here. Change your preferences any time. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information.

I am on a Windows7 machine and I'm trying to get firefox to open on the centOS machine, but be displayed on my current screen. When typing firefox in terminal, I am getting the following error:. I've looked over numerous pages and searched StackOverflow as well, but none have managed to help me in any way. Thank you in advance.

So, it turns out that X11 wasn't actually installed on the centOS. There didn't seem to be any indication anywhere of it not being installed. I did the following command and now firefox opens:. It just was unable to resolve localhost name In my case the issue was caused due to mismatch in.

Xauthority file. Regenerating the. Xauthorityfile from the user under which I am running the vncserver and resetting the password with a restart of the vnc service and dbus service fixed the issue for me.

Check it on putty or mobaxterm and don't check in remote desktop Manager software. Be careful for user that sudo in. Learn more. Error: cannot open display: localhost Asked 7 years, 7 months ago. Active 9 months ago. Viewed k times. When typing firefox in terminal, I am getting the following error: Error: cannot open display: localhost SaiyanGirl SaiyanGirl This question might be more suitable at superuser.

Besides, in Xming there is XLaunch utility, which allows to connect to remote server and launch an application without explicitly using PuTTY and such. Have you tried it? Does it works?Yes but how should I login it is a dedicated server with a hosting company?

As I say I am a novice at this so some help would be appreciated. Are you logging on using ssh -X. You need to use an X session to open GUI applications from the server. This assumes that the server's ssh server is configured to support X and that your client is Unix or that you have an Xserver installed to your client operating system. Does the error message have anything else to say? As carnish said ssh needs "X11 forwarding" ssh -X to work on a remote display through an ssh tunnel.

However this will be possibly really slow. You may want to try, if it's possible, to start a VNC server on the remote and connect to it from a vncviewer on the local machine either through ssh [using ssh -L If you do this you can start LO after you logged into the server and it will use its "virtual" display.

Hi all we are trying to do is use LibreOffice to convert Word and Excel files to pdfs when they are uploaded. Will this still be slow as we are actual not using it remotely?

error failed to open display

I am really confused about all this. Apparently this works but not for us. Suppress Java errors when installing from an msi [closed]. Installation Failure - New User [closed]. How are Help packs installed and how are they used? Error in fetching Git repository [closed]. Why has the profile directory location changed since LibreOffice 3. If only LO Writer table could allow copy paste of formula? How do I get document information from the command line? First time here? Check out the FAQ!

Hi there! Question Tools Follow. Related questions Suppress Java errors when installing from an msi [closed] Installation Failure - New User [closed] How are Help packs installed and how are they used? Powered by Askbot version 0. Please note: AskLibO requires javascript to work properly, please enable javascript in your browser, here is how. Ask Your Question.By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service.

Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up. Once this runs, it asks for my password for the account, and then displays this error:. I'm trying to get a GUI display running on it, I've entered the command after starting the server vncviewer -via user ip localhost:1 but it resulted with the same error:. Edit 2: After installing the new packages and running 'startx', it ran for a while.

I then recieved a few errors:. Closing log file. It looks like it created a log file of the error. Forgot to mention: After this process errored, Putty encountered a fatal error, causing a connection abort. Edit 3: Running the command 'init 5' seems to break my server. Had a 'connection error' after running it. Cannot connect back, going to have to get the admins to restart it from their side. In the first line, "6:" means that the vnc server daemon will listen on port [6] and will log into the specified user's desktop.

It seems like you installed only the Desktop packages, as far as I know you will need these as well:. Sign up to join this community. The best answers are voted up and rise to the top. Home Questions Tags Users Unanswered.

Asked 4 years, 9 months ago. Active 3 years, 5 months ago. Viewed 29k times. Once this runs, it asks for my password for the account, and then displays this error: vncviewer: unable to open display "" I've installed GNOME display as stated in the guide, by using the command: yum groupinstall Desktop Any ideas?

Edit: I'm on the CentOS server in question, which looks like terminal at the moment. George Foster. George Foster George Foster 11 1 1 gold badge 1 1 silver badge 3 3 bronze badges. It sounds like your server crashed Restarted it - still no connection.

error failed to open display

I've posted a ticket to the server providers, but I wouldn't bank on it getting sorted today. I'm back on the server now. Any ideas about what happened, or why it threw those errors? No ideaGo to Solution. Turn on suggestions. Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

error failed to open display

Showing results for. Search instead for. Did you mean:. Contact Email us Tell us what you think. Log In. New Discussion. Regular Advisor. Jagadesh Solved! All forum topics Previous Topic Next Topic. Valued Contributor.

Thanks for the response. I also have cygwin application installed. After issuing startx from the cygwin application i will get a X icon at the bottom of the task window. The X server appears as an 'X' icon in the Windows system tray on your taskbar. Let me know how to rectify the same. Honored Contributor. This is known as a "display server" and is probably your PC.GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community. Already on GitHub? Sign in to your account.

xhost+ : How to Fix “Cannot Open Display” Error While Launching GUI on Remote Server

This does not work for me. I just get the standard error:. What X server are you using? If it's Cygwin's, you will need to run it with -listen tcp as TCP connections are disabled by default.

I am using the windows Xming. I get it to work and display things and it works for a bit, but it then freezes up. Aneurin Do you know why emacs cannot be resized? For other gui apps like galculator, if I resize the window, the interface will be resized. But for emacs, if I resize the border of the window, there will be a blank space between the original emacs and the new border, the content of emacs will not be resized Ooh, that's farther than I get.

When I run emacsI get a window that looks like your screen shot above, except with a blank white box where you have the main buffer and the minibuffer. The process appears to have gone into an infinite loop with the following strace :. Ditto the blank emacs window, I think this might just be emacs not getting along with Xming though. I imagine that a native X Server might be a big as, but please MS, can has?

Maybe you need to reconfigure the port used by xrdp to avoid collision with the remote desktop server of Windows. For anyone who stumbled upon xarthurx 's problem, emacs 24 and later resizes properly emacs 23 doesn't.How do I fix this? I get similar message when I try to open any GUI application. Execute the following command to disable the access control, by which you can allow clients to connect from any host. After opening ssh connection to the remote host as explained above, you can open any GUI application which will open it without any issue.

Unless the network environment is entirely controlled, xhost is a very bad idea [1]. Prefer xauth [2] or other mechanisms. My understanding. Really good information. It worked for me.

[FIX] Linux OS: Cannot open display GUI for Wayland

Suppose no browsers are installed on my host and if i want to open browser which is installed on other host, how can i do this. Try again? Also encountered this error and finally came up with a fix that works for Solaris The listener was not set to listen.

After setting it to true, it works just fine. Notify me of followup comments via e-mail. Next post: Geeky Wrap-up: Week of Jun 21, All rights reserved Terms of Service. Jeff June 25,am.

Slappy June 25,pm. Pavi October 17,am. Rashid December 6,am. Peter June 29,am. Thank you for the fix, this has been annoying me for a while now! Doug Somers March 18,pm. Shah June 17,pm.

Ramyabandaraherath March 4,pm. Slappy — best solution, thanks!By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service.

It only takes a minute to sign up. The server config permits x11 forwarding. Testing with a new sshd instance in debug I see this when connecting. The only relevant part of debug I could tell:. The user is a standard user with sudo access and I otherwise have no issue everything is cli works fine.

Using ssh -v while connecting does not give any more useful feedback when the error shows up.

Subscribe to RSS

If I missed anything I can try, let me know. I'm stumped. Is this private information I should be concerned about?

Not really sure what I'm posting atm. Now I get a additional message. I also rebooted to see if that would assist. Xauthority file and am noticing that it is not being automatically created. Xauthority file. This behaviour does not happen on the remotehost.

Permissions are fine to create it however. Xauthority file is not created, this can mean that, though X11 forwarding is taken into account, xauth is not run. One reason could be that it is not in the path I had this problem under Mac OS X, but this would be strange under Linux. For instance, I have the following:. But you can use just xauth or the full pathname to xauth just in case Sign up to join this community. The best answers are voted up and rise to the top. Home Questions Tags Users Unanswered.

Forwarding X11 not working - Error: Can't open display: localhost Asked 5 years, 3 months ago. Active 2 years, 2 months ago. Viewed 41k times.

I keep getting this error. Error: Can't open display: localhost Miati Miati 1, 2 2 gold badges 13 13 silver badges 22 22 bronze badges. Check on the remote machine whether netstat -l grep outputs lines saying that there are listening sockets on localhost I'm not sure, but ip6-localhost seems to be wrong. This isn't a problem for the network, but this may yield authentication failures. Give also xauth list output on the remote machine. Active Oldest Votes.

Subscribe to RSS

Be careful not to do any mistake. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password.