wsl -list: Lists the installed WSL distributions and their status.wsl -l -v: Lists the installed WSL distributions and their version numbers.wsl -set-default-version 2: Sets WSL 2 as the default version for future WSL installations.wsl -install -d Ubuntu-20.04: Installs the Ubuntu 20.04 LTS distribution in WSL 2.wsl -list -online: Lists the valid WSL distributions that can be installed.Otherwise, use the PowerShell command prompt to install Ubuntu 20.04 LTS in WSL 2 on a Windows 10 machine with the following commands: Optional: Installing Ubuntu 20.04 in WSL 2 Using Powershell Command Prompt Once the installation is complete, click the “Launch” button to open a terminal for Ubuntu 20.04, or open the Ubuntu 20.04 LTS distribution by searching from the “Start menu”.Click on the “Ubuntu 20.04” app and click the “Get” button to download and install it.Open the Microsoft Store and search for “Ubuntu 20.04”.To install Ubuntu 20.04 LTS in the windows console, use these steps: Once the WSL feature has been enabled, you can install one or more Linux distributions from the Microsoft Store or by using the wsl command. Installing Ubuntu 20.04 LTS in Windows Subsystem To verify in the console, make sure both WSL2 features are enabled: Step 5. /norestart prevents the system from being restarted after the feature has been installed./all specifies that all parent features of the specified feature should also be installed./featurename:Microsoft-Windows-Subsystem-Linux is the feature being enabled, which is the Windows Subsystem for Linux. /enable-feature enables a specific feature on the system./online specifies that the operation should be performed on the running system, rather than an offline image.dism.exe is the Deployment Image Servicing and Management (DISM) tool, which is used to manage and modify the system image.Here’s what each part of the command does: To enable the Windows Subsystem for Linux (WSL) feature on your Windows 10 machine using the command line, you can run the following command in PowerShell: dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart If the feature is not enabled, the output will not display any information about it. If it shows, the Windows Subsystem for Linux (WSL) feature is enabled on your system. Enable Windows Subsystem for Linux (WSL) feature on your WindowsĬheck if the Windows Subsystem for Linux (WSL) feature is enabled on your system using the following command in PowerShell: dism.exe /online /get-features | Where-Object Ĭheck the output for the “ Feature Name: Microsoft-Windows-Subsystem-Linux“. Restart your machine to complete the installation.Open the PowerShell command prompt as an administrator.ĭism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart.In order to use WSL2, the Windows Machine Platform features must be enabled on your Windows 10 machine.Įnable the Windows Machine Platform features using the PowerShell command prompt. Windows Machine Platform features are required to run Windows Subsystem for Linux (WSL2). Enable the Windows Machine Platform feature on your Windows If your user does not have administrator privileges, you can either log in as an administrator or ask an administrator to elevate your privileges to perform administrative tasks. If you see S-1-5-32-544 listed, it means that your user has administrator privileges. The output will show a list of the groups that your user belongs to. Use the PowerShell command prompt to check if your user has administrator privileges on a Windows 10 machine: whoami /groups Check if your user has administrator privileges on a Windows Note: The minimum requirements for WSL are Windows 10 version 1709 or later, with build number 16299 or later. The output should show your Windows version and build number, which you can then compare against the minimum requirements for WSL. Systeminfo | findstr /B /C:"OS Name" /C:"OS Version" Type the following command and press Enter:.To check your version and build number on Windows 10 to determine the compatibility of your system with the Windows Subsystem for Linux (WSL) feature, you can follow these steps: Check your version and build number on Windows Configure Ubuntu User Account and Password.Optional: Installing Ubuntu 20.04 in WSL 2 Using Powershell Command Prompt.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |