Home > Cannot Open > Ubuntu Gksudo Gedit Cannot Open Display

Ubuntu Gksudo Gedit Cannot Open Display

Contents

When I run gedit .bashrc (for example), I get: (gedit:9510): Gtk-WARNING **: cannot open display: set | grep DISPLAY returns nothing. Try sudo -i instead:$ su - # env |grep DISPLAY # leafpad leafpad: Cannot open display: # exit $ sudo -i # env |grep DISPLAY DISPLAY=:0.0 # leafpad ###WorMzy wrote:I It allows only connections from your user to the xserver until told otherwise, I think. Someone peeled an American flag sticker off of my truck. this contact form

So does that mean its an access control restriction? If you want to know more about those things I suggest reading the Xsecurity manpage or the X Security extension spec. UNIX is a registered trademark of The Open Group. How can I save a file to a new location from inside Vim?

Gedit Cannot Open Display Ubuntu

Henk van Velden Reply With Quote 23-Jan-2011,07:06 #4 malcolmlewis View Profile View Forum Posts View Blog Entries Visit Homepage View Articles Administrator Join Date Jun 2008 Location Podunk Posts 20,984 Re: 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 I am seen in darkness and in light, What am I? I can't confirm if the issue appear in that moment.

Desperate was I but you saved my day!!! –reexmonkey Sep 17 at 9:29 | show 1 more comment Your Answer draft saved draft discarded Sign up or log in Sign Can you dispel a magic effect you can't perceive? asked 4 years ago viewed 2468 times active 3 years ago Linked 17 How can I run an application with a GUI as admin from a non-admin user session? 0 Why Gtk-warning Cannot Open Display Ubuntu Last edited by 2ManyDogs (2012-12-04 19:24:39) Offline #7 2012-12-04 19:32:44 alphaniner Member From: Ancapistan Registered: 2010-07-12 Posts: 2,761 Re: gedit fails to open as root in terminal I wasn't joking, but

Results 1 to 9 of 9 Thread: Using gedit as root: "Gtk-WARNING **: cannot open display:" Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid and everything should work. So your local client sends a command to the remote machine and receives the graphical output. ubuntu 14.04.

Offline #17 2012-12-06 11:40:18 blue sea & blue sail Member Registered: 2012-12-06 Posts: 21 Re: gedit fails to open as root in terminal loafer wrote:Can't a command like "sudo gedit" cause Gedit No Protocol Specified Allow clients to connect from any host using xhost+ Execute the following command to disable the access control, by which you can allow clients to connect from any host. $ xhost But maybe the defaults are different there. What is this line of counties voting for the Democratic party in the 2016 elections?

Gedit Cannot Open Display Putty

The time now is 01:23 AM. share|improve this answer answered Mar 9 '14 at 9:17 michas 11.2k22054 xauth info shows path to authority file –SummerBreeze Apr 7 '15 at 7:11 add a comment| up vote Gedit Cannot Open Display Ubuntu GO OUT AND VOTE What is the significance of the robot in the sand? Gedit Gtk-warning Cannot Open Display Is there a way to block an elected President from entering office?

My cat sat on my laptop, now the right side of my keyboard types the wrong characters How do I make an alien technology feel alien? weblink Lab colleague uses cracked software. nor uninstall them!! What is this line of counties voting for the Democratic party in the 2016 elections? Gedit Cannot Open Display Ssh

  1. Basic Geometric intuition, context is undergraduate mathematics Mimsy were the Borogoves - why is "mimsy" an adjective?
  2. share|improve this answer edited Feb 28 '12 at 9:11 answered Feb 21 '12 at 8:47 harrymc 191k7168410 4 +1 for the Note that IP = is the local workstation's IP
  3. The time now is 17:23. © 2015 SUSE, All Rights Reserved.
  4. Browse other questions tagged xorg sudo gtk gksu pkexec or ask your own question.

Can an object *immediately* start moving at a high velocity? You may also choose to add it to su, too. Does an Eldritch Knight's war magic allow Extra Attacks? http://bovbjerg.net/cannot-open/ubuntu-gedit-gtk-warning-cannot-open-display.php I am not running this through SSH or VNC.

What if other loged iin people would be able to open windows on your desktop without your allowance? Ubuntu Sudo Gedit 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... If they are not set, they will probably default to the wrong values and you cannot start and X applications.

Adv Reply February 24th, 2013 #6 bogan View Profile View Forum Posts Private Message May the Ubuntu Be With You!

Posting in the Forums implies acceptance of the Terms and Conditions. Inconvenient at least, but the would also be able to create a window such that thay could read all your keyboard typing including your bank accounts. Is there a way to block an elected President from entering office? Sudo Gedit /etc/hosts Can an object *immediately* start moving at a high velocity?

sudo gedit share|improve this question edited Feb 3 '14 at 9:41 asked Feb 3 '14 at 8:46 Parto 6,705174281 Have you tried gksudo gedit /path/to/the/file/name instead? –AzkerM Feb 3 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 Is there a way to block an elected President from entering office? his comment is here The Ubuntu guys must be messing around with defaults again. –Zoredache Jul 13 '11 at 19:50 1 @DerfK, in my system "X11Forwarding yes" was there already still I am getting

Given the hints solve the puzzle OBDII across the world? asked 5 years ago viewed 374234 times active 5 months ago Visit Chat Linked 1 error: XDG_RUNTIME_DIR not set in the environment. 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 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,94893236 migrated from serverfault.com Jul 13 '11

I've been stuck by that problem for some time... Try rebooting and it should auto-generate the file I think.OK well there wasn't an .Xauthority file for the root user, but there was for my normal user, which I deleted, i Online #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. On the other hand, the CLI session root uses does not know which of the displays it should open the window.

Now everything should run just fine with sudo. Not the answer you're looking for? Unfortunate that some of them are certain nvidia driver installers and 'Steam'. I'm using the 3.5 kernel and via terminal the installation of nvidia driver worked smoothly, I don't know about steam..it's an old laptop Adv Reply Quick Navigation Desktop Environments Top

Is it possible to check where an alias was defined? Find a mistake in the following bogus proof Is there an actual army in 1984?