Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Not Working #25

Open
chelseas opened this issue Jul 22, 2020 · 5 comments
Open

Not Working #25

chelseas opened this issue Jul 22, 2020 · 5 comments

Comments

@chelseas
Copy link

My remote server is a machine running ubuntu 16.
It has a display, but it is far away from me, in my office, so I am trying to use Remote X11 and Remote X11 (SSH) to forward the gui to my local machine.

I have installed both and the logs seem fine.
But when I run a process that requires the display I was getting this message:

GLFW error (code %d): %s 65544 b'X11: The DISPLAY environment variable is missing'

So I ran:

export DISPLAY=0

which then changed the error message to:

GLFW error (code %d): %s 65544 b'X11: Failed to open display 0'

Logs from Remote X11:

Setting up display for remote "ssh-remote".
Connecting with SSH. See Remote X11 (SSH) logs for more details.
DISPLAY = localhost:10.0
LIBGL_ALWAYS_INDIRECT = 1

Configuration changed. Updating display...

Setting up display for remote "ssh-remote".
Connecting with SSH. See Remote X11 (SSH) logs for more details.
DISPLAY = localhost:10.0
LIBGL_ALWAYS_INDIRECT = 1

Logs from Remote X11 (SSH):

Connecting to chelseas@myIP port 22
Connection ready. Setting up display...
Echo display command is: bash -c "echo DISPLAY=$DISPLAY"
----- Begin output from host -----

Welcome to Ubuntu 16.04.6 LTS (GNU/Linux 4.15.0-88-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

291 packages can be updated.
0 updates are security updates.

New release '18.04.4 LTS' available.
Run 'do-release-upgrade' to upgrade to it.

*** System restart required ***
Last login: Tue Jul 21 17:15:35 2020 from 171.66.180.194

bash -c "echo DISPLAY=$DISPLAY"
chelseas@Cupertino:~$ bash -c "echo DISPLAY=$DISPLAY"
DISPLAY=localhost:10.0

----- End output from host -----
Display ready: localhost:10.0

And the settings are:
Remote X11:Display
0

@joelspadin
Copy link
Owner

What OS is your local machine running? As noted in #21 there are some issues when the local machine is running Linux that I haven't yet been able to figure out.

@chelseas
Copy link
Author

My local machine is running macOS Catalina

@joelspadin
Copy link
Owner

I don't have any way to test on a Mac, but someone mentioned in another issue that they need to connect to something other than localhost. on Mac. I'm working on adding a setting to change that.

@dtamayom
Copy link

I am having the same problem on a Mac, could please point out the issue where someone makes it work by connecting to something other than localhost? Otherwise, I hope you manage to add the setting, it would be a life saver. Thank you!

@joelspadin
Copy link
Owner

I just published version 1.5.0, which changes to using a Unix socket to communicate with the X11 server on Linux and macOS. It is now working for me on Linux, but I don't have any way to test on macOS. Could you check if this is fixed now?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants