Gedit Cannot Open Display Error
Contents |
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 answers to any questions you might have Meta Discuss the workings and
Gedit Gtk-warning Cannot Open Display
policies of this site About Us Learn more about Stack Overflow the gedit cannot open display putty company Business Learn more about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered gtk warning cannot open display ubuntu Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can
Gtk Warning Cannot Open Display Ssh
ask a question Anybody can answer The best answers are voted up and rise to the top Can't open Gedit as root up vote 4 down vote favorite 3 When I run sudo gedit /path/to/some/random/file I get the following error ** (gedit:6262): WARNING **: Command line `dbus-launch --autolaunch=7f8731869e1c690b8205727e0000000a --binary-syntax --close-stderr' exited with non-zero exit status 1: Autolaunch error: X11 initialization failed. Cannot open
Gedit Cannot Open Display Ssh
display: Run 'gedit --help' to see a full list of available command line options. Using gksudo doesn't help either which returns Cannot open display: Run 'gedit --help' to see a full list of available command line options. Any help guys. I need to have this capability to open files in Gedit as root. I found this question with the same error but no solution Unable to launch gedit with sudo EDIT I found this post in Ubuntu Forums. These are the instructions: echo $DISPLAY # you'll be needing this value 3 lines below sudo -i # or "su -" on older Slackwares xauth merge ~alien/.Xauthority # use your own username here instead of "alien" export DISPLAY=:0.0 # use the value of DISPLAY you've seen 3 lines before On coming to command #3, I got this error xauth: file /root/.Xauthority does not exist Maybe this new info can shed more light. sudo gedit share|improve this question edited Feb 3 '14 at 9:41 asked Feb 3 '14 at 8:46 Parto 6,577164080 Have you tried gksudo gedit /path/to/the/file/name instead? –AzkerM Feb 3 '14 at 9:09 @AzkerM
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 gtk warning cannot open display raspberry pi Learn more about hiring developers or posting ads with us Super User Questions Tags Users
Xhost Unable To Open Display
Badges Unanswered Ask Question _ Super User is a question and answer site for computer enthusiasts and power users. Join them; it only gtk warning cannot open display centos 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 How do I fix a “cannot open display” error when http://askubuntu.com/questions/414785/cant-open-gedit-as-root opening an X program after ssh'ing with X11 forwarding enabled? up vote 50 down vote favorite 22 After launching the X11 app (XQuartz 2.3.6, xorg-server 1.4.2-apple56) on my Mac (OS X 10.6.8), opening an terminal in X11 and running xhost +, I then ssh -Y to my Ubuntu 10.04 VM (running on VMware Fusion). When I run gedit .bashrc (for example), I get: (gedit:9510): Gtk-WARNING **: cannot open display: set | grep DISPLAY returns nothing. But http://superuser.com/questions/310197/how-do-i-fix-a-cannot-open-display-error-when-opening-an-x-program-after-sshi if I ssh -Y into my Ubuntu 11.04 machine, gedit .bashrc works. echo $DISPLAY returns "localhost:10.0". 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 of the two difference Ubuntu machines that would explain why one works and the other doesn't? 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. ssh display xorg gtk share|improve this question edited Feb 9 '14 at 12:20 Pablo Saratxaga 1133 asked Jul 13 '11 at 18:13 Daryl Spitzer 2,92393236 migrated from serverfault.com Jul 13 '11 at 18:31 This question came from our site for system and network administrators. 2 Does the Ubuntu 10.04 box have the proper tools for X11 installed? Install xbase-clients, if it isn't installed already. –Zoredache Jul 13 '11 at 18:22 I installed it but still have the same problem. (See above.) –Daryl Spitzer Jul 13 '11 at 18:29 Yes. 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 you connect, this prints verbose debug messages, you should see several comments about X11 forwarding wh
Help Here Applications Using gedit as root: "Gtk-WARNING **: cannot open display:" Welcome! If this is your first visit, be sure to check out the FAQ. You will https://forums.opensuse.org/showthread.php/453089-Using-gedit-as-root-quot-Gtk-WARNING-**-cannot-open-display-quot have to register before you can post in the forums. (Be aware the forums do not accept user names with a dash "-") Also, logging in lets you avoid the CAPTCHA verification when searching . Select Articles, Forum, or Blog. Posting in the Forums implies acceptance of the Terms and Conditions. Results 1 to 9 of 9 Thread: Using gedit as root: open display "Gtk-WARNING **: cannot open display:" Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 23-Jan-2011,06:25 #1 misfisk View Profile View Forum Posts View Blog Entries View Articles Newcomer Join Date Jan 2011 Posts 2 Using gedit as root: "Gtk-WARNING **: cannot open display:" I've been searching for a permanent solution for some cannot open display time now, but the threads containing the same error message never seem to be about the same issue. I want to: I'm not trying anything fancy, all I want to do is open a write-protected file with gedit as root, like so: Code: # sudo gedit /usr/bin/deadbeef ..but every time I try, no matter the file, I get this error message: Code: (gedit: [process #] ): Gtk-WARNING **: cannot open display I already know: I can circumvent this by going: Code: # xhost +local:root # sudo su # export DISPLAY=:0.0 ..or something along those lines Help! I have no idea why this is necessary, it's stupidly inconvenient to say the least This has been happening since I first installed openSUSE, so I haven't screwed up anywhere in the process. Reply With Quote 23-Jan-2011,06:56 #2 glistwan View Profile View Forum Posts View Blog Entries View Articles Wise Penguin Join Date Sep 2010 Location Poland Posts 1,943 Re: Using gedit as root: "Gtk-WARNING **: cannot open display:" Hi You should use gnomesu instead of sudo for running graphical gnome apps in root mode. For KDE it's kdesu