Running Linux on Windows 10
Linux on Windows 10
So you want to run Linux on your Windows 10, perhaps to learn something new or because you want to see what all the fuss is about.
Using the Microsoft Windows Store, you can easily install Linux on your Windows installation.
I’ve made this small guide as a reminder for myself and thought I’d share it publicly.
Perhaps someone else also appreciates it :)
Pre-requisites
Enable Windows Subsystem for Linux (WSL)
To run a GNU/Linux environment directly on your Windows install, you will need WSL.
For more information about WSL, please read here.
To enable WSL, please use this PowerShell command (run as administrator):
|
|
Enable VM feature
Running Linux requires you to have the Virtual Machine Platform feature installed.
Run this PowerShell cmdlet to install it:
|
|
Restart Computer
After all this has been done you will need to restart your computer for the changes to go into effect.
|
|
Download & install Linux kernel update package
Now you have WSL installed, but you’ll want to upgrade it to WSL2 for all reasons explained here.
You can use the Installer file provided by Microsoft, which you can find here
Set WSL 2 as default
Now that you have the WSL2 installed, you need to set your machine to enable it by default.
|
|
Install your Linux distribution
Now that you’re done all the pre-requisite work, it’s time to get your favorite Linux distribution!
You can immediately trigger the Microsoft Store app to show you the available Linux distributions by clicking this link or if prefered simply search for Linux.
Find supported Linux Distros here:
Currently there’s a choice of
Install updates Ubuntu
sudo apt update # Fetches the list of available updates
sudo apt upgrade # Installs some updates; does not remove packages
sudo apt full-upgrade # Installs updates; may also remove some packages, if needed
sudo apt autoremove # Removes any old packages that are no longer needed
Install Powershell for Ubuntu 20.04
|
|
Install VSCode
Download VSCode linux package
https://code.visualstudio.com/docs/?dv=linux64_deb
|
|
Uninstall Ubuntu
If you want to uninstall a WSL2 installation of Ubuntu, you can do this like a normal Windows 10 application.
For example to uninstall Ubuntu, right-click the Ubuntu shortcut in your Start menu and click Uninstall.