![]() Using Windows Terminal enables you to open multiple tabs or window panes to display and quickly switch between multiple Linux distributions or other command lines (PowerShell, Command Prompt, PowerShell, Azure CLI, etc). Once your distribution is installed, follow the instructions to create a user account and password for your new Linux distribution. If you are using Windows server, or run into problems running the command above you can find the alternate install instructions on the Windows Server documentation page to install the. Once the distribution has been downloaded, navigate to the folder containing the download and run the following command in that directory, where app-name is the name of the Linux distribution. In this example, curl.exe is executed (not just curl) to ensure that, in PowerShell, the real curl executable is invoked, not the PowerShell curl alias for Invoke-WebRequest. To download Ubuntu 20.04 with curl: curl.exe -L -o ubuntu-2004.appx You also have the option to use the curl command-line utility for downloading. If the download is taking a long time, turn off the progress bar by setting $ProgressPreference = 'Silentl圜ontinue' For example, to download Ubuntu 20.04: Invoke-WebRequest -Uri -OutFile Ubuntu.appx -UseBasicParsing If you prefer, you can also download your preferred distribution(s) via the command line, you can use PowerShell with the Invoke-WebRequest cmdlet. appx packages to download to a folder of your choosing. If the Microsoft Store app is not available, you can download and manually install Linux distributions using these links: ![]() In these cases, while WSL itself is available, you may need to download Linux distributions directly. You may be running a Windows Server or Long-Term Servicing (LTSC) desktop OS SKU that doesn't support Microsoft Store, or your corporate network policies and/or admins do not permit Microsoft Store usage in your environment. There are some scenarios in which you may not be able (or want) to, install WSL Linux distributions using the Microsoft Store. If you run into an issue during the install process, check the installation section of the troubleshooting guide. You will then need to create a user account and password for your new Linux distribution.ĬONGRATULATIONS! You've successfully installed and set up a Linux distribution that is completely integrated with your Windows operating system! Troubleshooting installation All future launches should take less than a second. The first time you launch a newly installed Linux distribution, a console window will open and you'll be asked to wait for a minute or two for files to de-compress and be stored on your PC. The following links will open the Microsoft store page for each distribution:įrom the distribution's page, select "Get". Open the Microsoft Store and select your favorite Linux distribution. Step 6 - Install your Linux distribution of choice Open PowerShell and run this command to set WSL 2 as the default version when installing a new Linux distribution: wsl -set-default-version 2 Step 5 - Set WSL 2 as your default version Update to the latest Windows version in the Settings menu.įor more information, read the article changes to updating the WSL2 Linux kernel, available on the Windows Command Line Blog. To check your version and build number, select Windows logo key + R, type winver, select OK. Use the Windows Update Assistant to update your version of Windows. Builds lower than 18362 do not support WSL 2.For ARM64 systems: Version 2004 or higher, with Build 19041 or higher.For 圆4 systems: Version 1903 or higher, with Build 18362 or higher.To update to WSL 2, you must be running Windows 10. Step 2 - Check requirements for running WSL 2 To update to WSL 2, wait to restart your machine and move on to the next step. We recommend now moving on to step #2, updating to WSL 2, but if you wish to only install WSL 1, you can now restart your machine and move on to Step 6 - Install your Linux distribution of choice. Open PowerShell as Administrator (Start menu > PowerShell > right-click > Run as Administrator) and enter this command: dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart You must first enable the "Windows Subsystem for Linux" optional feature before installing any Linux distributions on Windows. ![]() Step 1 - Enable the Windows Subsystem for Linux ![]() We have included the manual installation steps below. For simplicity, we generally recommend using the wsl -install to install Windows Subsystem for Linux, but if you're running an older build of Windows, that may not be supported. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |