Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- How to get X11 Linux GUI programs to run on Windows Subsystem for Linux 2 with sound:
- add these lines to the very bottom of ~/.bashrc :
- # Export X11 to VcxSrv or whatever Windows X Server [REQUIREMENT: RUN VCXSRV
- # with the -ac program switch and make sure it's running!]:
- export WSL_HOST=$(dig +noall +answer $(hostname -s) | tail -1 | cut -f 6)
- export DISPLAY=$WSL_HOST:0.0
- # Export PulseAudio to Windows [REQUIREMENT: install PulseAudio via Chocolatey
- # and install as service with nssm!]:
- export PULSE_SERVER=$(dig +noall +answer $(hostname -s) | tail -1 | cut -f 6)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement