Nautilus Cannot Open Display Error
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about gtk warning cannot open display ubuntu Stack Overflow the company Business Learn more about hiring developers or posting ads with gtk warning cannot open display ssh us Super User Questions Tags Users Badges Unanswered Ask Question _ Super User is a question and answer site for computer gtk warning cannot open display gedit enthusiasts and power users. 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 top
Xhost: Unable To Open Display ":0"
How do I fix a “cannot open display” error when opening an X program after ssh'ing with X11 forwarding enabled? up vote 50 down vote favorite 22 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 +, I then ssh -Y to my Ubuntu 10.04 VM (running on VMware Fusion). When I run gedit .bashrc (for example), gtk warning cannot open display raspberry pi I get: (gedit:9510): Gtk-WARNING **: cannot open display: set | grep DISPLAY returns nothing. But if I ssh -Y into my Ubuntu 11.04 machine, gedit .bashrc works. echo $DISPLAY returns "localhost:10.0". 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 of the two difference Ubuntu machines that would explain why one works and the other doesn't? 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. 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,92893236 migrated from serverfault.com Jul 13 '11 at 18:31 This question came from our site for system and network administrators. 2 Does the Ubuntu 10.04 box have the proper tools for X11 installed? Install xbase-clients, if it isn't installed already. –Zoredache Jul 13 '11 at 18:22 I installed it but still have the same problem. (See above.) –Daryl Spitzer Jul 13 '11 at 18:29 Yes. Just to be sure, I restarted the VM (and reconnected through SSH afterward). –Daryl Spitzer
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 answers to any questions you might have Meta Discuss the workings and policies of this site About gtk warning cannot open display linux Us Learn more about Stack Overflow the company Business Learn more about hiring developers
Gtk Warning Cannot Open Display Centos
or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question
Gtk Cannot Open Display Chrome
and answer site for Ubuntu users and developers. 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 http://superuser.com/questions/310197/how-do-i-fix-a-cannot-open-display-error-when-opening-an-x-program-after-sshi up and rise to the top sudo nautilus results in “cannot open display” error up vote 1 down vote favorite $ gksudo nautilus Failed to connect to Mir: Failed to connect to server socket: No such file or directory Unable to init server: Could not connect: Connection refused (nautilus:6072): Gtk-WARNING **: cannot open display: Troubleshooting attempts: Same error when using gksu and sudo. Also tried export DISPLAY=:0.0. Finally http://askubuntu.com/questions/665873/sudo-nautilus-results-in-cannot-open-display-error even tried installing lightdm-gtk-greeter and appending [SeatDefaults] in /etc/lightdm/lightdm.conf with greeter-session=lightdm-gtk-greeter BTW: I'm running Ubuntu 15.04 x64 on a System76 laptop. command-line unity lightdm display-manager mir share|improve this question asked Aug 26 '15 at 4:23 A T 71041120 add a comment| 2 Answers 2 active oldest votes up vote 0 down vote look for nautilus-admin package (search in synaptic-packet-manager )...and try to install it maybe will fix your problem credits to : https://bitbucket.org/brunonova/nautilus-admin share|improve this answer answered Aug 26 '15 at 13:01 Eugenio Desideri 816 nautilus is just an example. Same error occurs when launching any GUI program from Terminal using sudo/su/gksudo/gksu. –A T Aug 28 '15 at 12:11 add a comment| up vote 0 down vote From Arch Wiki: By default, and for security reasons, root will be unable to connect to a non-root user's X server. There are multiple ways of allowing root to do so, if it is necessary. Before running gksudo nautilus you should allow root access. To do this run: xhost +SI:localuser:root These also works: xhost local:root or just xhost +. You can disallow with xhost -SI:localuser:root and xhost -. See more here. share|improve this answer edited Aug 21 at 12:38 answered Aug 20 at 16
a remote server, I'm getting the "cannot open display:" error, as shown below. How do I fix this? For example, while launching the gedit on remote server, I got the following message. (gedit:3658): Gtk-WARNING http://www.thegeekstuff.com/2010/06/xhost-cannot-open-display **: cannot open display: I get similar message when I try to open any GUI application. For example, launching Oracle Installer on remote server also gives the "cannot open display" error. Answer: You can fix the "cannot open display" error by following the xhost procedure mentioned in this article. 1. 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 open display from any host. $ xhost + access control disabled, clients can connect from any host 2. Enable X11 forwarding While doing ssh use the option -X to enable X11 forwarding. $ ssh username@hostname -X Enable trusted X11 forwarding, by using the -Y option, $ ssh username@hostname -Y 3. Open GUI applications in that host After opening ssh connection to the remote host as explained above, you can open any GUI application which will open it cannot open display without any issue. 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 application to be displayed. Tweet >Add your comment If you enjoyed this article, you might also like.. 50 Linux Sysadmin Tutorials 50 Most Frequently Used Linux Commands (With Examples) Top 25 Best Linux Performance Monitoring and Debugging Tools Mommy, I found it! – 15 Practical Linux Find Command Examples Linux 101 Hacks 2nd Edition eBook Awk Introduction – 7 Awk Print Examples Advanced Sed Substitution Examples 8 Essential Vim Editor Navigation Fundamentals 25 Most Frequently Used Linux IPTables Rules Examples Turbocharge PuTTY with 12 Powerful Add-Ons Tagged as: export DISPLAY, xhost+ Command, xhost+ Examples { 11 comments… add one } hari June 25, 2010, 9:10 am is # xhost - will block from using X server from remote login to this system? for ex: system1 # xhost - system2 # ssh -X system1 system1 # gedit new.txt it opening a new file, it not blocking X server. Link Jeff June 25, 2010, 9:39 am love this site, love these articles but xhost? pfft! hari, when you're X11 forwarding, you aren't using xhost for X authentication. the client is using xauth authentication mechanism. the server and client share a secret "cookie"(xauth