DEV Community

Discussion on: Development Environment in WSL2

Collapse
 
shivammukherjee profile image
Shivam Mukherjee • Edited

I followed your instructions for x2go but somehow couldn't get gedit to open, it spits:

Unable to init server: Could not connect: Connection refused

(gedit:2439): Gtk-WARNING **: 17:22:21.798: cannot open display: <my-ipv4-address>:0.0

I even tried setting DISPLAY - your export command had an error it said, so I used this instead:

export DISPLAY=$(grep -m 1 nameserver /etc/resolv.conf | awk '{print $2}'):

I've tried setting the DISPLAY variable with the host's IPv4 address to no avail - it simply displays the provided address after cannot open display:.

When I set the port to 22, nothing shows up.

Of course, using the Published Applications menu works - how do I add Godot Engine to this list? I tried installing it but running it throws an error saying that X11 Display is not available.

Okay, I included a .desktop file in /usr/share/applications but when I launch Godot I get this in a dialog box:

Your system does not support XInput 2.
Please upgrade your distribution.

I confirmed that at this time there are no packages above version 1.6.3 for xinput for my distro, and that when I did apt install xinput it found this version.

Collapse
 
derkoe profile image
Christian Köberl

x2go creates it's own X display directly on the host - you can find the port via x2golistsessions. Then you can set the DISPLAY variable to use it:

export DISPLAY=:{PORT}