Install the Windows Subsystem for Linux
1. open PowerShell as Administrator
1 | > Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux |
2. Extract and install a Linux distro
1. Extract the <distro>.appx
package’s contents
1 | Rename-Item ./Ubuntu.appx ./Ubuntu.zip |
2. Run the distro launcher To complete installation
1 | > cd Ubuntu |
3. add your distro path to Windows environment PATH
1 | # PATH: C:\Users\Administrator\Ubuntu |
-
Machine 系统变量
Process 当前进程中环境变量
User 当前用户变量
3. default Install
1 | > Add-AppxPackage package |