![]() In the Windows PowerShell console you can check which version of wsl is active and which distro is installed with the command: In the installation define a user "XXXXXXXX" and his password "YYYYYYYY" (minimum 8 characters) The basic version, version 18.04 LTS and version 20.04 LTS all of them are free. To set wsl2 as the default linux system by entering and executing the following statement in the PowerShell console:įrom the Windows Store look for LINUX and you can choose any ubuntu distro or others. With the same procedure as in the previous time. In your internet browser download the latest version of the WSL2 linux subsystem with the latest updated kernel:Įxecute the installation of the downloaded file by pressing the right mouse button on it and choosing the option to install. Whichever option is used you must do the following afterwards: Run the following statement to enable the Windows 10 for Linux subsystem in the PowerShell console:ĭism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestartĭism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart On the taskbar next to the Windows logo, type PowerShell. ![]() Option enable or disable Windows features Then activate the Programmer Mode option. Then select the option Update and security. ![]() ![]() Windows key + I to open the Settings menu. In Windows 10 the Programmer Mode option must be enabled. Verify that the version of Windows 10 is version 1903 or later by doing the following: There are systems that do not have this option available, which makes it impossible to install virtual machines on the system. If this is not the case, you must start the computer and access the BIOS menu (see the computer manual) to enable this hardware feature. Once this is done, we expand the view and go to the Performance tab, where we can see the different views of the hardware installed on our computer and that is where you can see the text Virtualization: Enabled or not. To see what the status of our hardware is, we will open the task manager by pressing the Ctrl + Shift + Esc keys at the same time (simultaneously) or by right-clicking on the taskbar and selecting the task manager option. In the BIOS of the computer, the virtualization option must be enabled, just like when you want to run the virtual machines VMWare and VirtualBOX. The server is accessed from the browser in Windows with the url: localhost or 127.0.0.1, but it can also be accessed from any other computer in the Local Area Network knowing the IP assigned to the Windows computer host of the WSL2 subsystem installed on that computer and that it also has an IP that is different from the Windows system (see the procedure at the end of the guide). WSL2 is not a graphical Linux environment as provided in the default installation (for now) but as a web server it is not required at any time.Įven so, there are tutorials on the Internet to give you access to WSL2 through a graphical user environment (At the end of the guide, one of those procedures is used to allow user access in a graphical environment). It is a major new version, which means that it will introduce some major changes, as well as many new features and performance improvements.Īs this installation is for development and not for production, it is logical to use PHP 8.0 instead of PHP 7.4 and to test existing systems and their compatibility with this version, as well as the creation of new applications.Īn installation of a Local Web Server in the wsl2 subsystem allows to have a true integrated Linux system with their files accessible from Windows and with Windows applications, in addition to sharing the clipboard to copy and paste between the 2 systems (with Ctrl + C / Ctrl + V) in an easier way than with a kind of type VMWare or VirtualBox virtual machine.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |