Windows Subsystem for Linux

The Windows Subsystem for Linux (WSL) is available as a feature on Windows 10 and out-of-the-box supports Ubuntu running within Windows. This is the simplest option if you have Windows 10 (1709 or later) installed (see Settings -> System -> About). It also requires the installation of XMing or VcXsrv. Microsoft also released WSLv2 in May 2020 to incorporate the Linux kernel directly within Windows, so as to deliver significant performance gains and support more applications.

To get started:

  1. Install XMing on Windows (download, run, and choose the defaults for the installation).
  2. Go to ‘Turn Windows Features On or Off’ (Control Panel -> Programs -> Programs and Features), tick on the box ‘Windows Subsystem for Linux’ to install WSL and reboot.
  3. Go to Microsoft Store and search for the latest Ubuntu distribution to install.
  4. Launch Ubuntu from the Start menu or else type the command “ubuntu” in the Powershell.
  5. For GUI applications run the command $ export DISPLAY=:0 in the Ubuntu terminal window.

Refer to the GNU/Linux Desktop Survival Guide for further details.