This repository contains a step-by-step guide on how to set up Ubuntu Subsystem on a Windows machine.
-
The Ubuntu Subsystem allows you to run Linux commands and tools directly from your Windows machine using the Ubuntu terminal.
-
The Ubuntu Subsystem allows you to run Linux commands and tools directly from your Windows machine, making it a valuable tool for developers and IT professionals.
Before you begin, make sure that your Windows machine meets the following requirements:
-
Windows 10 version 16215.0 or later:
- You can check your Windows version by typing
winverin the search bar and pressing Enter. - If your version is earlier than 16215.0, you will need to update your Windows operating system to the latest version.
- You can check your Windows version by typing
-
64-bit version of Windows:
- You can check whether your Windows is 64-bit by going to
Settings>System>Aboutand looking under theDevice specificationssection.
- You can check whether your Windows is 64-bit by going to
-
A Windows Insider account (optional, but recommended for the latest updates):
- If you want to receive the latest updates for the Ubuntu Subsystem, you can sign up for a Windows Insider account.
Follow these steps to set up Ubuntu Subsystem on your Windows machine:
-
Open the Windows Start menu and type
Windows Featuresin the search bar. Click onTurn Windows features on or offin the search results. -
In the
Windows Featureswindow, scroll down and locateWindows Subsystem for Linuxin the list of features. Check the box next to it and clickOKto start the installation process.
-
Run this command on your terminal
wsl --install
-
Change the default Linux distribution installed
wsl --install -d <Distribution Name>
-
Replace <
Distribution Name> with the name of the distribution you would like to install. -
To see a list of available Linux distributions available for download through the online store, enter:
wsl --list --online
OR
wsl -l -o
-
To install additional Linux distributions after the initial install, you may also use the command
wsl --install -d <Distribution Name>
-
Wait for the feature to install. This may take a few minutes.
-
After installation, open the Microsoft Store app on your computer.
-
Search for
Ubuntuin the search bar and selectUbuntufrom the search results. -
Click the
Getbutton to download and install Ubuntu on your Windows machine. -
Once the installation is complete, launch the Ubuntu app from the Start menu. Wait for Ubuntu to initialize and set up the necessary components.
-
Enter a username and password to set up your Ubuntu account. This will be your account for the Ubuntu subsystem, separate from your Windows account.
-
Ubuntu subsystem is now set up and ready to use on your Windows machine. You can access it by launching the Ubuntu app or by opening a Windows terminal and typing
ubuntu. -
Update your installed software by running the
apt-getcommand in Ubuntu. For other Linux distributions, refer to their documentation on software updates. Use the command below to update the package lists with sudo privileges:sudo apt-get update
- note that you must use
sudoand enter your password to run the command as an administrator.
- Finally, run this command to check dependencies and delete obsolete packages from the system (depending on how long the previous step took, you may have to enter our password again):
sudo apt-get dist-upgradeWith these simple steps, you can easily set up Ubuntu Subsystem on your Windows machine and enjoy the benefits of Linux commands and tools directly from your Windows terminal. If you encounter any issues during the installation process, feel free to refer to the troubleshooting guide in this repository.






