Wsl 1 Requirements

Before you install WSL, make sure that your computer meets the minimum system requirements to run WSL: To verify that your computer meets the system requirements, follow these steps: If you only have one version of Linux installed, just type: To change the versions, use the following command: wsl –set-version 2 and replace with the name of the Linux distribution you want to update. For example, wsl –set-version Ubuntu 20.04 2 will set your Ubuntu 20.04 distribution to use WSL 2. WSL 2 and Windows 11 are in good condition with 95% performance of Ubuntu 20.04 LTS native. [58] If you are running an earlier version or do not want to use the install command and need step-by-step instructions, refer to the WSL manual installation steps for earlier versions. Restart your computer to complete the WSL installation and upgrade to WSL 2. Install compilers and libraries from the Ubuntu repository managed by Canonical Ubuntu is certified for WSL through close cooperation with Microsoft. Enterprise support is provided for Ubuntu from Azure to Windows workstations to create a seamless operating environment. You can also activate the component at any time, even if you have already provisioned WSL2. Open PowerShell as an administrator and type this command: If you want everything to run on WSL2 as soon as you install it, you can set it as the default version. As of 2022, WSL 2 includes a relatively new Linux kernel (LTS) 5.15.74.2.

This error is a known bug that occurs in some versions of Windows 10. If you get this error, you can fix it by repeating steps 1 and 2. Then go to step 10. WSL 1 is not capable of running all Linux software, such as 32-bit binaries,[42][43] or those that require certain Linux kernel services that are not implemented in WSL. Since there is no “real” Linux kernel in WSL 1, kernel modules, such as device drivers, cannot be run. However, WSL 2 uses live virtualized Linux kernel instances. It is possible to run some graphical applications (GUIs) (such as Mozilla Firefox) by installing an X11 server in the Windows environment (such as VcXsrv or Xming),[44] but not without caveats, such as lack of audio support (although this can be fixed by installing PulseAudio in Windows in a manner similar to X11) or hardware acceleration (resulting in poor graphics performance). OpenCL and CUDA support is also not currently implemented, although planned for future releases.

[45] [46] Microsoft stated that WSL was designed for application development, not desktops or production servers, and recommended the use of virtual machines (Hyper-V), Kubernetes and Azure for these purposes. [22] sudo will not prompt you for your password this time unless more than five minutes have passed since the last sudo command. Learn more about Ubuntu lifecycle and release frame › All apt commands that make changes to your system must be run as root. If you are logged in as a regular user (as you normally should be), run a program as root by prefixing it with sudo (“superuser do”). You need to enter your password and your program will run as root. After the distribution is downloaded, run the following command in the same directory: Windows Terminal allows you to open multiple tabs or panes to view multiple Linux distributions or other command lines (PowerShell, command prompt, Azure CLI, etc.) and quickly switch between them. You can fully customize your device with custom color schemes, font styles, sizes, background images, and keyboard shortcuts. Learn more. WSL 2 GPU support for GPU-accelerated machine learning was introduced in Windows Build 20150.

[17] GUI support for WSL 2 for running Linux applications with graphical user interfaces (GUIs) was introduced in Windows version 21364. [18] Both ship in Windows 11. This will download the APPX packages to a folder of your choice. Using the detailed flag allows you to determine which version of WSL is attached to which Linux installation. Without it, you simply get a list of installed Linux versions. The browser version you are using is not recommended for this website. Please consider updating to the latest version of your browser by clicking on one of the links below. Finally, you need to restart your PC, adding norestart means you won`t be immediately kicked out of what you`re doing.

If you want to restart immediately, just leave it at the end of the command. You also need the optional Windows Subsystem for Linux component if you want to use WSL 1 in addition to WSL 2. Intel technologies may require the activation of compatible hardware, software, or services. No product or component can be completely secure. Your costs and results may vary. Performance will vary based on usage, configuration, and other factors. See our full legal notice and disclaimer. Intel is committed to respecting human rights and avoiding complicity in human rights violations.

See Intel`s Global Principles on Human Rights. Intel products and software are intended only for use in applications that do not cause or contribute to a violation of an internationally recognized human right. Open PowerShell and run this command to set WSL 2 as the default version when installing a new Linux distribution: For example, follow these steps to create a symbolic link named winhome in your WSL home folder that points to C:UsersOwner. However, there are better options and personally the best for me is the use of WSL (Windows Subsystem for Linux), developed between Microsoft and Canonical (the. In the new Powershell window, you need to enter the following. In April 2021, Microsoft released a test version of Windows 10, which also offers the ability to run Linux applications with a graphical user interface (GUI) using WSL 2 and CBL-Mariner. [19] [18] The Windows Subsystem for Linux (WSLg) GUI was officially released at Microsoft Build 2021.