MS-Linux 快要诞生了!

2016-03-30 16:48:26 +08:00
 mengjue

http://www.zdnet.com/article/microsoft-and-canonical-partner-to-bring-ubuntu-to-windows-10/

According to sources at Canonical, Ubuntu Linux's parent company, and Microsoft, you'll soon be able to run Ubuntu on Windows 10.

This will be more than just running the Bash shell on Windows 10. After all, thanks to programs such as Cygwin or MSYS utilities, hardcore Unix users have long been able to run the popular Bash command line interface (CLI) on Windows.

So is this MS-Linux? No. Is it a major step forward in the integration of Windows and Linux on the developer desktop? Yes, yes it is.

7935 次点击
所在节点    分享发现
62 条回复
iloveayu
2016-03-30 22:14:17 +08:00
Explorer + Bash
kingwkb
2016-03-30 22:24:24 +08:00
方向对了,就看做出来的体验了
jimages
2016-03-31 00:36:50 +08:00
只是 bush 。
jsq2627
2016-03-31 01:56:23 +08:00
只是 bash 而已
hjc4869
2016-03-31 02:05:43 +08:00
@jimages
@jsq2627

bash.exe 只是一个 stub 而已,它启动的是一个运行在 Linux 子系统中的 Ubuntu 的 elf 程序
Trim21
2016-03-31 02:10:19 +08:00
叫 Winux 如何..
andrewpsy
2016-03-31 02:10:22 +08:00
http://www.hanselman.com/blog/DevelopersCanRunBashShellAndUsermodeUbuntuLinuxBinariesOnWindows10.aspx
还没有意识到这个东西多给力的可以看看这片文章。

"I'm using bash to run Redis while writing ASP.NET apps in Visual Studio that use the Redis cache."
wolfan
2016-03-31 03:09:47 +08:00
话说,两者内样好似不一样吧,那 linux 应该是作为子系统存在吧,然后 win 取消盘符的概念,增加终端操作功能什么的么?
JamesRuan
2016-03-31 03:16:39 +08:00
不知道 /dev /proc /sys 之类是怎么弄的,这些都是动态文件系统啊。
还有大小写问题, chmod 问题,文件打开时 unlink 问题。
twl007
2016-03-31 07:21:44 +08:00
难道是把 linux 的基础类库编译一个 windiws 版?
xi_lin
2016-03-31 07:52:12 +08:00
有 linux kernel 吗?
bulldozer
2016-03-31 08:36:14 +08:00
看到报道,是模拟器级别的,相当于利用 wine 运行 windows 程序,目前已经可以运行包括 lamp 在内的数万程序。这种官方操刀对开源系统的模拟器,开发人员来使用肯定绰绰有余。完成后直接部署到生产环境。
bulldozer
2016-03-31 08:39:15 +08:00
重点在于所有这些 linux 程序原生运行,不要重新编译。 apt-get 回来直接 start
Reficul
2016-03-31 08:43:10 +08:00
@bulldozer
那么什么时候才能用到呢?
bulldozer
2016-03-31 08:48:00 +08:00
beta 版据说放出了呀。我没有 win10 ,不清楚
palxex
2016-03-31 09:02:42 +08:00
桌面还是别想太多。这次看报导明显控制台不是基于 fb 实现的(否则启动时不可能经过 cmd ),所以内建 X 没指望;内核明显是 syscall 转接实现,所以跟 linux 内核牵扯过深的 wayland 我猜指望也不大。 windows 上免费 X server 是啥样,我觉得折腾过 colinux 的应该还都记得吧?
至于 server 用途,微软又明确指出了后端应用别指望这个,请继续指望 Hyper-V ——我猜 foreign linux 碰到的 fork(3)无法高效实现的问题恐怕微软也遇到了。
权限问题,一个用户态实现能怎么做,猜猜会不会看见.DS_store 的翻版?
综合看下来,恐怕也就是个 toy 用途。如果这种兼容层真能起多大作用,那我就搞不懂为啥同样有 Linux 二进制兼容层的 FreeBSD 没把 Linux 干挺了。
yangzh
2016-03-31 09:34:20 +08:00
Linux geeks can think of it sort of the inverse of "wine" -- Ubuntu binaries running natively in Windows.

http://blog.dustinkirkland.com/2016/03/ubuntu-on-windows.html?m=1
chengzhoukun
2016-03-31 10:05:55 +08:00
@Reficul
@bulldozer
估计下一次 insider 版本或者等夏季更新包
am241
2016-03-31 10:08:06 +08:00
内核版的 cygwin1.dll?
starqoq
2016-03-31 11:49:33 +08:00
微软以前出个一个类似的东西,叫 Unix Subsystem 。那个时候希望能抢占一些 Unix 服务器的份额。在 WIN2k XP 时代还是有的,后来由于无人问津被搁置, Win7 以后被移除。
如果你使用 Win7 ,应该还能在控制面板里的添加删除功能里看到。

http://www.microsoft.com/en-us/download/details.aspx?id=23754
https://msdn.microsoft.com/zh-cn/library/cc786798(v=ws.10).aspx

另外我也用过 Cygwin ,但是 API 实现质量不高。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/267395

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX