Install linux on windows 11

Install linux on windows 11

1. Enable WSL:
    • Using the Command Line:
      Open PowerShell or Command Prompt as an administrator and run the command wsl --installThis will install WSL and the default Ubuntu distribution. 

  • Using the Microsoft Store:
    Search for “Windows Subsystem for Linux” in the Microsoft Store and click “Install”. You can then choose a Linux distribution to install from the store, like Ubuntu. 

2. Choose a Linux Distribution (Optional):

  • If you didn’t install a distribution during the WSL installation, you can open the Microsoft Store and search for your preferred distribution (e.g., Ubuntu, Debian, Fedora) and click “Install”. 
3. Complete the Installation:
  • After installing WSL and your chosen Linux distribution, you may need to restart your computer to finalize the installation. 
  • Launch the Linux distribution from the Start Menu or by running wsl in the command line. You will be prompted to create a user account and password for the Linux environment. 
4. Using Linux GUI Apps (Optional):
  • If you want to run Linux GUI applications, you’ll need to install a driver that matches your system and enable the “Windows Subsystem for Linux GUI (WSLg)” feature.