Skip to content
Contact Support

Windows Subsystem for Linux (WSL)

Prerequisite

  • Windows 10 (version 2004) or later.

Windows Subsystem for Linux is a feature that allows you to run a Linux OS that seemlessly functions alongside and within your Windows Desktop.

WSL is enabled by default on Windows (since later releases of Windows 10). However, your IT department may have disabled WSL. If the instructions below do not work, please reach out to your IT helpdesk.

Installing WSL

Microsoft provides setup instructions for installing both WSL and a Linux distribution (also known as a distro) .

To check if WSL is already installed on your Windows PC, open Windows Command Prompt, Terminal, or PowerShell and run wsl --list --online. This should return a list of available Linux distros that you can install. We will be using the Ubuntu distro in our examples below as it is the most commonly used in WSL. However, if you have a preferred distro, you are welcome to use it instead.

Installing a Linux Distribution

Distros can be obtained through the Microsoft Store, or using command line.

  • Open the Microsoft store, search for 'Ubuntu' to find and install the latest version of the Ubuntu LTS it should look something like 'Ubuntu 24.04 LTS' , though you may find a later version.

MS store MS store

  • Close the “Add your Microsoft account.. dialogue box as you do not need an account for the installation.You may have to click “Install” for a second time (If the above dialogue box reappears, close as before and download/install will begin). The screenshots below show an older version of Ubuntu, but the process should still be valid for newer versions.

MS store MS store

  • Open 'Windows Power Shell' and type
wsl --install -d Ubuntu-24.04
  • When it has finished downloading, the Ubuntu Terminal will appear and prompt you to “Enter new UNIX username” and press Enter.

    This can be anything you want, although we reccomend using the same as your Windows username. ubuntu1.png

  • Now, type in a new password for the username you picked and press Enter (this password can be anything you want, although you shouldn't need to enter it again). Then retype the password to confirm and press Enter. ubuntu2.png

Installing Windows Terminal (optional)

Microsoft has also developed a solid terminal emulator, called Windows Terminal. This can be found in the Microsoft Store and best of all, it is free. You can run your WSL, PowerShell and most other command line tools from within MS Terminal.

WSL and VS Code integration (optional)

You can use VS Code and WSL together, creating a powerful development environment. More details on integrating VS Code and WSL can be found here: WSL & VS Code

You may find having a symbolic link to your Windows filesystems useful.

Within Ubuntu terminal run the following command replacing c with the name of your Windows filesystems found in /mnt/.

ln -s /mnt/c/Users/YourWindowsUsername/ Cdrive

Next?