Home > Open Display > Ubuntu Sudo Cannot Open Display

Ubuntu Sudo Cannot Open Display

Contents

Why on earth can't I just run steam under the gamer account inside my kparal session and copy and paste it? I'm not super sure why it's required for some apps and not others, and I don't have a clue why it would be doing it for gparted of all things. At this point most of your graphical applications should work just fine (the only problem I've found is that the global GNOME menu doesn't work with them). OBDII across the world? Check This Out

Then just set it and export it. TIKZ: foreach not compatible with calc-library? malware added to some of their game updates), they certainly have some security checks and policies, but how reliable are those? glib? http://askubuntu.com/questions/414785/cant-open-gedit-as-root

Gedit Cannot Open Display Ubuntu

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 Send to Email Address Your Name Your Email Address Cancel Post was not sent - check your email addresses! Then you can forward audio by sudoing to gamer, exporting PULSE_SERVER=localhost variable and running the app you wish. (It should be also possible to route the audio using unix sockets (instead Subscribed!

Epilogue That's it, I can finally display graphical applications (even games) from a different user account inside my desktop session. The other approach is to add gamer to the video group, which owns the file. Boss sends a birthday message. Gtk Warning Cannot Open Display Ubuntu In Debian $XAUTHORITY is usually not set explicitly.

Windows can do it! Gedit Gtk-warning Cannot Open Display Or if I am running super-boot-manager I am getting following error buc: cannot connect to X server Please help. is there any possibility of getting this done. http://askubuntu.com/questions/614387/gksu-gtk-warning-cannot-open-display-0 A temporary file is just a pipe with an attitude and a will to live.

But I quickly found out that calling Firefox via sudo won't allow it to access audio nor the video hardware. Gedit Cannot Open Display Ssh Code: sudo nautilus No protocol specified cannot open display: Run 'nautilus --help' to see a full list of available command line options. Any ideas what the cause of this could be? –d_inevitable Apr 27 '15 at 22:21 Yes, it's a security feature of X. Looking forward to it as well as to many flamewars.

Gedit Gtk-warning Cannot Open Display

DistroXubuntu Re: No protocol specified cannot open display: Closed, necromancy. http://unix.stackexchange.com/questions/118811/why-cant-i-run-gui-apps-from-root-no-protocol-specified To make this permanent, edit the ~/.xinitrc file like this: Run gedit ~/.xinitrc Edit the file to look like this (it should be empty to being with): #! /bin/bash xhost +localhost Gedit Cannot Open Display Ubuntu February 19, 2013 at 15:55 Reply Kamil Páral says: That might be a good advice for KDE guys. Gedit Cannot Open Display Putty and everything should work.

Same symptom of empty $DISPLAY variable (no help setting/exporting it manually). his comment is here 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 Now, try to play some sound: [email protected] ~ $ su - gamer -c paplay /usr/share/sounds/alsa/Front_Center.wav (or just run Totem/Firefox/etc) If you are lucky (unlike me), your audio now works out of I added it to ~kparal/.profile instead like this: # allow gamer to display apps on this X server # (don't do that for local non-X and any remote connections) if [ Xhost: Unable To Open Display ":0"

I had similar problems on Ubuntu 12.10. Ask Ubuntu works best with JavaScript enabled UbuntuCommunityAsk!DeveloperDesignDiscourseHardwareInsightsJujuShopMore ›AppsHelpForumLaunchpadMAASCanonical current community chat Ask Ubuntu Ask Ubuntu Meta your communities Sign up or log in to customize your list. DistroUbuntu 12.10 Quantal Quetzal Re: Upgrade to 10.10 root can't open display If you run the command xhost from the terminal, what output do you get? this contact form It took me quite some time to find this all out.

Browse other questions tagged display sudo xserver or ask your own question. Ubuntu Sudo Gedit March 29, 2013 at 16:41 Reply Ritesh Raj Sarraf says: Thanks for preparing this article. C# TBB updating metadata value My boss asks me to stop writing small functions and do everything in the same loop As a monk, can I use Deflect Missiles to protect

For details and our forum data attribution, retention and privacy policy, see here Arch Linux HomePackagesForumsWikiBugsAURDownload Index Rules Search Register Login You are not logged in.

  • Perhaps you were tinkering and tightened security somewhere? –Mark Paskal May 4 '15 at 0:16 Well its happening with all apps, even gedit.
  • But if I ssh -Y into my Ubuntu 11.04 machine, gedit .bashrc works.
  • How to handle a common misconception when writing a Master's thesis?
  • display sudo xserver share|improve this question edited Aug 14 '12 at 8:17 Peachy 4,17252637 asked Aug 14 '12 at 7:32 Apurba 5912720 Where do you run super-boot-manger from? –Thor
  • Tango Icons Tango Desktop Project.

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). 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 Everything mentioned here was discovered through a trial-and-error approach, I don't have any expertise in this area. Sudo Gedit /etc/hosts If this helped you, please take the time to rate the value of this post: http://rate.affero.net/andrewthomas/ Adv Reply October 12th, 2010 #9 lechien73 View Profile View Forum Posts Private Message

Hi Use xdg-su, for example; Code: xdg-su -c "gedit /etc/hosts" -- Cheers Malcolm (Linux Counter #276890) openSUSE 11.1 x86 Kernel 2.6.27.7-9-default up 3 days 9:58, 3 users, load average: 0.30, 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 I also managed to get audio working by adding myself to the ‘audio' group, which seems easier than your solution (which I haven't tried). navigate here Here is a more detailed error message: [email protected] ~ $ su - gamer Password: [email protected] ~ $ LIBGL_DEBUG=verbose glxinfo | grep render libGL: OpenDriver: trying /usr/lib64/dri/i965_dri.so libGL error: failed to open

February 25, 2013 at 23:48 Reply Jak spouštět grafické aplikace přes su nebo sudo | Fedora.cz says: […] Zdroj: blog autora. […] March 9, 2013 at 10:04 Reply Serrano says: Thank To do that you have to run sudo visudo it will open the file then add the above line at the end. Reply With Quote 21-Jan-2009,14:35 #6 hcvv View Profile View Forum Posts View Blog Entries View Articles Global Moderator Join Date Jun 2008 Location Netherlands Posts 19,942 Re: sudo doesnt open X You need to add the xhost command to the .xinitrc file for the user so it runs when you start the session. –Mark Paskal May 4 '15 at 22:50

Missing } inserted. \int dx = x + C & more hot questions question feed about us tour help blog chat data legal privacy policy work here advertising info mobile contact What is the most someone can lose the popular vote by but still win the electoral college? thanks. share|improve this answer edited Jul 10 '12 at 21:28 slhck 127k38322366 answered Jul 10 '12 at 21:26 Oracle2066 211 add a comment| up vote 2 down vote If you have this

The time now is 01:13 AM. up vote 27 down vote From xhost+ : How to Fix “Cannot Open Display” Error While Launching GUI on Remote Server : Answer: You can fix the “cannot open display” error I tried xhost + and then sudo gui_app.sh ( I have already added relevant entry in /etc/sudores file ) but it give Error: Can't open display: (echo $DISPLAY gives localhost:11.0) Any It was working fine before I installed KDE.

Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken. Apr 26 '15 at 16:50 @A.B. Thanks to all, specially @Thor for kind help share|improve this answer answered Aug 28 '14 at 9:22 Apurba 5912720 1 Defaults env_keep="DISPLAY" works for me. –bagustris Mar 9 '15 at How do you enchant items with Lapis Luzuli?

After unpacking 631kB will be freed.