Jeremy's Notes

The Reverie of a Techie


What is this thing?

You've stumbled across a blog that chronicles the interests of its author. You'll find technology how-tos, demonstrations, recommendations, and reviews. Stand by!

Follow me on Twitter, Facebook, and other social networks.

Windows Subsystem for Linux (WSL) Setup on Windows 10

Penguin by Lars Meiertoberens from the Noun Project

This setup guide outlines the steps required to set up the Windows Subsystem for Linux (WSL) feature on a Windows 10 workstation.

Install WSL Feature through PowerShell

  1. As an admin/privileged user, open up PowerShell using “Run as Admin”.
  2. Within PowerShell, run the following commands to enable both WSL1 and WSL2 (VMs):

    dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestar
    dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
  3. Within PowerShell, download and install the Linux Kernel Update package using the following commands:

    Invoke-WebRequest –Uri
  4. Within PowerShell, restart the Windows 10 workstation using the following command:

    Restart-Computer -Force

Setup Linux Environment (Ubuntu 20.04 LTS)

  1. Open PowerShell with the standard user account of the employee who will be utilizing WSL.
  2. Run the following commands within the PowerShell window to download and setup Ubuntu 20.004 within WSL:

    curl.exe -L –o ubuntu-2004.appx
    Rename-Item .\ubuntu-2004.appx .\
    Expand-Archive .\
    cd .\ubuntu-2004\
  3. You will now be in the initial setup stages of the Ubuntu environment, where you can set up the initial Linux user. Once the user is created and you are dropped into the Linux shell, you should run the following commands to get the latest security and bug updates:

    sudo apt-get update && sudo apt-get upgrade -y 
  4. Enjoy your day!


This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.

Read our privacy policy and how we use cookies


Enter your comment:
If you can't read the letters on the image, download this .wav file to get them read to you.
blog/wsl-quick-setup.txt · Last modified: 2021/01/12 14:24 by Jeremy McReynolds