ransona / dreamserver

support for issues with dreamserver
1 stars 0 forks source link

GUI windows do display via xwindows server or produce error #3

Open ransona opened 1 year ago

ransona commented 1 year ago

Windows:

XForwarding not working. i.e. SSH to the server, run xeyes and get "Error: Can't open display"

  1. Installed VcXsrv
  2. Set the windows environment variable DISPLAY to localhost:10.0
  3. Put "ForwardX11 yes" in the ssh config
  4. Checked in windows command line that the DISPLAY env variable was indeed set
  5. Reconnected to SSH after doing all of the above
  6. Rebooted
  7. Made sure VcXsrv was configured to display 10
  8. Made sure "Disable access control" was checked in VcXsrv setup

In MACOS / XQuartz seemingly resolved by altering ssh config file by adding line: ForwardX11Timeout 0 This disabled timeout.

ransona commented 9 months ago

Adding the following flag to the ssh config files allows connection to be made: ForwardX11Trusted yes

This is perhaps not the correct longterm solution.

ransona commented 1 month ago

couldn't connect to display "localhost:13.0" fixed with: os.environ['DISPLAY'] = 'localhost:10.0'