Browse other questions tagged centos gnome vnc or ask your own question. Are you able to connect to the vnc server now? –Itai Ganot Jul 16 '15 at 15:43 Hi, sorry for getting back to you so late. It doesn't seem like it should be necessary to tell the OS that localhost and 127.0.0.1 are equivalent, but it works, at least. via ssh) that no graphical interface provides. –A.B.
Just add export XAUTHORITY=~/.Xauthority to your .bashrc or explicitly say XAUTHORITY=~/.Xauthority sudo ... Please visit this page to clear all LQ-related cookies. Main Menu LQ Calendar LQ Rules LQ Sitemap Site FAQ View New Posts View Latest Posts Zero Reply Threads LQ Wiki Most Wanted Jeremy's Blog Report LQ Bug Syndicate Latest
Then just set it and export it. Not the answer you're looking for? 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 Gtk Warning Cannot Open Display Raspberry Pi gparted uses polkit to get elevated privileges. –muru Apr 26 '15 at 16:59 @muru when I run gparted without gksu I get Root privileges are required for running gparted.
I tried export DISPLAY=localhost:10.0 while sshed into my VM and then running gedit .bashrc, but I get: (gedit:9625): Gtk-WARNING **: cannot open display: localhost:10.0 What could be different in the configuration Gtk Warning Cannot Open Display Ubuntu YMMV with this instuctions, I still have a permission denied with audio, but video is fine. (tested on Fedora 22 with SELinux ON) share|improve this answer edited Aug 19 '15 at But i am not able to connect i get "XDMCP connection failed. http://www.linuxquestions.org/questions/debian-26/gtk-warning-**-cannot-open-display-0-0-a-807450/ Tango Icons © Tango Desktop Project.
debian x11 kde gui share|improve this question asked Mar 9 '14 at 7:31 Octopus 5634820 stackoverflow.com/a/20612084 this worked perfectly for me. –user88494 Oct 20 '14 at 9:42 add a Xhost: Unable To Open Display ":0" Not the answer you're looking for? If that is true, why? –Faheem Mitha Jan 10 '14 at 9:36 5 Sometimes root is treated differently than other users. So does that mean its an access control restriction?
But if I ssh -Y into my Ubuntu 11.04 machine, gedit .bashrc works. At least on the new install of 10.04 that I did this morning X11Forwarding was enabled by default. Gtk-warning Cannot Open Display Ssh 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, 11:13 PM #9 Gtk Warning Cannot Open Display Gedit Safety - Improve braking power in wet conditions How does Gandalf end up on the roof of Isengard?
Last edited by toxine; 05-12-2010 at 07:51 PM. check over here I'm thinking there must be something I need to add to the script so it knows how to access my gui display when it needs to. newbiesforever View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by newbiesforever 04-07-2012, 04:06 AM #13 anticapitalista Member Registered: May 2005 Location: Greece pam_xauth is included in the libpam-modules package for exactly this purpose; to use it, you just need to add session optional pam_xauth.so to your /etc/pam.d/sudo file. Gtk Warning Cannot Open Display Linux
In Debian $XAUTHORITY is usually not set explicitly. centos gnome vnc share|improve this question edited Jul 20 '15 at 9:09 asked Jul 2 '15 at 15:13 George Foster 112 migrated from stackoverflow.com Jul 15 '15 at 20:06 This question Thanks, George –George Foster Jul 16 '15 at 14:50 You're welcome. his comment is here Here is what I found online : If you use ssh -X remotemachine the remote machine is treated as an untrusted client.
What Could Cause Flash Over / Arcing to Reappear on New Plugs? Git Gtk Warning * * Cannot Open Display How to handle swear words in quote / transcription? How can I save a file to a new location from inside Vim?
This caused the symptoms reported here. thanks. I'm not using a vnc, whatever that is, but I have had the same problem in my distro (antiX, with heavy modifications), when trying to sudo synaptic and at least one Gtk Warning * * Cannot Open Display Centos 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,
I hope this helps others. This is localhost in a normal terminal window. I then recieved a few errors: Fatal server error: (EE) no screens found(EE) Server terminated with error (1). weblink Polyglot Anagrams Robbers' Thread why does this error keep popping out?
Professor Lewin: "Which string will break?" / Me: "That one." / Professor Lewin: "Wrong!" Vent kitchen hood vent to roof turbine vent? Why do some banks have more than one routing number in the US? Would the members of an online imageboard (or any community) be able to build a post-apocalytic society upon their reputation? i hope you understand, what i want to know.
Why does Cutie act like this and lesser robots listen to it? toxine View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by toxine 05-12-2010, 06:57 PM #7 fruttenboel Member Registered: Jul 2008 Location: Tilburg If you need to reset your password, click here. 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
Ubuntu Forums Rock! See if this works: Code: sudo -u $USER zenity Take the risk of thinking for yourself, much more happiness, truth, beauty, and wisdom will come to you that way. --Christopher Hitchens Same symptom of empty $DISPLAY variable (no help setting/exporting it manually). I worried that this would make my user account unable to run any X commands without sudoing (since root now owns X), but apparently not.
Xauth was missing on remote. Was it legal to rant against trick or treating via loudspeaker during halloween?