-
-
Notifications
You must be signed in to change notification settings - Fork 204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues with X #68
Comments
type in terminal or ~/.bashrc |
Yes, in my environment it works correctly by adding it to bashrc. |
It's in my bashrc. It's setup exactly how I have my Ubuntu WSL setup. Yet it doesn't work unless I have my Ubuntu WSL connected to the remote machine (as shown in my video). |
@yuk7 do you have a telegram account ?? |
@elswerky |
thx for reply ,, i thought it would be a rapid and easy way to talk to you |
Are you sure that you're running a login shell for Arch? If not, |
I'm having the same issue. I have |
I needed to specify my ip address in the DISPLAY (ie. DISPLAY=192.168.xx.xx:0). I actually needed to do this with Ubuntu as well. I've never gotten it to work with just =:0 |
It still doesn't work for me unfortunately. I tried with |
Follow steps to fix WSL2 with X11-server Xming issue:
$ wsl -l -v
NAME STATE VERSION
* Ubuntu Stopped 2
Arch Stopped 2 If not, run: $ wsl --set-version Arch 2
$ cat /etc/resolv.conf | grep nameserver | awk '{ print $2 }'
172.24.240.1
$ export DISPLAY=172.24.240.1:0
## Install xeyes
## $ yes | pacman -S xorg-xeyes
$ xeyes
You can also add the script into your ".bashrc" file by running command: $ cat <<EOF >> ~/.bashrc
export HOST_IP="\$(cat /etc/resolv.conf | grep nameserver | awk '{ print \$2 }')"
export DISPLAY="\$HOST_IP:0"
EOF |
IMPORTANT
Please read README and Known issues before creating the issue.
Please fill out the below information:
Describe the issue
Any attempt to use X Forwarding fails (any attempt to run any software with a GUI complains about not being able to connect to a display), but if Ubuntu WSL is running and connected to a remote server, ArchWSL can use X-Forwarding just fine. Another thing I have noticed that even though I have the display variable in .bashrc, local software with a GUI will refuse to run until I manually export the display variable regardless if another WSL distro is running.
To Reproduce
Set up the prerequisites for using X on WSL (install an X server, make sure display variable is set, etc etc) then attempt to use anything that requires X (Geany for example).
Expected behavior
X to work.
Screenshots
Here is a video of the issue
Enviroment:
Additional context
As mentioned before I have all the requisites for X Forwarding to work via WSL. X Server (Vcxsrv), the relevant variable exported, the relevant configs in /etc/ssh/ssh_config, etc etc.
The text was updated successfully, but these errors were encountered: