ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > General Software Discussion

Run Bash on Ubuntu on Windows

<< < (2/2)

Shades:
Using Bash, etc. directly in Windows with Windows was already possible in 2009, though portable Ubuntu only worked in 32-bit editions of Windows.

f0dder:
Just keep in mind that this sounds like it's running a lightweight VM of some sort - the bash window cannot run or interact with Windows programs.-mwb1100 (April 01, 2016, 08:12 PM)
--- End quote ---
I wonder what the technical reason behind this is - as far as I understand their approach, this is more of a syscall translation thingamajig than a lightweight VM like CoLinux. There's probably still some kernel object translation going on as well (like file handles) which might complicate windows<>linux communication, and probably some security concerns as well.

Would be interesting with some more implementation details, as well as a comparison to existing stuff like CoLinux.

I have no idea why Microsoft took the route it did when these tools are readily available.-Edvard (April 01, 2016, 09:08 PM)
--- End quote ---
Perhaps because it might be an easier route to running stuff than porting? Perhaps to be able to support closed-source linux binaries?

I personally can't think of any use cases where this would be better than using the MinGW binaries, but it's cool tech :)

Edvard:
Just keep in mind that this sounds like it's running a lightweight VM of some sort - the bash window cannot run or interact with Windows programs.-mwb1100 (April 01, 2016, 08:12 PM)
--- End quote ---
I wonder what the technical reason behind this is - as far as I understand their approach, this is more of a syscall translation thingamajig than a lightweight VM like CoLinux. There's probably still some kernel object translation going on as well (like file handles) which might complicate windows<>linux communication, and probably some security concerns as well.-f0dder (April 04, 2016, 04:41 PM)
--- End quote ---

From this article: (emphasis mine)
http://www.zdnet.com/article/ubuntu-not-linux-on-windows-how-it-works/
How the heck did they do that? First, Ubuntu parent company Canonical and Microsoft will be running it not on Linux in a container or virtual machine (VM), but on Windows native libraries and programs: Windows Subsystem for Linux (WSL).

WSL was quietly placed in the Windows 10 (build 14251) code in late January. A few days later, a developer worked out that two new subsystems lxcore.sys and lxss.sys, could be bridges for Windows programmers to develop Linux applications. The developer was half right.
...
"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 a "Windows Subsystem for Linux".

--- End quote ---

Recall that Wine is a recursive acronym for "Wine Is Not an Emulator", so no, it's not a VM sort of thingy, but definitely a translation layer.  I was wondering why they targeted specifically Ubuntu, I mean you gotta start somewhere, but...  :huh:
Looks like the article mentions that it's to provide maximum compatibility with their Azure cloud services, upon which the most popular Linux distribution is Ubuntu.

mwb1100:
Well, that's interesting.  If it's just a translation of syscalls handled by those two driver files, this should be *very* lightweight.  I currently use a Mint VM to do some Linux-based things (including Android builds - which are pretty resource intensive).  This might be a way to do those things with some better performance.

I've been avoiding upgrading to Win10 from Win7 because of a combination of not seeing much benefit and hearing too much about invasive behavior by the system.  This might be enough for me to reconsider the free Win10 upgrade.  I wonder if there's any hope of a hack that gets this support onto Win7?

Navigation

[0] Message Index

[*] Previous page

Go to full version