Microsoft Windows 10 version 2004 and higher (Build 19041 and higher) allows users to natively run Linux on Windows 10 through Windows subsystem for Linux (WSL). To check windows version press Windows logo key + R. Currently WSL comes in two versions 1 and 2 where version is the latest.  Linux on Windows enables you to run any Linux commands on Windows through Linux terminal. Before you install any distribution of Linux on windows you need to enable the WSL. In this post we will discuss how to install Ubuntu Linux on Windows through WSL. In the previous post we discussed about Apache Airflow and it works. In the next post we will see how to install airflow on Linux in Windows we are installing in this post.

Install Windows Subsystem for Linux (WSL)

To quickly install WSL open PowerShell or Windows command prompt as Admin and run the command below;

Once installed restart your computer.

For manual installation follow this link from Microsoft.

Enable Windows Subsystem for Linux (WSL)

Before you install any Linux distro supported by Windows you need to enable WSL. To check if WSL is enabled in Windows search menu;

  1. In Windows Search for “Turn Windows features on or off” and click it. This will open a new window as shown below.

enable-wsl

2. Look for Windows Subsystem for Linux and check it if not.

3. Finally restart your computer and proceed to installation of Linux on Windows.

Install Linux

  1. On your windows search type Microsoft Store to open the Microsoft Store.
  1. Search for Ubuntu and select Ubuntu LTS with latest version, in my case is Ubuntu 20.04 LTS. It should be published by Canonical Group Limited.

ubuntu-wls-2

  1. When presented with the below window click Get to install the Ubuntu Linux.

ubuntu-wls-3

  1. Once it completes downloading and installing Linux on Windows it will prompt you to launch and prompt you to set up the Linux username and password as shown below. This username and password you’ll need anytime you access the terminal.

ubuntu-wsl-account

ubuntu-wsl-finished-installing

  1. Run the following commands to update the Linux system.
                    

sudo apt update
sudo apt upgrade

  1. Install pip3 by running the below commands one after the other
                    

sudo apt-get install software-properties-common
sudo apt-add-repository universe
sudo apt-get update
sudo apt-get install python3-pip

Conclusion

Linux is a powerful operating system that comes in different distributions. The newer version of Windows operating system starting from Windows 10 version 2004 and higher (Build 19041 and higher) provides a feature that allows installation of Linux on Windows. This eliminates the need for users to install virtual machine and Linux operating system on it. We have seen how you can install WSL, enable WSL, install Linux Ubuntu, update the installed Linux and install pip utility. Linux on windows through WSL allows you to run Linux commands natively on Windows through Linux Terminal. In the next post we will learn How to Install Apache Airflow which is a powerful open source platform for programmatically authoring, scheduling and monitoring workflows.

Linux on Windows

Post navigation


0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x