Home > Error Cannot > Error Cannot Open Display 0.0

Error Cannot Open Display 0.0

Which mechanism is used, is determined by the format of the DISPLAY environment variable. 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 . Find More Posts by acid_kewpie 05-12-2010, 03:38 PM #5 acid_kewpie Moderator Registered: Jun 2001 Location: UK Distribution: Gentoo, RHEL, Fedora, Centos Posts: 43,417 Rep: BTW, vnc is awful in This is a Spartan WHYFF (We Help You For Free) site written by people for whom English is not a native language. weblink

Add DisallowTCP=false in /etc/gdm/custom.conf to make gdm listen. [Nov 03, 2011] Remote X Server Can't Open Display Quote: Hi, I seem to have a configuration issue that is preventing me from via iptables rules. Page 1 of 2 1 2 > Search this Thread 05-12-2010, 03:03 PM #1 toxine LQ Newbie Registered: May 2010 Posts: 9 Rep: Gtk-WARNING **: cannot open display: After that, all that is needed is a restart of the gdm process: sudo service gdm restart You can verify the success as: [email protected]:/etc/X11 $ netstat -an | grep -F 6000 https://bbs.archlinux.org/viewtopic.php?id=108695

share|improve this answer edited Feb 28 '12 at 9:11 answered Feb 21 '12 at 8:47 harrymc 190k7165405 4 +1 for the Note that IP = is the local workstation's IP x11 x11-forwarding share|improve this question asked Sep 10 '12 at 17:11 SaiyanGirl 5,32662342 This question might be more suitable at superuser.com. Why I failed to use the \foreach command to connect the points? Answer: You can fix the "cannot open display" error by following the xhost procedure mentioned in this article. 1.

The next step is to check /var/log/messages on the server. There are other reasons for this, but this, especially when asked on a forum is 99% this. 1 members found this post helpful. I tried "export DISPLAY=:0.0" too, doesn't work either Quote: [email protected]:~$ xhost +localhost localhost being added to access control list X Error of failed request: BadValue (integer parameter out of range for file /etc/X11/xdm/kdmrc and changed ServerArgsLocal=-nolisten tcp into ServerArgsLocal= restart computer and still have above argument loaded.

X can use a number of transport protocols, including Unix sockets (which are an inter-process communication facility that is local to a system) and TCP/IP sockets (connections using the Internet protocol Note that registered members see fewer ads, and ContentLink is completely disabled once you log in. If you run ssh and DISPLAY is not set, it means ssh is not forwarding the X11 connection. There didn't seem to be any indication anywhere of it not being installed.

now i can use my new 2tb toxine View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by toxine 12-09-2011, 10:13 PM #9 Because other graphical (X11) client could sniff data from the remote machine (make screenshots, do keylogging and other nasty stuff) and it is even possible to alter those data. Update: As suggested by Zoredache in the comment below, I ran sudo apt-get install xbase-clients, but I continue to have the same problem. gdk?

That means that default X settings become more and more defensive and thus without tuning there are more and more reasons why remote communications attempts using X initially will fail. http://superuser.com/questions/310197/how-do-i-fix-a-cannot-open-display-error-when-opening-an-x-program-after-sshi This article explains the configuration changes required to allow remote access to a Red Hat Enterprise Linux system (RHEL) using the X Display Manager Control Protocol (XDMCP) or GDM (GUI login). but If I want to open GUI application on my host which is installed on other host. Yes, 'root' is the supreme God of your system and is omni potent.

Local machine works without it –RAJ ... have a peek at these guys Okay, done; but why do I have to this? Period. 0 members found this post helpful. Not the answer you're looking for?

asked 2 years ago viewed 10904 times active 2 years ago Related 0Why is Firefox trying to use Okular to open downloads?0Firefox freezes while opening multiple tabs6ssh -X “Xt error: Can't I am using watir & headless and watir opening firefox instance programmatically –RAJ ... If you wish to use copyrighted material from this site for purposes of your own that go beyond 'fair use', you must obtain permission from the copyright owner. check over here share|improve this answer edited Mar 11 '13 at 11:09 answered Mar 6 '13 at 17:03 Aleks 18617 Can you post the answer here instead of a link pointing to

I connected by SSH and couldn't launch Gtk programs (plain X11, like "xeyes", worked however). it is set to localhost:0.0, the X client application will try to connect to the server (in the example, localhost) via TCP/IP sockets rather than via Unix sockets. google xauth howto comes up with a lot of references Link thib June 25, 2010, 11:53 am Unless the network environment is entirely controlled, xhost is a very bad idea [1].

If it is not set at all or set incorrectly you need to fix that, for example export DISPLAY=10.10.10.1:0.0 The second step to check is whether X11 server itself is accessible

I did the following command and now firefox opens: yum groupinstall 'X Window System' Hope this answer will help others that are confused :) share|improve this answer answered Sep 10 '12 Last edited by lubiebudyn (2010-11-19 19:24:35) Offline #2 2010-11-19 19:01:29 PrivateLooms Member Registered: 2010-11-19 Posts: 5 Re: Error: cannot open display: :0.0 [SOLVED] Try either :export DISPLAY=":0.0"or xhost +your-usernamein the terminal, GDM Login Manager Users running Red Hat Enterprise Linux 5, CentOS 5, or Oracle Linux Release 5 will need to use the GDM login manager as XDM is no longer supported. I don't know if I needed to.

As this solution is more cumbersome than using ssh -X, in particular from a security management point of view, it should only be used when ssh -X isn't an option (e.g. The default setting for RHEL is [security] DisallowTCP=yes which should be changed to false To enable XDMCP that some users need you need to enable it. [xdmcp] Enable=true After that you The -X option to ssh tells it to try to set up a tunnel through which X11 connections can be forwarded. this content Recently in some Linux distributions, X is by default configured to listen only to localhost.

Now I only need gvim to find the fonts and I'm ready to go... –some Oct 20 '12 at 22:20 1 ... Are backpack nets an effective deterrent when going to rougher parts of the world? As a non root user, I'm able to delete a file made by root with 0444 permissions? If you only change the xserverrc file, X will nevertheless start with "-nolisten TCP".

Why I failed to use the \foreach command to connect the points? Enable X11 forwarding While doing ssh use the option -X to enable X11 forwarding. $ ssh [email protected] -X Enable trusted X11 forwarding, by using the -Y option, $ ssh [email protected] -Y If you have problems the first thing to do is to see the value of the variable DISPLAY on the client. ctran jcliburn: Try running /usr/bin/gdmsetup.

As root, you can either do "xhost +" (unsafe, allows ANYONE to start remote windows on your machine), or "xhost " (allows just that machine to fire The runlevels used by RHS are: # 0 - halt (Do NOT set initdefault to this) # 1 - Single user mode # 2 - Multiuser, without NFS (The same as Yes, 'root' is the supreme God of your system and is omni potent. Just to be sure, I restarted the VM (and reconnected through SSH afterward). –Daryl Spitzer Jul 13 '11 at 18:38 3 Maybe try passing the -vv option to ssh when

Note that the default is no forwarding (some distributions turn it on in their default /etc/ssh/sshd_config), and that the user cannot override this setting. Multiple types of probes increase this period.