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), 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.
X11Forwardingon the ubuntu one, and that you havexbase-clientsinstalled and that you can start Xapps on the mac on the terminal you're making ssh connection from. (Check that$DISPLAYis set on the terminal you run ssh from. – Manwe Feb 27 '12 at 08:16$DISPLAYwould outputlocalhost:10.0either. In Putty, my X11 location is set tolocalhost:0.0. Force quitting XMing and restarting fixed the issue without changing anything. – Shailen Mar 01 '18 at 17:14(eog:9994): Gtk-WARNING **: cannot open display: :0```
– skyuuka Aug 18 '19 at 09:22$ echo $DISPLAY, not just$ $DISPLAY– xgqfrms Apr 14 '23 at 10:30