Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
(in this case we download ubuntu 16.04)
curl.exe -L -o ubuntu-1604.appx https://aka.ms/wsl-ubuntu-1604
Powershell (no admin) Run
Rename-Item .\ubuntu-1604.appx .\ubuntu.zip
Expand-Archive .\ubuntu.zip .\ubuntu
In Powershell Run
$userenv = [System.Environment]::GetEnvironmentVariable("Path", "User")
[System.Environment]::SetEnvironmentVariable("PATH", $userenv + ";C:\Users\Administrator\ubuntu", "User")
(this new filename will be the command name to launch your distro)
cd ubuntu
Rename-Item .\ubuntu1604.exe ubuntu.exe
Restart your Powershell
You will be prompted to Create Username and Password (Both are Mandatory)
ubuntu
- Windows C: Drive
cd /mnt/c/
- Root Permission
sudo su
- Exit
exit
-
WSL should be enabled (To check, in powershell run)
Get-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
-
Make sure you're running Windows build 16215 or later. (To check, in powershell run)
systeminfo | Select-String "^OS Name","^OS Version"