Autolaunch Error X11 Initialization Failed. And Cannot Open Display
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 policies of this site About Us Learn more about Stack gedit cannot open display ubuntu Overflow the company Business Learn more about hiring developers or posting ads with us
Gedit Cannot Open Display Putty
Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and sudo gedit cannot open display developers. 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 Cannot connect to
Gedit Cannot Open Display Ssh
X Server when running app with sudo up vote 11 down vote favorite 5 When I am running some software using sudo command it showing error like cannot connect to X server For example if I run the following command: $ sudo gedit /etc/profile I am getting following command (gedit:6758): WARNING **: Command line `dbus-launch --autolaunch=84b871d735f31ffe014dc9ba00000009 --binary-syntax --close-stderr' exited with non-zero exit status 1: Autolaunch error: X11 initialization failed. Cannot open display: Run gedit gtk-warning cannot open display 'gedit --help' to see a full list of available command line options. Or if I am running super-boot-manager I am getting following error buc: cannot connect to X server Please help. display sudo xserver share|improve this question edited Aug 14 '12 at 8:17 Peachy 4,08252637 asked Aug 14 '12 at 7:32 Apurba 5812720 Where do you run super-boot-manger from? –Thor Aug 15 '12 at 9:49 First I have tried to run super-boot-manager directly from unity luncher, it did not worked. Then I have tried it from terminal, then I got those error massage. –Apurba Aug 15 '12 at 13:21 As in a terminal within the graphical user environment? What does: echo $DISPLAY say? You should run it without sudo as super-boot-manager runs sudo internally. –Thor Aug 15 '12 at 15:23 echo $DISPLAY is giving :0.0. And I am not running super-boot-manager as sudo. I am running just using command super-boot-manager from terminal. –Apurba Aug 16 '12 at 19:36 1 Finally the problem is solved. I have just added the line: Defaults env_keep="DISPLAY XAUTHORITY" at the end of visudo. Thanks to all, specially @Thor for kind help. –Apurba Aug 17 '12 at 8:03 | show 4 more comments 2 Answers 2 active oldest votes up vote 18 down
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
Unable To Open Display
Us Learn more about Stack Overflow the company Business Learn more about hiring
Gedit No Protocol Specified
developers or posting ads with us Super User Questions Tags Users Badges Unanswered Ask Question _ Super User is a xhost unable to open display ubuntu question and answer site for computer enthusiasts and power users. 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 http://askubuntu.com/questions/175611/cannot-connect-to-x-server-when-running-app-with-sudo are voted up and rise to the top sudo + x11 application does not work correctly up vote 3 down vote favorite I couldn't get any program requiring x11 (e.g. gedit, nautilus) to work with sudo. Using gksudo would just fail silently, while on terminal I received the following error: sudo nautilus ** (nautilus:4160): WARNING **: Command line `dbus-launch --autolaunch=cced40b4aa1d252bc89d3a6a0000000a --binary-syntax --close-stderr' exited with non-zero exit status http://superuser.com/questions/514688/sudo-x11-application-does-not-work-correctly 1: Autolaunch error: X11 initialization failed.\n Could not parse arguments: Cannot open display: With the help of a friend I managed to find a workaround: if I run xhost + as an unprivileged user and then export DISPLAY=:0 as root after a sudo su, it finally works (without the xhost step I'd get an undefined protocol error). However I don't understand why I have this problem in the first place, and it is a laborious workaround - I thought of adding an `export DISPLAY=:0" in root's .bashrc but that's only called if I'm suing, not if I just sudo. Any ideas on how to properly solve this issue? linux xorg sudo ubuntu-12.04 share|improve this question edited Dec 4 '12 at 17:38 terdon 33.3k66097 asked Dec 4 '12 at 17:19 manuhalo 1814 1 @BenjiWiebe, the thing is that none of this should be necessary in an Ubuntu install. It should work out of the box. Manuhalo, have you changed anything else that might be relevant? Is this a fresh install? Did it used to work? –terdon Dec 4 '12 at 17:43 @terdon it is the machine I use at work, not really a fresh install. I
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 http://superuser.com/questions/310197/how-do-i-fix-a-cannot-open-display-error-when-opening-an-x-program-after-sshi this site About Us Learn more about Stack Overflow the company Business https://ubuntuforums.org/showthread.php?t=2227994 Learn more about hiring developers or posting ads with us Super User Questions Tags Users Badges Unanswered Ask Question _ Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a open display 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 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 cannot open display 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 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,91893236 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 Ju
Get Kubuntu Get Xubuntu Get Lubuntu Get UbuntuStudio Get Mythbuntu Get Edubuntu Get Ubuntu-GNOME Get UbuntuKylin Ubuntu Code of Conduct Ubuntu Wiki Community Wiki Other Support Launchpad Answers Ubuntu IRC Support AskUbuntu Official Documentation User Documentation Social Media Facebook Twitter Useful Links Distrowatch Bugs: Ubuntu PPAs: Ubuntu Web Upd8: Ubuntu OMG! Ubuntu Ubuntu Insights Planet Ubuntu Activity Page Please read before SSO login Advanced Search Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Desktop Environments X11 initialization failed Having an Issue With Posting ? Do you want to help us debug the posting issues ? < is the place to report it, thanks ! Results 1 to 2 of 2 Thread: X11 initialization failed Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode June 5th, 2014 #1 josejohn View Profile View Forum Posts Private Message First Cup of Ubuntu Join Date Jun 2014 Beans 1 X11 initialization failed Hi, I am running Ubuntu 12.04.4 LTS I have installed Xserver and am logging using $ssh -X username@machineip When I start eclipse, it gives me this error ** (java:3174): WARNING **: Command line `dbus-launch --autolaunch=6ff9a50c9edfab7a264133b300000009 --binary-syntax --close-stderr' exited with non-zero exit status 1: Autolaunch error: X11 initialization failed.\n Eclipse: Cannot open display: even gedit gives me this Cannot open display: How do I fix it? Have tried going through the forum, removing .Xauthority does not help. Any input will be of great help. Thanks Adv Reply June 5th, 2014 #2 tgalati4 View Profile View Forum Posts Private Message This space is currently for rent . . Join Date Feb 2007 Location West Hills CA Beans 10,050 DistroUbuntu 14.04 Trusty Tahr Re: