Windows 2019
Sponsored Link

Windows Subsystem for Linux
2019/02/11
 
Enable Windows Subsystem for Linux (WSL) feature to use Linux on Windows Server.
[1]
Run PowerShell with Admin priviledge and execute commands like follows to enable WSL.
(also possible to enable it on [Server Manager] - [Add roles and features] - [Select features])
After enabling it, restart Computer once.
PS > Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
[2]
It's possible to run WSL with any user.
Logon with any user and Run PowerShell to Download a Linux image to any folder.
On this example, Download Ubuntu 18.04 to Home folder.
After downloading a Linux image, rename the file to zip archive and expand it.
PS > curl.exe -L -O https://aka.ms/wsl-ubuntu-1804
PS > Rename-Item wsl-ubuntu-1804 ubuntu-1804.zip
PS > Expand-Archive ubuntu-1804.zip
[3]
Move to the expanded folder and run [ubuntu1804.exe], then Ubuntu 18.04 starts.
For initial use, setting of new user account is required, input any username and password for it.
After adding new user, it's possible to use Ubuntu Linux.
PS > cd ubuntu-1804
PS > .\ubuntu1804.exe
[4] For Windows resource, it is mounted on [/mnt/c], possible to access.
[5] To access Linux resource with root priviledge, use [$ sudo (command)] with a user you added on initial use.
Matched Content
 
Tweet