Ticker

6/recent/ticker-posts

How to install wsl on windows 10

 


WSL is nothing but the Windows Subsystem for Linux. In this post we are learn to install WSL in Windows 10 operating system. WSL installation in Windows 11 steps are also same.  

First you need to enable the optional features on windows operation system. Then you can install a WSL from Microsoft store or by using the command line. Finally, you can choose to update the WSL 2 for improvement in performance and features.

✅ Prerequisites

  • You need Windows 10 version 2004 or higher, with Build 19041 or later.

  • Make sure you're running Windows 10 Home or Pro.


🚀  Use the below stapes to enable the optional features and to install WSL using command line.

1. To enable the optional features:

    Open PowerShell as Administrator:

        Search PowerShell in the start menu and select "Run as Administrator".

       

    To install WSL on windows sysem we have to enable bellow two features:

    1) Microsoft-Windows-Subsystem-Linux

    2) Virtual Machine Platform ( for WSL 2)

    Steps to enable optional features using command line (PowerShell):

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

    To enable Virtual Machine Platform run the following command in PowerShell:

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

    As we mentioned "/norestart" in every command line, system may not be prompt to restart. So once you run all above command then manually restart your system and continue the next steps as below.


    Steps to install Linux Distribution: 

     Form Microsoft Store: 

            To install from the Microsoft Store, search for your desire distribution like Ubuntu in the                     Microsoft Store and install it and follow the installation steps if any require.

    Using the Command line:

        Open PowerShell as an Administrator and use the following command :

        > wsl --install -d <Distribution Name> (e.g., wsl --install -d Ubuntu). 

     (Optional) : Update to WSL 2 and Set Default:

  •     Download the Linux kernel update : Download the packages from the Microsoft website.
  •     Set WSL 2as Default : 
                Use the command : wsl --set-default-version 2

        Now you can launch your Linux Distribution (WSL) from the start menu or by using the "wsl"             command.

📦 Verify Installation
        To verify the installation use the command: wsl --list --verbose
        
        It should show your installed distribution and WSL version.

    
    This video demonstrates how to install WSL on Windows 10:



If you have any questions you would like to ask, then you can also ask below to comment.

#WSL
#Windows Subsystem for Linux
#Install WSL on Windows 10
#WSL 2
#Ubuntu on Windows
#Linux on Windows
#Windows 10 developer tools
#Windows terminal
#Run Linux on Windows
#PowerShell WSL install
#Windows 10 WSL tutorial

Post a Comment

0 Comments