banner



How to install Windows Subsystem for Linux (WSL) on Windows 10

On Windows 10, the Windows Subsystem for Linux (WSL) is a characteristic that creates a lightweight environment that allows you to install and run supported versions of Linux (such as Ubuntu, OpenSuse, Debian, etc.) without the complication of setting up a virtual machine or different figurer.

Although you lot won't get a graphical interface, this approach enables developers and network administrators to use a long list of command tools and services (such every bit vim, tmux, andemacs, sshd, Apache, and MySQL), and run Fustigate crush scripts written in Python, Blood-red, C#, F#, and many others using a command console.

In this Windows 10 guide, we'll walk you through the steps to install the Windows Subsystem for Linux using the Settings app too every bit PowerShell. Also, we'll show y'all the instructions to download and install Linux distros, and the steps to properly remove all the components when you no longer demand the open-source environment.

  • How to install Windows Subsystem for Linux using Settings
  • How to install Windows Subsystem for Linux using PowerShell

How to install Windows Subsystem for Linux using Settings

If you lot want to run distros of Linux on Windows 10, you must start enable the Windows Subsystem for Linux characteristic before yous can download and install the flavor of Linux that y'all want to use.

Enabling Windows Subsystem for Linux using Settings

To install WSL using Setting on Windows 10, utilize these steps:

  1. Open Settings.
  2. Click on Apps.
  3. Nether the "Related settings" section, click the Programs and Features choice.

    Apps & features settings page Source: Windows Central

  4. Click the Turn Windows features on or off choice from the left pane.

    Turn Windows features on or off option in Control Panel Source: Windows Central

  5. Cheque the Windows Subsystem for Linux selection.

    Turn Windows features on or off Source: Windows Primal

  6. Click the OK button.
  7. Click the Restart now push.

Once you complete the steps, the environment will be configured to download and run the distros of Linux on Windows 10.

Installing Linux distros using Microsoft Store

To install a distribution of Linux on Windows 10, use these steps:

  1. Open Microsoft Store.
  2. Search for the Linux distribution that you want to install.

    Some of the distros available include:

    • Ubuntu.
    • OpenSuse Leap 15.
    • Kali Linux.
    • Debian.
    • Tall WSL.
    • Suse Linux Enterprise 12.
  3. Select the distro of Linux to install on your device.

    Microsoft Store Linux downloads Source: Windows Fundamental

  4. Click the Get (or Install) push button.

    Microsoft Store install Linux distro Source: Windows Central

  5. Click the Launch button.
  6. Create a username for the Linux distro and press Enter.
  7. Specify a password for the distro and press Enter.

    Setting up Ubuntu on WSL Source: Windows Key

  8. Repeat the password and press Enter to confirm.

Afterward you complete the steps, you tin first using the distro as whatsoever other flavor of Linux (without the graphical user interface, of course).

Uninstalling Linux distros using Settings

If yous no longer need to run Linux on your device, it's recommended to remove the distros, and and then disable WSL.

To uninstall a Linux distribution, employ these steps:

  1. Open up Settings.
  2. Click on Apps.
  3. Click on Apps & features.
  4. Under the "Apps & features" section, select the distribution — for example, Ubuntu.
  5. Click the Uninstall push button.

    Uninstall Ubuntu from Windows 10 Source: Windows Central

  6. Click the Uninstall button over again to ostend.

In one case you complete the steps, the installation of Linux will be removed, and yous tin continue with the steps to disable WSL.

Disabling Windows Subsystem for Linux using Settings

To disable the WSL on Windows 10, employ these steps:

  1. Open Settings.
  2. Click on Apps.
  3. Under the "Related settings" section, click the Programs and Features option.

    Apps & features settings page Source: Windows Key

  4. Click the Turn Windows features on or off choice from the left pane.

    Turn Windows features on or off option in Control Panel Source: Windows Central

  5. Clear the Windows Subsystem for Linux option.

    Disable Windows Subsystem for Linux Source: Windows Central

  6. Click the OK button.
  7. Click the Restart now button.

After yous consummate the steps, the Windows Subsystem for Linux will be removed from your device.

How to install Windows Subsystem for Linux using PowerShell

Alternatively, if y'all don't have admission to the Windows graphical interface, or you lot're comfortable using command lines, you can besides utilize PowerShell to enable the Windows Subsystem for Linux, download and install distros of Linux, and revert all the changes.

Enabling Windows Subsystem for Linux using PowerShell

To install the Windows Subsystem for Linux using PowerShell, use these steps:

  1. Open up First.
  2. Search for PowerShell, correct-click the top result, and select the Run as administrator choice.
  3. Type the post-obit control to enable the Linux subsystem and press Enter:

    Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

    Enable Windows Subsystem for Linux using PowerShell Source: Windows Central

  4. Type Y and printing Enter to ostend and restart your computer.

Once yous complete the steps, you lot can keep with the instructions to download and install whatsoever uniform distribution of Linux available through the Microsoft Store.

Installing Linux distros using PowerShell

To download and install a distro of Linux (such as Ubuntu) with PowerShell, utilise these steps:

  1. Open Start.
  2. Search for PowerShell, right-click the top result, and select the Run every bit administrator option.
  3. Type the following control to select the download folder and press Enter:

    cd c:\PATH\TO\DESTINATION-FOLDER

    This instance navigates to the data folder in the root of the main drive:

    cd c:\data

  4. Type the post-obit control to download Ubuntu and press Enter:

    Invoke-WebRequest -Uri https://wsldownload.azureedge.internet/Ubuntu_1604.2019.523.0_x64.appx -OutFile Ubuntu.appx -UseBasicParsing

    Download Ubuntu using PowerShell Source: Windows Central

    The above command downloads the Ubuntu version xvi.04, but you lot may demand to update the command with name and version of the distro that you're trying to download.

    Quick note: Although the link in this stride and the one in the screenshot look unlike, they are actually the aforementioned. The one in the screenshot is just the brusk version.

  5. Type the following command to view the bodily name of the installer and printing Enter:

    dir

  6. Type the post-obit command to install Ubuntu version 16.04 and press Enter:

    Add-AppxPackage .\APP-Proper name.appx

    This instance installs the Ubuntu distro on Windows 10:

    Add-AppxPackage .\Ubuntu.appx

    Install Ubuntu on WSL using PowerShell Source: Windows Central

  7. Open Start.
  8. Search for the recently distribution Linux distribution (for example, Ubuntu), click the peak result to launch the experience.
  9. Create a username for the Linux distro and printing Enter.
  10. Specify a password for the distro and press Enter.

    Ubuntu on WSL initialization Source: Windows Central

  11. Repeat the password and printing Enter to confirm.

After you complete the steps, you can start using Ubuntu or any other distro equally yous would on a total installation of Linux without a graphical interface.

Uninstalling Linux distro using PowerShell

If you want to revert the changes, y'all first want to remove any distros of Linux before disabling WSl.

  1. Open Get-go.
  2. Search for PowerShell, right-click the top outcome, and select the Run as administrator option.
  3. Type the following command to observe out the distro name and press Enter:

    Get-AppxPackage *PARTIAL-DISTRO-NAME*

    This example search for the app parcel that includes "ubuntu" in the name:

    Become-AppxPackage *ubuntu*

    Search Linux WSL name using PowerShell Source: Windows Key

    In the command, brand sure to modify "ubuntu" for the name of the distro you're trying to detect.

  4. Type the following command to uninstall the version of Linux installed on your computer and press Enter:

    Get-AppxPackag FULL-DISTRO-NAME | Remove-AppxPackage

    This instance removes the Ubuntu package from Windows x:

    Get-AppxPackage CanonicalGroupLimited.Ubuntu16.04onWindows | Remove-AppxPackage

    Uninstall Ubuntu Linux from WSL using PowerShell Source: Windows Central

    In the command, make sure to change "CanonicalGroupLimited.Ubuntu16.04onWindows" for the name of the distro you're trying to remove.

In one case y'all complete the steps, yous can proceed to disable the Windows Subsystem for Linux feature on your calculator.

Disabling Windows Subsystem for Linux using PowerShell

To disable WSL using PowerShell, apply these steps:

  1. Open Start.
  2. Search for PowerShell, correct-click the top result, and select the Run as administrator option.
  3. Type the following control to enable the Linux subsystem and printing Enter:

    Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

    Disable Windows Subsystem for Linux using PowerShell Source: Windows Central

  4. Type Y and press Enter to ostend and restart your computer.

Later on yous complete the steps, the Linux environment volition exist disabled from your computer.

More than Windows ten resource

For more helpful articles, coverage, and answers to common questions about Windows 10, visit the following resources:

  • Windows 10 on Windows Cardinal – All you lot need to know
  • Windows x help, tips, and tricks
  • Windows 10 forums on Windows Central

Nosotros may earn a commission for purchases using our links. Learn more.

Source: https://www.windowscentral.com/install-windows-subsystem-linux-windows-10

Posted by: kennedypricandere1942.blogspot.com

0 Response to "How to install Windows Subsystem for Linux (WSL) on Windows 10"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel