Header Ads

Linux on Windows Server-2019


linux-on-windows-server-2019

How can I enable Windows Subsystem for Linux (WSL) feature on Windows Server 2019?

How do I use Linux on Windows Server 2019? This guide will show you how to enable Windows

Subsystem for Linux (WSL) features on Windows server 2019.


Enable Windows Subsystem for Linux (WSL) feature to use Linux on Windows Server.

Method 1: Using Microsoft PowerShell

Open PowerShell as Administrator and run the following command to enable Windows Subsystem for Linux

(WSL) feature on Windows.

Install WSL (for question, answer [Y] to restart computer)

Agree to restart your computer when prompted.

PS C:\Users\Administrator>Enable-WindowsOptionalFeature –Online –FeatureName

Microsoft-Windows-Subsystem-Linux

Do you want to restart the computer to complete this operation now?

[Y] Yes [N] No [?] Help (default is “Y”): Y

Path :

Online : True

RestartNeeded: True


Method 2:  You can do the same Using GUI 

Open Server Manager and enter Add roles and features, then check a box Windows Subsystem for Linux

on Select features section and install it. After installing, restart Computer.




03.Final Step: Launch PowerShell and download the distro with the Invoke-WebRequest.

PS C:\Users\Administrator> Invoke-WebRequest –Url https://aka.ms/wsl-ubuntu-1804 -OutFile

“ubuntu-1804.zip”

After the download, extract and install a Linux distro.

PS C:\Users\Administrator> Expand-Archive ubuntu-1804.zip

PS C:\Users\Administrator> cd ubuntu-1804

Change your working directory to ubuntu1804 and run the installer to finish your distro installation.

PS C:\Users\Administrator\ubuntu-1804> .\ubuntu1804.exe

Installing, this may take a few minutes.

The installer will prompt you to provide username and password for the UNIX user to be created.

Now create a default UNIX user account as per your choice.

That’s all. Enjoy your Linux distro on your Windows server. You can also run other distros like Kali Linux,

Debian, OpenSUSE, etc.

The process of installing any of these distributions is the same.


2 comments:

Powered by Blogger.