The full form of WSL is Windows Subsystem for Linux. It is a feature of Windows 10 that lets you install and run a full-fledged Linux environment on Windows 10. Windows did not use any virtualization technique here. Instead, Microsoft built a way (WSL) to run Linux binaries on Windows. So, it’s fast and does not require much memory to run. In this article, I will show you how to install Ubuntu on Windows 10 using Windows WSL. Let’s get started.
Note: Follow GUI or Poweshell steps to enable WSL. Do not try both.
Enable WSL [GUI]
- First, go to the Settings app from the Start menu.
- Now, click on Apps
- Now, from the Apps & features tab, click on Programs and Features as marked in the screenshot below.
- Now click on Turn Windows features on or off from the Programs and Features as marked in the screenshot below.
- Now, check the Windows Subsystem for Linux checkbox as marked in the screenshot below and click ok OK.
- Now, click on Restart now. Windows 10 should reboot.
Enable WSL [Using Powershell]
- In the search box below type Powershell. Wait for results to appear and once ready right-click on Windows PowerShell and select the Run as administrator option.
- This will open up the PowerShell window. Copy and Paste the following command into the PowerShell terminal and press Enter:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
- Leave, blank or type Y and press Enter, After that restart your system.
Installing and Configuring Ubuntu on Windows 10 WSL
- Once your computer starts, open Microsoft Store from the Start menu as shown in the screenshot below.
- Now, search for ubuntu. As you can see in the screenshot below, you can install Ubuntu 18.04 LTS or Ubuntu 20.04 LTS at the time of this writing.
- I decided to install Ubuntu 18.04 LTS in this article. So, I clicked on it. Now, click on Get as marked in the screenshot below to install Ubuntu. You can have the latest version. No issues for that.
- After that, Ubuntu is being installed from the Microsoft Store. It may take a while to complete.
- After a while, Ubuntu should be installed and click on launch. You can also find the App on you Stat Menu.
- Now, you have to create a user account on Ubuntu. Type in the username and press <Enter>.
- Now, type in a new password for the username you picked and press <Enter>.
- Now, retype the password and press <Enter>.
- Now currently you are in the user account. You can enter into the root account by typing sudo -i
- Type the user password. Note: Not the root password and press <Enter>
- Just update your Sudo by typing
sudo apt update
- After the update type top -c you can see all the processes running in your ubuntu. To get out of that press CTRL+Z.
So, that’s how you install and use Ubuntu on Windows 10 through WSL. Thanks for reading this article.