up vote 52 down vote favorite 23 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 +, Thank you for the fix, this has been annoying me for a while now! Actually, the resolution of "localhost" wasn't! Boss sends a birthday message. his comment is here
Gtk-WARNING **: cannot open display: Even if I try gksudo gedit /etc/apache2/sites-available/000-default.conf and sudo nano /etc/apache2/sites-available/000-default.conf it gives me the same message (including when I type in gksudo nano). Thanks for the quick replies! So set the IP manually, as harrymc suggests: export DISPLAY="127.0.0.1:10.0" Then X11 programs should be fine. share|improve this answer edited Jul 13 '11 at 23:04 answered Jul 13 '11 at 18:54 DerfK 55949 That was it. http://askubuntu.com/questions/186015/cannot-open-gedit-display-on-ubuntu-server-12-04
I noticed that doesn't match the version I installed, which is 8.04.1-Server as previously stated. How to reply? 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
How do I fix this? I tried but the installation failed. Safety - Improve braking power in wet conditions C# TBB updating metadata value Isn't AES-NI useless because now the key length need to be longer? Gtk Warning Cannot Open Display Ubuntu Given the hints solve the puzzle Teenage daughter refusing to go to school Boss sends a birthday message.
Use the FAQ Luke Top Narain Posts: 4 Joined: 2015/09/24 16:51:59 Re: Cannot open display - gedit - from SSH login Quote Postby Narain » 2015/09/25 11:09:04 TrevorH wrote:I've never heard Gedit Gtk-warning Cannot Open Display For example, while launching the gedit on remote server, I got the following message. (gedit:3658): Gtk-WARNING **: cannot open display: I get similar message when I try to open any GUI after the "last login" line it says that the the operating system is 'Linux ubuntu 2.6.24-19-powerpc #1 and then time and date it was created. Bonuses Wuzzat?Assuming you're not joking:ArchWiki wrote: sux (wrapper around su which will transfer your X credentials) $ sux root name-of-apphttps://wiki.archlinux.org/index.php/Ru … ps_as_root(edit) snaked again...
Prefer xauth  or other mechanisms. 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 Gedit Cannot Open Display Putty How to handle a common misconception when writing a Master's thesis? Gedit Cannot Open Display Ssh If you still get the "cannot open display" error, set the DISPLAY variable as shown below. $ export DISPLAY='IP:0.0' Note: IP is the local workstation's IP where you want the GUI
But if you use ssh -Y remotemachine the remote machine is treated as trusted client. http://ibuildsystem.com/open-display/ubuntu-12-04-vino-server-cannot-open-display.php Is adding the ‘tbl’ prefix to table names really a problem? If you wish to forward your display, you can use ssh -X and then gksudo and gedit will work, but be somewhat slow, depending on your connection to the server. Offline #4 2012-12-04 19:16:12 alphaniner Member From: Ancapistan Registered: 2010-07-12 Posts: 2,761 Re: gedit fails to open as root in terminal The env variable DISPLAY is the key. Xhost: Unable To Open Display ""
All men have stood for freedom...For freedom is the man that will turn the world upside down.Gerrard Winstanley. For KDE it's kdesu so running gedit like this will most likely be successful : Code: gnomesu gedit /usr/bin/deadbeef Best regards, Greg Best regards, Greg Box: Windows 7 / Windows XP For system administrators, I would recommend learning your way around the vim editor. weblink Possible repercussions from assault between coworkers outside the office why does this error keep popping out?
You will 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 Sudo Gedit Command Not Found When logging in remotely through SSH (ssh -y [email protected]), and typing in gedit, throws the following error:It's supposed to be ssh -Y (or ssh -X). Ubuntu Ubuntu Insights Planet Ubuntu Activity Page Please read before SSO login Advanced Search Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] Cannot open gedit display Having
Safety - Improve braking power in wet conditions Build me a brick wall! Try sudo -i instead:$ su - # env |grep DISPLAY # leafpad leafpad: Cannot open display: # exit $ sudo -i # env |grep DISPLAY DISPLAY=:0.0 # leafpad
QGIS Print composer scale problems TIKZ: foreach not compatible with calc-library? I connected by SSH and couldn't launch Gtk programs (plain X11, like "xeyes", worked however). Thus it must be available in Ubuntu also. http://ibuildsystem.com/open-display/ubuntu-server-gtk-warning-cannot-open-display.php Never argue with stupid people,They will drag you down to their level and then beat you with experience.--Mark [email protected] Offline #15 2012-12-06 10:21:04 blue sea & blue sail Member Registered: 2012-12-06
Do you want to help us debug the posting issues ? < is the place to report it, thanks ! Follow us on Google+ Follow us on Twitter Become a fan on Facebook Support Us Support this blog by purchasing one of my ebooks. the client is using xauth authentication mechanism. Home server0gedit “cannot open display” , on remote OSX , using ssh - Ubuntu 14.04 LTS Profile1gedit - cannot open display-1Virtual hosts apache2 for nette - Ubuntu 14.040Apache2 change localhost directory
My cat sat on my laptop, now the right side of my keyboard types the wrong characters Safety - Improve braking power in wet conditions Is it possible for a diesel Why were pre-election polls and forecast models so wrong about Donald Trump? The 127.0.0.1 entry pointing to the actual hostname is necessary; in fact the order seems to be also relevant (put last & it won't work...) [[email protected] /etc]$ cat hosts # Do Use the FAQ Luke Top Narain Posts: 4 Joined: 2015/09/24 16:51:59 Re: Cannot open display - gedit - from SSH login Quote Postby Narain » 2015/09/25 08:34:02 Hi Trevor and toracat,Thanks
What episode of Star Trek is this creature on?