![]() Just in case, what if you received: WslRegisterDistribution failed with error I also recommend you check our WSL 2 starter must-read guide to avoid common pitfalls and several simple but important warnings which you should be aware of before working with WSL 2 to prevent performance issues. It might take several minutes to set up, then it will ask you to create a username and password for your Ubuntu: Open store, search for Ubuntu (I used 20.04 LTS, the fresh software will be maintained up to 2022 year)Īfter installation, run Ubuntu from the start menu: install Ubuntu distribution from the Microsoft Store Run command line prompt form administrator and run: wsl -set- default-version 2įor information on key differences with WSL 2 please visit https: //aka.ms/wsl2 What is left is to make WSL 2 to be a default version for all newly installed distributions (Ubuntu is distribution). □ The link leads to official Microsoft website, you can validate it on Windows Subsystem for Linux Installation Guide for Windows 10 (in the Step 4 section) □ If you run Windows on ARM processor (happens very rately), use this link: wsl_update_arm64.msiĪfter successful installation you should see: Download and install Linux kernel for WSL 2 and set the preferred WSL versionĭownload and install this MSI wsl_update_圆4.msi. ![]() When you will see The operation completed successfully – restart the system. In the same command line execute: dism.exe /online /enable-feature /featurename:VirtualMachinePlatform / all /norestart ![]() There was a time when it was called Hyper V, but in recent builds of Win10, it is called VirtualMachinePlatform. Now we're going to enable the windows virtual machine platform to run WSL 2. Enabling VirtualMachinePlatform to run WSL 2 But I suggest you to to go ahead and install WSL 2 (so there is no need to restart the system now). If you want to use WSL 1, at this step you can restart the machine and go to the store to install Ubuntu. ![]() In case of success you should see something like this: Use an elevated command prompt to complete these tasks. □If you will run this command from command line without administrator privilege you will receive an error Error: 740 Elevated permissions are required to run DISM. Run command line prompt from start menu from the administrator:Įxecute a command which installs WSL 1: dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux / all /norestart Step 1 – Enable Windows Subsystem for Linux 1 But anyway, before installing WSL I suggest you update the system. The minimal required version for 圆4 platform is Version: 1903 with OS Build 18362 and newer. To simplify your experience I used clear Windows 10 Version: 20H2, OS Build 19042 (To check the current version use Start ➡ Settings ➡ About ➡ Windows Specifications). In the hint, I will explain the most simple and straightforward way to install WSL 2 You will have good integration with Visual Studio Code - you will be able to access and manage the filesystem from WSL 2 and store all your projects there. We talk only about software with a command-line interface without UI but UI is still on your windows including IDE. You will have the same bash prompt as on your Ubuntu servers and all software including nodejs, python, and even docker containers will work the same. Same as on any Ubuntu with the same config location and format, e.g. Thing is that when you run WSL 2 on your machine you can install any version of Ubuntu from Microsoft Store and it works like a real Ubuntu on Windows 10 (Only on the terminal side, GUI will not be touched at all), with good performance and without manual execution of virtual machines.įor example, you will be able to write in terminal: sudo apt install mysql- serverĪnd you will install a fully functional MySQL server on your machine. Before WSL 2 programmers used cygwin or git bash to run Linux programs, but assuming great compatibility with real Linux, simplicity of installation, and performance, the WSL 2 is a true game-changer that kills cygwin once and forever. Windows subsystem for Linux 2 – is a special virtual environment to run Linux apps on Windows, created by Microsoft. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |