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
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |