Responsive image

After much frustration and digging I’ve come up with the following steps to install the Windows Subsystem for Linux on Windows 10.

To enable the Windows Subsystem for Linux (WSL) on Windows 10:

  1. Open Powershell as Administrator
  2. Run Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
  3. Reboot
  4. Open Powershell as Administrator
  5. Run lxrun /install
  6. Reboot
  7. Open Start -> Bash on Ubuntu on Windows
  8. Run sudo apt-get purge snapd lxd lxd-client
  9. Run sudo perl -p -i -e 's/Prompt=lts/Prompt=normal/g' /etc/update-manager/release-upgrades
  10. Run sudo do-release-upgrade
    1. Follow installation instructions
  11. Optionally reboot

These steps assume you have already gone through the steps of enabling the Linux Subsystem for Windows 10 and that you have installed a distribution, prferrably a Debian-based distribution such as Ubuntu.

  1. Install VcXsrv Windows X Server,
  2. Inside your Linux Subsystem for Windows 10 install xfce4-terminal.
    1. Run sudo apt-get install xfce4-terminal
  3. Create a Shortcut that launches the following command:
    1. C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -windowstyle hidden -Command "iex \"Bash -c 'SHELL=/bin/bash DISPLAY=:0 xfce4-terminal'\" "
  4. Launch VcXsrv.
    1. When prompted for “Select display settings”, select Multiple Windows.
    2. Select “Display Number” as -1.
    3. Click Next.
    4. Select “Start no client” and then click Next.
    5. On the page for “Extra Settings,” make sure the following are checked:
      1. Clipboard”
      2. Primary Selection”
      3. Native opengl”
    6. Leave “Disable access control” unchecked.
    7. Click Next.
    8. On the “Configuration complete” page, you may choose to save it or just click Next.
  5. Launch the shortcut you just created.
  6. ???


comments powered by Disqus

~ About me ~
I am a human who enjoys writing code.
~ Follow me ~
~ GitHub Recent Activity ~

Status updating...

~ Interesting Links ~