WSL


  1. Posts : 1
    Windows 10 Education
       #1

    WSL


    I have two questions related to Windows Subsystem for Linux. One, does anyone know of a recent how to that shows how to install a GUI in WSL? Secondly, how can I make sure I am using WSL2.0 instead of 1? I'd like to install some gui development tools inside Ubuntu on WSL . All the guides I've found are rather old so I don't want to blindly follow.

    TIA

    Andy
      My Computer


  2. Posts : 9,790
    Mac OS Catalina
       #2
      My Computer


  3. Posts : 5,330
    Windows 11 Pro 64-bit
       #3

    Version 2 of WSL uses a new lightweight utility virtual machine capability. To enable the lightweight virtual machine and WSL, you need to enable two Windows features: Virtual Machine Platform and Windows Subsystem for Linux.

    To enable these features via the user interface (UI), press the Windows key and enter Windows Features, then click on Turn Windows features on or off.
    When the Windows Features dialog appears, check the boxes for Virtual Machine Platform and Windows Subsystem for Linux.




    If you want to make version 2 the default for any Linux distros you install then run the following command:


    Code:
    wsl --set-default-version 2
    Now you can install Linux distro from Microsoft Store it will be running version 2 of WSL.

    A distro can be converted between versions of WSL after installation. To achieve this, you use the wsl --set-version command.

    This command takes two arguments:

    • The name of the distro to update
    • The version to convert it to


    An example of converting the Ubuntu distro to version 2 is shown here:

    Code:
    wsl --set-version Ubuntu 2
    Execute wsl --list --verbose versions of WSL installed distro.
      My Computer


  4. Posts : 17,661
    Windows 10 Pro
       #4
      My Computer


 

Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 11:33.
Find Us




Windows 10 Forums