linux-logo

Run Linux Kernel on Windows 10 with WSL 2

It is now possible to run the Linux Kernel on Windows and carryout all the awesome Linux commands on your Windows files. This can be done through the use of WSL which stands for Windows Subsystem Linux and it is version 2. This will only work on Windows 10 version 2004 or higher, to check your version by hitting the windows key and entering the command winver and this will give the current version of the Windows installation. If it is the correct version of Windows, great, if not update the system to the latest version.

Once Windows has been updated, if needed, then we have to open up PowerShell as administrator and run the following command:

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

After this command has processed, the system will ask to restart just click yes.

Once the system is rebooted and logged back in, open up PowerShell again as administrator and input the following command to enable the virtual machine feature:

dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

Once that has finished now we can enable the WSL by running the following command:

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart

Again, once that has completed, the system will need to be restarted, this time we will have to do it manually by clicking the start button, the power button and then restart.

Now we have to download and install the Linux Kernel update package from here. Download the program at the link shown below, once downloaded double click to begin the installation and follow thre prompts in the installation wizard.

When that is complete, we have to go back into PowerShell, as administrator, once more to choose the default version of WSL, to do this we enter the following command:

wsl --set-default-version 2

Once the default version of WSL is set, we can now head over to the Microsoft Store and search for the linux distro of your choice and install it from there:

Once installed, Linux can be launched directly from the store or from the start menu search bar.

Linux

1Items

Anything linux related which could include hints, tips and useful info.…

Read More