Install Linux on Windows 10

Windows 10 has an interesting feature, a Linux subsystem.This can be used to create a Ubuntu powered web server. If you are running Windows build 16215 or later, here is how you can access this windows feature. You can check your Windows build number by opening a command prompt (Right click on Start menu > Run > Type “cmd” ) and then type


wmic os get BuildNumber

I get BuildNumber 17134 so I am good to go.

Instructions from Microsoft are here.

  • First you must open Windows PowerShell (from the start menu) as Administrator and run Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
  • Then restart your computer when prompted.

After the restart

  • Open the Microsoft store and find the latest version of Ubuntu LTS (18.04 at the time of writing) as this is stable and up-to-date.
  • Select “Get” to download.
  • Now initialize it by launching from your Start menu.

What you should see is a command window saying
Installing, this may take a few minutes.
Be prepared to wait a few minutes.

First you are asked to enter a new UNIX username and a password. This is the “sudo user” so write down the username and password. When you add new programs or modify settings you log on as the sudo user.

Now you have a fully functional Ubuntu server on your Windows desktop with easy access to your Windows files.You can:

  • Start it by finding the Ubuntu icon on the Start menu ( you can also pin it on your desktop or task bar).
  • Use the standard Linux commands
  • Learn how to install new software including a LAMP stack and Moodle in my next post how to install LAMP on Windows 10