Home > Open Display > Ubuntu Sudo Cannot Open Display

Ubuntu Sudo Cannot Open Display

Contents

Reply With Quote 28-May-2013,11:25 #8 wolfi323 View Profile View Forum Posts View Blog Entries View Articles Global Moderator Join Date Jan 2010 Posts 19,433 AW: Re: sudo doesnt open X programs 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 The ‘audio' group approach might have worked for you, but I tried it and it doesn't work for me (good attempt, though!). Jim -- Jim Henderson openSUSE Forums Administrator Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C Reply With Quote 28-May-2013,20:52 #10 dhananjaya_amarakoon View Profile View Forum Posts View Blog Entries View Articles Newcomer navigate here

ailurus: Depends: gksu but it is not going to be installed. This happens for any GUI app that I try to run. Solving a discrete equation TIKZ: foreach not compatible with calc-library? Can you dispel a magic effect you can't perceive? http://askubuntu.com/questions/414785/cant-open-gedit-as-root

Gedit Cannot Open Display Ubuntu

However, I am not a gamer, so there may be a different set of problems I have not run into. Then you use sudo again running xhost as root. checkbox-gtk: Depends: gksu but it is not going to be installed. While there are commands to run graphical applications as root, you are strongly advised to use the nano text editor, which normally is run from the terminal, for editing files as

Seeing Lennart's and Kay's presentation on DevConf about the future of systemd, they are working on the issue in an attempt to bring useful application sandboxes [un]like on Android. Basically if you see any errors regarding D-Bus, you can expect some loss of functionality. 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. Gtk Warning Cannot Open Display Ubuntu How can I claim compensation?

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: 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 need to have this capability to open files in Gedit as root. Boring.

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 vote accepted Gedit Cannot Open Display Ssh thanks. I have just added the line: Defaults env_keep="DISPLAY XAUTHORITY" at the end of visudo. When does TNG take place in relation to DS9?

Gedit Gtk-warning Cannot Open Display

The dconf errors are arguably a bug and you might lose some functionality because of that - application settings might not be loaded nor saved. Why were pre-election polls and forecast models so wrong about Donald Trump? Gedit Cannot Open Display Ubuntu I just did "xhost +" as user "diego" and now sudo is able to run X programs. Gedit Cannot Open Display Putty If this is your first visit, be sure to check out the FAQ.

I have just added the line: Defaults env_keep="DISPLAY XAUTHORITY" at the end of visudo. http://rinfix.com/open-display/ubuntu-vnc-cannot-open-display.html more stack exchange 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 PS: I did this in order to launch Firefox in a kind of "jail" (to avoid a vulnerability like for pdf.js in the future). Consider this a best-effort solution - it might work perfectly for some applications, but you can't expect it to work in general. Xhost: Unable To Open Display ":0"

  • I should clarify that this is not via ssh.
  • I hope this helps others.
  • So leave out the sudo: Code: [email protected]:~> xhost + Now you, diego, allow everybody (including root) to open a window on your display.
  • Gtk-WARNING **: cannot open display:0X11 Forwarding Error:0ssh X11 forwarding not working, Can't open display: localhost:11.0 Hot Network Questions Polyglot Anagrams Cops' Thread How good should one be to participate in PS?
  • Any help guys.
  • How to handle swear words in quote / transcription?
  • GO OUT AND VOTE Start a coup online without the government intervening How can I save a file to a new location from inside Vim?

When I run gedit .bashrc (for example), I get: (gedit:9510): Gtk-WARNING **: cannot open display: set | grep DISPLAY returns nothing. vBulletin 2000 - 2016, Jelsoft Enterprises Ltd. but it request root password but my requirement is open a gui application ( with root permission ) from normal user without given root password. his comment is here Select Articles, Forum, or Blog.

When I tried to buy a game in Steam, I needed to log in to my Moneybookers account. Ubuntu Sudo Gedit Ugh. I do not really expect malware in these tools, but more likely serious bugs.

TIKZ: foreach not compatible with calc-library?

I like to know that the unknown script can't delete my personal data by accident. 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. Nub:A small lump or protuberance Adv Reply October 19th, 2010 #4 mcgiwer View Profile View Forum Posts Private Message First Cup of Ubuntu Join Date Jan 2009 Beans 5 Re: Sudo Gedit /etc/hosts Can an object *immediately* start moving at a high velocity?

Not the answer you're looking for? more stack exchange 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 Use kdesu, gnomesu or xdg-su instead. weblink Now everything should run just fine with sudo.

you can also edit files using nano or vim: sudo vim /etc/X11/xorg.conf dracayr Adv Reply July 13th, 2008 #3 morbid_bean View Profile View Forum Posts Private Message Visit Homepage Cookies But it works, no xhost adjustments necessary, I just tested it. Unfortunately it is a part of kde-runtime package, so it installs quite a lot of additional software for GNOME users. Share this:GoogleTwitterFacebookMoreRedditTumblrLinkedInPinterestEmailPrintLike this:Like Loading...

Professor Lewin: "Which string will break?" / Me: "That one." / Professor Lewin: "Wrong!" Teenage daughter refusing to go to school How to reduce the width of the equation in a It's all about access permissions to /dev/dri/card0 file, which represents your graphics card. If that magic routing didn't work for you, or you need to play audio even after PA is restarted, this is what I involuntarily discovered: You can copy ~kparal/.pulse-cookie to ~gamer/.pulse-cookie Code: [email protected]:~$ sudo synaptic No protocol specified (synaptic:3260): Gtk-WARNING **: cannot open display: :0.0 Or using gksu I just get the password prompt and then nothing happens.

If your command violates some security settings you'll receive an error instead. xauth list then sudo -u gamer xauth add “the line from xauth list that you want, according to your display” February 25, 2013 at 17:03 Reply Kamil Páral says: Thanks! And indeed, a plain xhost + does allow "anybody" to open windows before your very nose . Sound I quickly found out that sound is not routed for these redirected applications.

Probably a bug. I am not running this through SSH or VNC. Code: [email protected]:~$ xhost access control enabled, only authorized clients can connect SI:localuser:matt [email protected]:~$ sudo xhost No protocol specified xhost: unable to open display ":0.0" Adv Reply October 12th, 2010 #7 so i say well great then ill just go ahead and edit the graphical way by navigating through natulius....

In Debian $XAUTHORITY is usually not set explicitly.