sudo apt-get install xauth solved the issue. If that is true, why? –Faheem Mitha Jan 10 '14 at 9:36 5 Sometimes root is treated differently than other users. This site is not affiliated with Linus Torvalds or The Open Group in any way. more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed http://bovbjerg.net/ubuntu-cannot/ubuntu-cannot-open-display-0-1.php
Sources: http://www.nikhef.nl/~mjg/xhost_plus.html https://forums.opensuse.org/showthread.php/405624-sudo-doesnt-open-X-programs https://wiki.ubuntu.com/CustomXSession share|improve this answer edited May 4 '15 at 22:56 answered Apr 26 '15 at 23:08 Mark Paskal 2,19211426 1 This does work indeed. Furthermore you can check the options ForwardX11 and ForwardX11Trusted in your /etc/ssh/ssh_config. 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 I can't reproduce your problem on 14.04, but this has worked for me in the past when sudo / gksu threw this error. http://askubuntu.com/questions/141240/cant-open-display-even-after-access-with-xhost
I hope this work for you. check 220.127.116.11. share|improve this answer answered Jan 30 '15 at 19:27 hildred 3,71811233 add a comment| up vote 1 down vote I edited vim /etc/hosts added the following lines 127.0.0.1 localhost localhost.localdomain localhost4 TIKZ: foreach not compatible with calc-library?
Alternatively, to allow anyone to connect: xhost + And to revoke permissions: xhost - share|improve this answer edited Mar 24 '14 at 23:19 answered Mar 24 '14 at 22:48 terdon♦ 42.9k686154 share|improve this answer answered Dec 22 '15 at 12:46 MaWo 111 add a comment| up vote 0 down vote On my (standard) Ubuntu environment I got the xterm over ssh failure share|improve this answer edited Feb 28 '12 at 9:11 answered Feb 21 '12 at 8:47 harrymc 191k7168410 4 +1 for the Note that IP = is the local workstation's IP asked 1 year ago viewed 42724 times active 1 year ago Linked 3 Unable to open any graphical app with “sudo” 0 X11 errors over SSH Related 2Gtk-warning cannot open display8getting
Sharepoint 2013: Rest API - does header need to include X-RequestDigest? debug3: Wrote 128 bytes for a total of 1399 debug2: callback start debug2: x11_get_proto: /usr/bin/xauth list :1.0 2>/dev/null debug1: Requesting X11 forwarding with authentication spoofing. Can an object *immediately* start moving at a high velocity? Limit computation technology in a futuristic society Problem with function inside brackets.
For example, launching Oracle Installer on remote server also gives the "cannot open display" error. How to handle a common misconception when writing a Master's thesis? In this case, you need to use xauth for more fine-grained control. I will be posting instruction guides, how-to, troubleshooting tips and tricks on Linux, database, hardware, security and web.
How do I fix this? https://ubuntuforums.org/showthread.php?t=2047140 export DISPLAY=0.0 xclock Error: Can't open display: 0.0 How can i do that without restarting gdm and enabling remote connections with xhost +, is there any way? even i update gtk2 and all depended lib. The details will depend on your actual situation but in most cases, what you will need (assuming, again, you are on your local machine) is export DISPLAY=:0.0 You can then run
Xauth was missing on remote. navigate here Browse other questions tagged xorg sudo gtk gksu pkexec or ask your own question. Notices Welcome to LinuxQuestions.org, a friendly and active Linux Community. share|improve this answer answered Apr 28 '11 at 14:29 Cakemox 13.3k53058 add a comment| up vote 1 down vote In the X-Windows session, bring up a terminal and type xhost +local
How to stop NPCs from picking up dropped items Is adding the ‘tbl’ prefix to table names really a problem? A list of possible things that could cause this behaviour could help a lot. –d_inevitable May 4 '15 at 14:45 OK, not sure the cause, but I do have I feel much relieved. Check This Out You therefore need to: If you are logging in to a remote machine using something like ssh, you will need to export the $DISPLAY of your local machine and tell the
You need to add the xhost command to the .xinitrc file for the user so it runs when you start the session. –Mark Paskal May 4 '15 at 22:50 other?). –Pablo Saratxaga Feb 9 '14 at 11:38 On a Debian install for the Beagle Bone Black, /etc/host was not set to readable by anyone but root. You are currently viewing LQ as a guest.
glib? DISPLAY=:0 ... ? Straight line equation What episode of Star Trek is this creature on? Is there an actual army in 1984?
The easiest way to check if this is the problem is to use the -y flag with ssh. gdk? Using the eval command twice Does calling a function that mutates static local variables twice in the same expression lead to undefined behavior? http://bovbjerg.net/ubuntu-cannot/ubuntu-cannot-open-consolekit.php Do we know Ford's old name?
But i am not able to connect i get "XDMCP connection failed. Also I have noticed that it is only happening for one of my two users on the system, not the other. 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. ) = 302 write(2, "xterm: ", 7xterm: My cat sat on my laptop, now the right side of my keyboard types the wrong characters Problem with function inside brackets.