Could Not Open Display Error
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn
Runtime Error Could Not Open Display
more about hiring developers or posting ads with us Unix & Linux Questions Tags Users could not open display 0 Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like
Could Not Open Display Preferences Pane
operating systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top X client forwarded over gtkwarning could not open display SSH “cannot open display: localhost:11.0” up vote 13 down vote favorite 2 I have enabled X forwarding on remote machine where SSH server is running: # grep -i forward /etc/ssh/sshd_config X11Forwarding yes # On local machine, I have started SSH client with -X flag which instructs the SSH server, running on remote machine, to set up a X-server proxy. In addition, it creates the $DISPLAY variable which points to this proxy and calls the xauth to install a cannot open display ubuntu proxy key which authenticates to this X-server proxy on remote machine: # echo "$DISPLAY" localhost:11.0 # xauth list | grep 11 A58/unix:11 MIT-MAGIC-COOKIE-1 39324086672d1ae35e373476c3891a77 # However, X clients on remote machine do not start properly: # wireshark (wireshark:10083): Gtk-WARNING **: cannot open display: localhost:11.0 # xterm Warning: This program is an suid-root program or is being run by the root user. The full text of the error or warning message cannot be safely formatted in this environment. You may get a more descriptive message by running the program as a non-root user or by removing the suid bit on the executable. xterm: Xt error: Can't open display: %s # X forwarding doesn't use xhost so at least this can be excluded. I tried to find some useful log entries both on machine where SSH server is running and machine where SSH client is running with find /var/log/ -mmin -5 -type f command, but this did not give any hints. SSH server version is OpenSSH_5.9p1 and SSH client version is OpenSSH_5.2p1. Output of /tmp/.X11-unix/ directory on remote machine can be seen below: # ls -la /tmp/.X11-unix/ total 0 drwxrwxrwt 2 root root 40 Dec 9 15:44 . drwxrwxrwt 4 root root 80 Jan 13 09:17 .. # As seen above, there are no Unix domain sockets there. Output of strace xterm is following: # strace xterm execve("/usr/bin/xterm", ["xterm"], [/* 16 vars */])
a remote server, I'm getting the "cannot open display:" error, as shown below. How do I fix this? For example, while launching
Error Can't Open Display Linux
the gedit on remote server, I got the following message. (gedit:3658): Gtk-WARNING error can't open display localhost **: cannot open display: I get similar message when I try to open any GUI application. For example, launching
Error Can't Open Display Xclock
Oracle Installer on remote server also gives the "cannot open display" error. Answer: You can fix the "cannot open display" error by following the xhost procedure mentioned in this article. 1. http://unix.stackexchange.com/questions/108679/x-client-forwarded-over-ssh-cannot-open-display-localhost11-0/109322 Allow clients to connect from any host using xhost+ Execute the following command to disable the access control, by which you can allow clients to connect from any host. $ xhost + access control disabled, clients can connect from any host 2. Enable X11 forwarding While doing ssh use the option -X to enable X11 forwarding. $ ssh username@hostname -X Enable trusted X11 http://www.thegeekstuff.com/2010/06/xhost-cannot-open-display/ forwarding, by using the -Y option, $ ssh username@hostname -Y 3. Open GUI applications in that 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. If you still get the "cannot open display" error, set the DISPLAY variable as shown below. $ export DISPLAY='IP:0.0' Note: IP is the local workstation's IP where you want the GUI application to be displayed. Tweet >Add your comment If you enjoyed this article, you might also like.. 50 Linux Sysadmin Tutorials 50 Most Frequently Used Linux Commands (With Examples) Top 25 Best Linux Performance Monitoring and Debugging Tools Mommy, I found it! – 15 Practical Linux Find Command Examples Linux 101 Hacks 2nd Edition eBook Awk Introduction – 7 Awk Print Examples Advanced Sed Substitution Examples 8 Essential Vim Editor Navigation Fundamentals 25 Most Frequently Used Linux IPTables Rules Examples Turbocharge PuTTY with 12 Powerful Add-Ons Tagged as: export DISPLAY, xhost+ Command, xhost+ Examples { 11 comments… add one } hari June 25, 2010, 9:10 am is # xhost - will block from
HCL Search Reviews Search ISOs Go to Page... LinuxQuestions.org > Forums > Linux Forums > Linux - Networking [SOLVED] http://www.linuxquestions.org/questions/linux-networking-3/ssh-x-cannot-open-display-925852/ ssh -X Cannot open display User Name Remember Me? Password Linux - Networking This forum is for any issue related to networks or networking. Routing, network cards, OSI, http://stackoverflow.com/questions/12356425/error-cannot-open-display-localhost0-0-trying-to-open-firefox-from-centos-6 etc. Anything is fair game. Notices Welcome to LinuxQuestions.org, a friendly and active Linux Community. You are currently viewing LQ as a guest. By joining our community you open display will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today! Note that registered members see fewer ads, and ContentLink is completely disabled once you log in. Are you new to LinuxQuestions.org? Visit the not open display following links: Site Howto | Site FAQ | Sitemap | Register Now If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here. Having a problem logging in? Please visit this page to clear all LQ-related cookies. Introduction to Linux - A Hands on Guide This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own. Click Here
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Error: cannot open display: localhost:0.0 - trying to open Firefox from CentOS 6.2 64bit and display on Win7 up vote 8 down vote favorite 3 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: Error: cannot open display: localhost:0.0 To setup the display I used the command $ export DISPLAY=localhost:0.0 Some site suggested using the following, but it didn't work either: $ export DISPLAY=:0.0 I am using PuTTY and I have the Enable X11 forwarding check box checked and XMing is running on Windows. Additionally, the sshd_config on centOS file seems to be setup properly as well: $ cat /etc/ssh/sshd_config |grep -i x11 #X11Forwarding no X11Forwarding yes #X11DisplayOffset 10 X11UseLocalhost yes 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. x11 x11-forwarding share|improve this question asked Sep 10 '12 at 17:11 SaiyanGirl 5,30662342 This question might be more suitable at superuser.com. 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? –aland Sep 10 '12 at 17:16 2 try it without setting the DISPLAY variable... you shouldn't actually need that –10flow Sep 10 '12 at 17:33 @aland I've looked on the Internet to see what the XLaunch Utility is, I don't know what you mean when you say I should try to launch the application without PuTTY. I just noticed that XMing has a Command Processor, but I don't know how to use it. - Also, I'm not too sure how to migrate my question. –SaiyanGirl Sep 10 '12 at 17:37 @scott654 When I try that, I get the following: Error: no display specified. All the suggestions on the Internet say that I should set