Neurohazard
暮雲煙月,皓首窮經;森羅萬象,如是我聞。

启用 Windows 10 的 Linux 子系统

wpadmin~June 2, 2018 /System Management

启用 Windows 10 的 Linux 子系统

Contents

参考资料

初步参考

Enabling or Disabling Windows Subsystem for Linux on Windows 10
https://www.youtube.com/watch?v=GFymkJiTlYU

进阶参考

Windows Subsystem for Linux Documentation
https://docs.microsoft.com/en-us/windows/wsl/about

WSL——Win10的Linux子系统 | 知乎专栏
https://zhuanlan.zhihu.com/WindowsSubsystemForLinux

https://github.com/WangJiaxiang96/WSL-Guideline/tree/master/WSL-Guideline/%E4%B8%AD%E6%96%87

利用Windows10的Linux子系统搭建gcc/g++开发环境
https://www.jianshu.com/p/bca66fea7720

Windows command line tools
https://blogs.msdn.microsoft.com/commandline/

步骤

a. 启用 (系统) 开发者模式

Cortana (Win) > Settings > Update and Security > Developer Mode

b. 启用子系统
Cortana (Win) > Control Panel > Programs and Features > Turn Windows Features On and Off

Or you can use powershell (Administrator)

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

c. 激活子系统 (activate subsystem/ install linux)
Cortana (wWin) > cmd > bash
https://aka.ms/wslstore

d. update

sudo apt-get update

删除

#
#
# old method
lxrun /uninstall /full
# new method
debian clean
ubuntu clean

错误排查

No connectivity from Bash to internet?
https://github.com/Microsoft/WSL/issues/5

ICMP ping 对外网连通
DNS 成功解析域名
TCP 无法连接外网

Leave a Reply

Your email address will not be published. Required fields are marked *