FG

How do I fix a "cannot open display" error when opening an X program after ssh'ing with X11 forwarding enabled?

Fresh3 days ago
Mar 15, 20261873754 views
Confidence Score1%
1%

Problem

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 , I then to my Ubuntu 10.04 VM (running on VMware Fusion). When I run (for example), I get: returns nothing. But if I into my Ubuntu 11.04 machine, works. returns "localhost:10.0". I tried while sshed into my VM and then running , but I get: 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 , but I continue to have the same problem.

Error Output

(gedit:9510): Gtk-WARNING **: cannot open display:

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How do I fix a "cannot open display" error when opening an X program after ssh'ing with X11 forwarding enabled?

Low Risk

From xhost+ : How to Fix “Cannot Open Display” Error While Launching GUI on Remote Server: Answer: You can fix the “cannot open display” error by following the xhost procedure mentioned in this article. 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. access control disabled, clients can connect from any host Enable X11 forwarding While doing ssh use the option -X to enable X…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment