Home > Open Display > Ubuntu Root Cannot Open Display

Ubuntu Root Cannot Open Display

Contents

So does that mean its an access control restriction? lamachine View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by lamachine 04-13-2010, 02:12 PM #11 lamachine LQ Newbie Registered: Apr 2010 Posts: The time now is 01:26 AM. Try rebooting and it should auto-generate the file I think. his comment is here

Answer: You can fix the "cannot open display" error by following the xhost procedure mentioned in this article. 1. This is the same for all programs, not just Synaptic. I'm logged in as bar: [[email protected] ~]$ sudo -u foo -H firefox Sadly that command failed with the same error as in the question (i.e. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features.

Gedit Cannot Open Display Ubuntu

But if you use ssh -Y remotemachine the remote machine is treated as trusted client. Furniture name for waist-high floor-sitting shelf cabinet thing How can I open the next/previous file alphabetically? The xclock shows gently up and and ./RUN_setup.sh brings the promising dialog box for my Java application. Notably the default configuration of Debian GNU/Linux is to disable the X server listening on the TCP port.

  1. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant.
  2. The best alternative I could find is adding xhost SI:localuser:root (or whatever user) to ~/.xprofile to allow it permanently or to use runuser –stefanct May 21 at 21:34 add a comment|
  3. 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
  4. vBulletin ©2000 - 2016, Jelsoft Enterprises Ltd.
  5. Registration is quick, simple and absolutely free.
  6. How can I open the next/previous file alphabetically?
  7. The following packages have unmet dependencies: ubuntu-desktop: Depends: software-properties-gtk but it is not going to be installed.
  8. gparted uses polkit to get elevated privileges. –muru Apr 26 '15 at 16:59 @muru when I run gparted without gksu I get Root privileges are required for running gparted.
  9. asked 1 year ago viewed 42727 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

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. In Debian $XAUTHORITY is usually not set explicitly. debian x11 kde gui share|improve this question asked Mar 9 '14 at 7:31 Octopus 5634820 stackoverflow.com/a/20612084 this worked perfectly for me. –user88494 Oct 20 '14 at 9:42 add a Gtk Warning Cannot Open Display Ubuntu Henk van Velden Reply With Quote 24-Jan-2011,05:45 #7 please_try_again View Profile View Forum Posts View Blog Entries View Articles Flux Capacitor Penguin Join Date Sep 2008 Posts 7,443 Re: Using gedit

The dash will force user2's .bash_profile to get sourced. Gedit Gtk-warning Cannot Open Display Just add export XAUTHORITY=~/.Xauthority to your .bashrc or explicitly say XAUTHORITY=~/.Xauthority sudo ... 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 tethysgods View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by tethysgods 08-11-2005, 10:40 AM #4 trickykid LQ Guru Registered: Jan 2001 Posts:

Thus the need for setting the DISPLAY environment variable. Gedit Cannot Open Display Ssh Any help guys. What is this line of counties voting for the Democratic party in the 2016 elections? Pl.

Gedit Gtk-warning Cannot Open Display

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 On Fedora 21 running xhost gives a list in the format SI:localuser:USERNAME, so xhost SI:localuser:user2 should work. Gedit Cannot Open Display Ubuntu Boss sends a birthday message. Gedit Cannot Open Display Putty For example, launching Oracle Installer on remote server also gives the "cannot open display" error.

xhost si:localuser:foo And that was it, I was then able to launch Firefox (and other X application) using sudo and the user foo. this content Want to know which application is best for the job? Both gave me an error - xhost: bad hostname "user2" when executing from user1, and No protocol specified xhost: unable to open display ":0" when executed from user2. –sashoalm Jan 10 Not the answer you're looking for? Xhost: Unable To Open Display ":0"

When I try to run xclock as user or root I end up with “Error: Can't open display: 0.0” I'm running virtual server Debian/Lenny. It allows to edit and display the authorization information in the .xauthority file.Have a look at "man xauth". This happens for any GUI app that I try to run. weblink Do you want to help us debug the posting issues ? < is the place to report it, thanks !

The time now is 07:26 PM. Ubuntu Sudo Gedit Unix & Linux Stack Exchange works best with JavaScript enabled current community chat Unix & Linux Unix & Linux Meta your communities Sign up or log in to customize your list. Bug?

What if other loged iin people would be able to open windows on your desktop without your allowance?

cjcoats View Public Profile View LQ Blog View Review Entries View HCL Entries Visit cjcoats's homepage! I had the same question as you but for a normal user. It shouldn't pull in too much [email protected]:~$ aptitude show kdesudo Package: kdesudo State: installed Automatically installed: no Version: 3.4.2.3-2ubuntu2 Priority: optional Section: kde Maintainer: Kubuntu Developers Uncompressed Size: 156k Depends: Gedit No Protocol Specified I just added the line Defaults env_keep+="DISPLAY" to the end of the visudo file at /etc/sudoers.

How do I fix this? 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 Tried both the "xhost +localhost" and "setenv XAUTHORITY /home/foo/.Xauthority" (for both 'foo" and "bar"); neither works (whether alone or in combination). check over here Offline #7 2011-04-05 16:05:11 bergqvistjl Member Registered: 2011-01-05 Posts: 50 Re: Can't run X applications in root - "cannot open display" karol wrote:Have you read https://wiki.archlinux.org/index.php/Ru … ps_as_root ?Yes.

Not the answer you're looking for? Advanced Search

Forum English Get Technical Help Here Applications Using gedit as root: "Gtk-WARNING **: cannot open display:" Welcome! I connected by SSH and couldn't launch Gtk programs (plain X11, like "xeyes", worked however). gdk?

no protocol specified & cannot open display) My solution was to simply add the user foo to the list of authorised access to the X server. also export DISPLAY='IP:0.0′ with local ip, can any one help me to remove this error to run geany #geany Geany: cannot open display Link Peter June 29, 2014, 3:26 am xhost+ Cannot open display: Run 'gedit --help' to see a full list of available command line options. But if I ssh -Y into my Ubuntu 11.04 machine, gedit .bashrc works.

Polyglot Anagrams Cops' Thread How good should one be to participate in PS? Homepage: https://launchpad.net/kdesudo If this helped you, please take the time to rate the value of this post: http://rate.affero.net/andrewthomas/ Adv Reply Page 1 of 2 12 Last Jump to page: Quick How can the US electoral college vote be so different to the popular vote? 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

It's on local host in a very normal terminal window. 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 I walked around with by enabling X11 forwarding on client side => ssh -X [email protected]_ip. For details and our forum data attribution, retention and privacy policy, see here Downloads Support Community Development Help Login Register Forum New Posts FAQ Calendar Forum Actions Mark Forums Read Quick

tethysgods View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by tethysgods 12-10-2010, 04:16 PM #15 cjcoats LQ Newbie Registered: Jul 2004 Location: Polyglot Anagrams Robbers' Thread Find the rate of change at a point on a polynomial How can I save a file to a new location from inside Vim? 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: and a show-stopper for my using debian.

Bug? 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