This is more like a notebook entry, rather than full tutorial.

References:

In this post I will describe how to install WSL on Windows 10, configure X11 to run any Linux application in GUI mode, and fix missing sound problem.

Base setup

After this step it’s possible to enter Linux environment, but it has few pitfalls.

  1. Enable developer mode in settings, or use command line alternative (run as Administrator)
  2. Enable Windows Subsystem for Linux
  3. Restart Windows
  4. Run cmd and:
    1. Either execute bash, then follow an installation process
    2. Or, lxrun /install /y to install windows with root user and without password (a user can be added later on)

Enhancement

Fix language

ℹ️ Linux inherits original Windows language, so in case on non-English host system, when you feel odd to use non-English️ Linux, you must change it by a bash command:

Fix sudo

ℹ️ Linux installation inherits Windows host name, but it is not configured fully, sudo needs to have updated /etc/hosts file with a right host name

Fix D-BUS

 

X11 Server

Default export

Windows server

I use xming and it works fine.

Audio support

Solution bases on issue.

Add and install pulse audio

Install pulse audio on Windows

ℹ️ it requires unzip to be installed on Linux.

GIST: install_pulseaudio.bat

The script does:

  • download pulse audio from: http://bosmans.ch/pulseaudio/pulseaudio-1.1.zip
  • unpack it into: "%AppData%\PulseAudio
  • Creates a start script in %userprofile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\start_pulseaudio.vbe
  • With content: ws.run "%AppData%\PulseAudio\bin\pulseaudio.exe --exit-idle-time=-1",0
  • Modifies default settings for pulse audio

 

 
25 Kudos
Don't
move!