You can also adjust the volume with pavucontrol. Now save the file, and try running an X program with audio, it should work. Now uncomment the default-server parameter, and add 127.0.0.1 as you see in the picture
Start "" /B "C:\wsl\pulse\bin\pulseaudio.exe" -Dįirst, config.xlaunch just runs the X server at :0 bat script if you like, it should do the following things: Managing everything in a much simpler way I will just run an entire desktop environment, like xfce "DISPLAY=:0 startxfce4" or another X program if you just want it to run a single time. If you want to just run a single program, type So as long you have an X server runninng on windows, you will able to run any X app you like every time you open an Ubuntu shell. bashrc instead, edit that file and in the end add " export DISPLAY=":0" " etc/environment doesn't seem to work, use. Now just type any X program you want to launch, only in that WSL session you'll be able to run X apps.
#XMING WSL WINDOWS#
"export DISPLAY= :0" (where :0 is your X server display number running, you can chose another number if you like but that needs to match with the WIndows X server display number) Then save the config where you like, you'll need that running to start an X server on Windows. Just make sure to choose the same Display number as the DISPLAY=:0 variable on the WSL terminal (More on that later)
#XMING WSL HOW TO#
Well, I won't cover how to install WSL this guide just focuses on making X.11 apps working.įirst of all, configure Xming as you wish, run Xlaunch You need a pulseaudio daemon running on windows, and then setting the correct Pulseaudio client on WSL to point at 127.0.0.1 Regarding the Pulseaudio thing, this is much simpler but similar. For me it seems like (I may be wrong):Ī) WSL Implemented a sort of communication method between WSL unix sockets and windowsī) X.11 just also tries TCP 127.0.0.1 address when connecting to a X server I don't know how can that be possible honestly, if you know, write down in the comments. While I was searching for old guides that are using SSH with X11 tunneling I discovered that you can do that also by just running an X server on Windows running and exporting the correct DISPLAY environment variable. Let's understand how this is possible first. No hardware accelerated support (Can be fixed in the future) This guide will show how to run X11 graphical apps through the WSL environment, WSL stands for Windows Subsystem for Linux and is a sort of reversed wine, it's known for not being able to run X11 apps natively, but there is a really simple way to do that without SSH X11 forwarding, also with pulseaudio support. Install SoapySDR and gr-soapy sudo apt-get install -y pkg-config swig liborc-0.4-dev soapysdr0.Hi. Replace 192.168.1.1 with the IP address of your host Windows PC. Run the following command from Command Prompt in Windows to launch GNU Radio Companion without entering the WSL bash terminal. Place the export command at the end of ~/.profile to have the DISPLAY environment variable set each time a WSL bash terminal is launched. Inside the WSL instance run the following commands to launch GNU Radio Companion. Sudo apt-get install gnuradio xterm python3-gi gobject-introspection gir1.2-gtk-3.0 Launch a WSL2 instance and run the following commands: sudo add-apt-repository ppa:gnuradio/gnuradio-releases Check "No Access Control" then click next, then finish. Start "XLaunch" from the Start Menu and click next until the "Specify parameter settings" screen. Uncheck "Launch Xming" on the last setup screen.
#XMING WSL DOWNLOAD#
Download and install Xming with all default settings.