Can proliferate be applied to loyalty counters? Limit computation technology in a futuristic society Is it possible for a diesel engine computer to detect (and prevent) a runaway condition? Does an Eldritch Knight's war magic allow Extra Attacks? up vote 3 down vote For gedit, try this: sudo -H env DISPLAY=:0 gedit share|improve this answer answered Feb 3 '14 at 9:20 minerz029 13k84482 Getting the same error. http://ibuildsystem.com/open-display/ubuntu-gksudo-cannot-open-display.php
Editing /etc/hosts seems to have no effect; and DNS is correctly configured ("dig localhost" correclty report both 127.0.0.1 and ::1) So, it seems to be a bug in whatever does DNS What's the problem with this? 14.04 server apache2 gedit share|improve this question asked Jun 24 '15 at 20:37 RyanP 13 add a comment| 1 Answer 1 active oldest votes up vote Browse other questions tagged sudo gedit or ask your own question. DISPLAY was correct. http://askubuntu.com/questions/414785/cant-open-gedit-as-root
The best thing to do is: - kill the window system - log off the terminal - log on as root - startx - do your thing You will HAVE to On the bug report I had added a photo showing the error message. TSA broke a lock for which they have a master key. I actually tried the xhost solution before posting but didn't work , i just wanted to confirm that im doing it correctly.
You are currently viewing LQ as a guest. Can an object *immediately* start moving at a high velocity? I recommend for the benefit of others reading this later that you make your answer more explicit. (Specify the location of sshd_config, and what to change in it.) –Daryl Spitzer Jul Gtk Warning Cannot Open Display Ssh nor uninstall them!!
US Election results 2016: What went wrong with prediction models? Same symptom of empty $DISPLAY variable (no help setting/exporting it manually). Posts: 342 Rep: Because sudo is not set up as it is in other distros. http://askubuntu.com/questions/163384/i-cannot-start-graphical-apps-as-root Then update your system Adv Reply February 24th, 2013 #3 Jnfn View Profile View Forum Posts Private Message First Cup of Ubuntu Join Date Feb 2013 Beans 4 Re: gksudo
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. Xhost: Unable To Open Display ":0" toxine View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by toxine 05-12-2010, 04:21 PM #2 acid_kewpie Moderator Registered: Jun 2001 Location: UK svccfg –s /application/x11/x11-server listprop options/tcp_listen svccfg –s /application/x11/x11-server setprop options/tcp_listen = true share|improve this answer edited Mar 19 '15 at 0:23 G-Man 3,13391224 answered Mar 18 '15 at 22:52 Doug Somers Adv Reply February 25th, 2013 #7 Jnfn View Profile View Forum Posts Private Message First Cup of Ubuntu Join Date Feb 2013 Beans 4 Re: gksudo fail with every GUI
Password Debian This forum is for the discussion of Debian Linux. http://superuser.com/questions/310197/how-do-i-fix-a-cannot-open-display-error-when-opening-an-x-program-after-sshi I can successfully use the "kdesudo" command to launch gui apps as root in both Gnome and KDE sessions without error. Gedit Cannot Open Display Ubuntu If you need to reset your password, click here. Gedit Cannot Open Display Putty Any idea why localhost wasn't working? –Alex Sep 24 '13 at 4:47 1 BINGO!
DO NOT delete them!! http://ibuildsystem.com/open-display/ubuntu-cannot-open-display-ssh.php asked 1 year ago viewed 42723 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 actionparsnip (andrew-woodhead666) said on 2009-05-21: #3 You do not run gui apps with sudo. Sam_ (and-sam) said on 2009-05-21: #6 The error occurs from [sudo su] https://lists.ubuntu.com/archives/ubuntu-users/2006-January/062930.html [Hardy] the command behind the menu entry: gksu /usr/sbin/synaptic sudoers ok? Gtk-warning Cannot Open Display Ubuntu
Press the keyboard combination Ctrl+O and after that press Enter to save the file being edited. Related 2What's the difference between sudo and gksudo when launching graphical applications?0How do I switch default root authorization app?2Allow “root” program to run without privileges0I can't run graphical programs with sudo Made /etc/hosts readable by all, and it worked fine. –Daniel Mar 6 at 2:00 add a comment| up vote 6 down vote I had this problem with my CentOS KVM server, his comment is here To edit the file under sudo, just use sudo nano rather than gksudo.
How to handle a common misconception when writing a Master's thesis? Gtk Warning Cannot Open Display Raspberry Pi Find More Posts by fruttenboel 05-12-2010, 07:49 PM #8 toxine LQ Newbie Registered: May 2010 Posts: 9 Original Poster Rep: Quote: Originally Posted by fruttenboel The problem is caused Is there a way to block a President Elect from entering office?
I connected by SSH and couldn't launch Gtk programs (plain X11, like "xeyes", worked however). Given the hints solve the puzzle Find a mistake in the following bogus proof How to capture disk usage percentage of a partition as an integer? Nano is very easy to use. weblink Please visit this page to clear all LQ-related cookies.
Did some more research, especially this answer http://askubuntu.com/a/137584/163331 and realised I had to add more options to the visudo file. Offline #2 2011-04-05 15:06:57 SS4 Member From: !Rochford, Essex Registered: 2010-12-05 Posts: 699 Re: Can't run X applications in root - "cannot open display" Use gksu or kdesu as userpacman -S Does calling a function that mutates static local variables twice in the same expression lead to undefined behavior? Infact opening gparted from the application menu has the same result. –d_inevitable Apr 26 '15 at 16:53 You shouldn't have to use gksu to run GParted.
Offline #11 2011-04-06 21:23:43 bohoomil Member Registered: 2010-09-04 Posts: 2,376 Website Re: Can't run X applications in root - "cannot open display" Found again among my notes: Gtk-WARNING **: cannot open thanks to anyone who can help Adv Reply February 24th, 2013 #2 claracc View Profile View Forum Posts Private Message Ubuntu Cappuccino Scuro Join Date Jan 2009 Location Santander, Spain A temporary file is just a pipe with an attitude and a will to live. I haved checked this: .Xauthority and .ICEauthority have my user as owner and also read/write permissions As both files are binary, I cannot understand them and check if they are corrupted
This lets all users on your system (i.e. Do we know Ford's old name? Knatchwa (rl-marr) said on 2009-05-21: #2 Well that is certainly true, but you are only able to save marked changes when Synaptic is run as a user, in order to actually How do unlimited vacation days work?
Cannot open display: Run 'gedit --help' to see a full list of available command line options. They did things differently in those days, apparently!!