Monday, February 11, 2019

Running Linux on Windows

讲了不少虚拟机,container,模拟器等,大部分都是运行在Linux上。我想微软认识到了Linux支持的重要性,特别是在开发应用中,比如Android开发,Linux的开发者用户群很大,所以一年多前微软就通过Windows 10的Insider/Creators program (WSL, Windows Subsystem for Linux )引人Ubuntu的支持,可以在Windows console下运行Ubuntu命令:如 bash, ssh, git, apt等等。现在这一feature已经正式出现在Windows App Store: https://www.microsoft.com/en-us/p/ubuntu/9nblggh4msv6,甚至可以在旧版Windows 10 (如1709)上运行。从微软网站摘录的:
Note that Windows 10 S does not support running this app. Before installing Ubuntu on Windows or before the first run please open the Control Panel, visit Programs and Features' submenu Turn Windows features on or off and select Windows Subsystem for Linux. Click OK, reboot, and then your system is ready to run this app. Instead of the above steps You can set up your system by executing the following command in the Administrator PowerShell prompt: Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux When your system is ready simply start "ubuntu" in cmd.exe or launch Ubuntu from the start menu.

0 Comments:

Post a Comment