r/programming • • Mar 30 '16

Microsoft is bringing the Bash shell to Windows 10

http://techcrunch.com/2016/03/30/be-very-afraid-hell-has-frozen-over-bash-is-coming-to-windows-10/
5.5k Upvotes

1.2k comments sorted by

View all comments

Show parent comments

0

u/[deleted] Mar 30 '16

[deleted]

294

u/thepeacemaker Mar 30 '16

Apparently, they've added support for native ELF binaries to Windows.

http://blog.dustinkirkland.com/2016/03/ubuntu-on-windows.html

"Hum, well it's like cygwin perhaps?" Nope! Cygwin includes open source utilities are recompiled from source to run natively in Windows. Here, we're talking about bit-for-bit, checksum-for-checksum Ubuntu ELF binaries running directly in Windows.

359

u/superPwnzorMegaMan Mar 30 '16

So its wine for Linux binaries running on windows?

158

u/Fazer2 Mar 30 '16

It is.

88

u/Codile Mar 30 '16

It just doesn't have to be tediously reverse engineered, which obviously improves compatibility.

279

u/Workaphobia Mar 30 '16

You telling me I can run Starcraft 1 on linux on wine on windows?

40

u/randomstonerfromaus Mar 30 '16

2016 - What a year to be alive.

14

u/joonazan Mar 30 '16

That has already been done. Planescape Torment from GOG runs in Wine on Windows.

10

u/Workaphobia Mar 31 '16

And Wine itself runs directly on Windows with no unix middleware? Is this insanity, or is it genius for getting a controlled environment?

11

u/joonazan Mar 31 '16

It can be compiled with Cygwin. Wine is needed, because cough unlike OpenGL DirectX is not compatible between versions.

→ More replies (7)
→ More replies (4)

0

u/[deleted] Mar 31 '16

[deleted]

35

u/[deleted] Mar 31 '16

in all seriousness this would be great for running older programs that don't work in Windows 10 but still work in WINE

→ More replies (1)
→ More replies (3)
→ More replies (1)

105

u/bliths Mar 30 '16

Should try running "cmd.exe bash" through Wine on Ubuntu and complete the circle

→ More replies (3)

23

u/fufukittyfuk Mar 30 '16 edited Mar 31 '16

windows is not (a) emulator??? Surprisingly fits. Edit : fixed link

51

u/nemec Mar 30 '16

From this point on it stands for Windows is now (an) emulator ;)

63

u/fufukittyfuk Mar 30 '16

From the Canyon Edge - Ubuntu on Windows -- The Ubuntu Userspace for Windows Developers

"So maybe something like a Linux emulator?" Now you're getting warmer! A team of sharp developers at Microsoft has been hard at work adapting some Microsoft research technology to basically perform real time translation of Linux syscalls into Windows OS syscalls. Linux geeks can think of it sort of the inverse of "wine" -- Ubuntu binaries running natively in Windows. Microsoft calls it their "Windows Subsystem for Linux". (No, it's not open source at this time.)

I have conflicting emotions about this.. Like when Oculus was bought by Facebook.

→ More replies (4)
→ More replies (6)
→ More replies (1)
→ More replies (4)

76

u/Workaphobia Mar 30 '16

Apparently, they've added support for native ELF binaries to Windows.

Well now I know I'm not in my home universe.

Incidentally, "Adding support for native ELF binaries to Windows" would be a great Cards Against Humanity card. It'd pair well with the "This is the way the world ends" card.

19

u/KeytarVillain Mar 31 '16

It would be perfect for Cards Against IT

→ More replies (2)
→ More replies (24)

52

u/benpye Mar 30 '16 edited Mar 30 '16

Pretty sure it's using the plain Ubuntu repos, and it implements a Linux subsystem on Windows. I guess if you ran an X server on Windows you could run GUI apps with the right configuration...

EDIT: Yep, https://channel9.msdn.com/Events/Build/2016/P488

13

u/compdog Mar 30 '16

So could I run xming and set the internal ubuntu to use it on localhost? That would be amazing!

→ More replies (1)
→ More replies (6)

12

u/dangerbird2 Mar 30 '16

If we can how does it run a GUI

Yes, if they are able to create a proper x-window server in Win10. Cygwin already has its own source port of X11, which allows recompilation of Linux Gui programs, and desktop environments, onto Windows. Because X11 is so tied to system drivers and kernel modules, its doubtful that either native Linux X11 builds nor Cygwin's implementation would work with the proposed "Winbuntu", which mainly ports Ubuntu's userland.

9

u/ghjm Mar 31 '16

Either the Linux on Windows subsystem includes a framebuffer, in which case you run Ubuntu's xorg, or it doesn't, in which case you run Xming and connect to it on localhost.

→ More replies (2)
→ More replies (11)