• Ubuntu to be integrated into Windows 10
    138 replies, posted
[QUOTE=Pepsi-cola;50036384]So we will be able to use any linux command line program within command prompt?[/QUOTE] Allegedly most, but not all.
Has OpenSSHd not been compiled w/ cygwin?
I might give this a try for the heck of it. I'm not hardcore into Linux so I'm not super excited myself. I only run Arch on my laptop and some small distros on old laptops. But I know plenty of people who use Linux as their main OS and any new support is a step forward for them I guess.
[QUOTE=kaukassus;50035347]Just the terminal? That is some actual really hot shit, and as a developer/sysadmin this has gigantic implications.[/QUOTE] And I don't see any reason you couldn't run an X server on Windows and use it for graphical applications too... with some configuration. Anything that doesn't touch kernel mode should work... I think, and that works within the somewhat limited virtual terminal. [url]https://channel9.msdn.com/Events/Build/2016/P488[/url] indicates that they have some issues with their terminal being a little limited currently.
Is this available yet? If it's not I'm honestly kind of worried it's an elaborate April Fools joke
Are there any reaction videos of Canonical engineers hearing, "Yo, Microsoft just called, they want to ship Ubuntu with Windows, get to work" yet? [editline]---[/editline] Or a recording of the MS meeting where someone first brought this up?
test [vid]https://sec.ch9.ms/sessions/build/2016/P488.mp4[/vid]
So will this basically be like a native virtualbox for Windows 10 produced by Microsoft or will Linux / Ubuntu applications be able to interact in the same exact environment as Windows and share the same files and switch between Windows from the two without any hassle or am I getting this all wrong?
[QUOTE=apierce1289;50037791]So will this basically be like a native virtualbox for Windows 10 produced by Microsoft or will Linux / Ubuntu applications be able to interact in the same exact environment as Windows and share the same files and switch between Windows from the two without any hassle or am I getting this all wrong?[/QUOTE] This is not a virtual machine. This is Linux applications, built for Linux, without any code changes, running directly on Windows, via a new Windows kernel subsystem that takes Linux system calls. It's basically a reverse WINE that runs inside the OS kernel.
[QUOTE=Asgard;50035232]So some more information came out [url]http://blog.dustinkirkland.com/2016/03/ubuntu-on-windows.html?m=1[/url] Looks like it's just the terminal? There goes my hopes of getting rid of Windows 10, but still using Windows apps. (No WINE doesn't count, as it's p much awful) [editline]30th March 2016[/editline] I should note that it's great nonetheless, but I kind-of had my hopes set on getting rid of Windows 10 once and for all.[/QUOTE] Man I hope that the terminal in this is better than the shitty command line that came with windows 10 [editline]s[/editline] Ooh, it looks like it IS a lot better than the shitty w10 command line
[QUOTE=phygon;50039115]Man I hope that the terminal in this is better than the shitty command line that came with windows 10 [editline]s[/editline] Ooh, it looks like it IS a lot better than the shitty w10 command line[/QUOTE] To be fair powershell is really powerful [I]if you take the time to learn to use it[/I].
[QUOTE=Keychain;50034566]Ubuntu is getting integrated into Windows 10 and people still find a reason to complain about Windows 10.[/QUOTE] Did they fix not being able to use a controller in exclusive mode properly? Last i used it you had to disable a service, restart the computer, plug in controller etc, then start the service again so the start menu doesn't break. That's my main problem with it.
[QUOTE=~Kiwi~v2;50032787]Now this is a fucking bombshell. Holy shit this is something I did not even expect. If this is what Windows 10 Redstone was meant to be by all means I wanna hop on this shit.[/QUOTE] [URL="http://www.chip.de/news/Windows-10-Redstone-Diese-Neuheiten-zeigt-Microsoft-heute-Abend_91654352.html"]It is.[/URL] (Translation gist: Hell freezes over, Windows becomes Unix binary compatible via new subsystem in Redstone update. Source: Microsoft Build conference.)
[QUOTE=kaukassus;50035405]Well, I did initially think that they would just fork the bash and other coreutils code and create a native port for each of those. I'd never think that they would go as far as making a proper linux -> windows syscall translation layer, along with a fully functioning ubuntu userland. This also means proper SSH Server/Client on Windows.[/QUOTE] I fail to understand what "Ubuntu to be integrated into Windows 10" truly means. Native ports of coreutils and filters already exist. They are part of the [url=http://gnuwin32.sourceforge.net/]GnuWin32[/url] project. There is no more work to be done over there.
[QUOTE=Sonic4Ever;50039597]I fail to understand what "Ubuntu to be integrated into Windows 10" truly means. Native ports of coreutils and filters already exist. They are part of the [URL="http://gnuwin32.sourceforge.net/"]GnuWin32[/URL] project. There is no more work to be done over there.[/QUOTE] This is not a port. It's also not running in a VM. You can now simply take an executable binary from a linux system, and run it in Windows with no modifications. It essentially allows you to run Linux CLI Applications with no recompiling or porting. It also gives you a fully Supported UNIX Envionment complete with /dev and /proc Support. This is also Vastly Different to Cygwin, MSYS and MSYS2. While these require binaries to be recompiled while praying to the gods that the Cygwin Binary works, the new Method from Microsoft is essentially what the WINE Project on Linux delivers. Only that it's in reverse and is an integral component within the NT Kernel that powers Microsoft Windows. Another difference to Cygwin being that these binaries perform at native speeds. And the last big difference is that GnuWin32 uses Windows Paths like C:\Users\Whatever while the new native Linux applications would use /mnt/c/users/whatever (the C:\ Directory being a mountpoint at /mnt/c) tldr: Windows can execute both Windows and Linux Programs essentially. Linux programs are not ported and don't require recompiling. Linux programs run native in windows. [editline]-[/editline] An Added bonus of this is that Developers that Write CLI Utils for Linux and OSX no longer have to wrap their heads on how to make it compatible with Windows. They can simply compile it for Linux / Ubuntu and it will automatically work in Windows's Linux Subsystem
So does this mean I can use GetTimeOfDay natively in Windows programs?
[QUOTE=Snickerdoodle;50039681]So does this mean I can use GetTimeOfDay natively in Windows programs?[/QUOTE] If you mean this [url]http://linux.die.net/man/2/gettimeofday[/url] Then yes, as long as it's compiled with GCC within the Ubunt/Linux userland. (Maybe someone finds a way to do this with MSVC or MinGW Windows Binaries).
[url=https://blogs.windows.com/buildingapps/2016/03/30/run-bash-on-ubuntu-on-windows/]Microsoft wrote their own blogpost about it, it'll be in Insider builds after BUILD.[/url] The Three Caveats they gave, since everything needs caveats: 1.) It's still in beta. Some stuff might not work right. Tell them so they can fix it. 2.) It's intended for developer stuff like Ruby, not server stuff. 3.) Bash and Linux tools can't interact with Windows apps, and vice versa, so you can't, say, run Notepad from a Bash script.
[QUOTE=The Kins;50039768]3.) Bash and Linux tools can't interact with Windows apps, and vice versa, so you can't, say, run Notepad from a Bash script.[/QUOTE] I get a feeling that this'll be possible to work around. Sounds like a fun project.
Can you traverse the linux file system using explorer?
Yes [QUOTE] Did you catch that bit about /mnt/c... That's pretty cool... All of your Windows drives, like C: are mounted read/write directly under /mnt. And, vice versa, you can see all of your Ubuntu filesystem from Windows Explorer in C:\Users\Kirkland\AppData\Local\Lxss\rootfs\ [/QUOTE] [URL="http://blog.dustinkirkland.com/2016/03/ubuntu-on-windows.html"]http://blog.dustinkirkland.com/2016/03/ubuntu-on-windows.html[/URL]
[QUOTE=zoox;50040281]Yes [URL="http://blog.dustinkirkland.com/2016/03/ubuntu-on-windows.html"]http://blog.dustinkirkland.com/2016/03/ubuntu-on-windows.html[/URL][/QUOTE] Does rm -rf work?
[QUOTE=rndgenerator;50040310]Does rm -rf work?[/QUOTE] yes, you got the same rm binary as on ubuntu, and thus you got the same functionality. if you mean the command [code] rm -rf / [/code] Then that only works nowadays if you pass it as [code] rm -rf --no-preserve-root / [/code] I can imagine that this will kill the Linux userland on your windows. I don't know what will happen to the /mnt/c mountpoint tho, if it also traverses down the mountpoint.
The real question is.. When will systemd conquer Windows?
[QUOTE=The Kins;50039768][URL="https://blogs.windows.com/buildingapps/2016/03/30/run-bash-on-ubuntu-on-windows/"]Microsoft wrote their own blogpost about it, it'll be in Insider builds after BUILD.[/URL] The Three Caveats they gave, since everything needs caveats: 1.) It's still in beta. Some stuff might not work right. Tell them so they can fix it. [B]2.) It's intended for developer stuff like Ruby, not server stuff.[/B] 3.) Bash and Linux tools can't interact with Windows apps, and vice versa, so you can't, say, run Notepad from a Bash script.[/QUOTE] :cry: I don't give a shit about any dev stuff. Give it me server shit or give me death.
[QUOTE=Levelog;50042401]:cry: I don't give a shit about any dev stuff. Give it me server shit or give me death.[/QUOTE] Why would you want the Unix userland on a Windows server? At that point you might as well just run a Linux server since it consumes a lot less resources in every way.
[QUOTE=mastersrp;50042478]Why would you want the Unix userland on a Windows server? At that point you might as well just run a Linux server since it consumes a lot less resources in every way.[/QUOTE] Windows specific server applications. I run into it a lot. It would just be nice for a convenience perspective to have bash rolled in for general administration.
[QUOTE=Levelog;50042503]Windows specific server applications. I run into it a lot. It would just be nice for a convenience perspective to have bash rolled in for general administration.[/QUOTE] I'm pretty sure "developer stuff" includes "sysadmin stuff", they just don't want you running Apache in production on it.
[QUOTE=kaukassus;50034392]From what it looks like, it wont give you a new interface but mostly a proper UNIX-like CLI Environment. This is pretty much every developer's wet dream, especially in Web Development. If you do anything in webdev, the vast vast majority of tools assume that you either run a Linux variant or OSX. Windows support is often an afterthought, as it's simply too different compared to Linux and OSX, and the CLI Environment in Native windows is the equivalent of a drolling baby. (Yes I know there's powershell, and yes I know it's powerful, however it's also insanely complicated and is as far away from conventional CLI Environments as a shell can be). However, as a regular user, you most likely won't really see that much change (I'd love to be wrong and see them port over more than the CLI Tools, and a Proper UNIX Environment and Directory Structure).[/QUOTE] And for me as a developer on linux this also means I can worry less about supporting windows. I'd say this is a win win situation for both platforms. [editline]1st April 2016[/editline] [QUOTE=DrTaxi;50045240]I'm pretty sure "developer stuff" includes "sysadmin stuff", they just don't want you running Apache in production on it.[/QUOTE] In the demo they were downloading packages from the ubuntu repository untouched. I would assume this includes everything. I'm not really sure how the X server and such would work here though. I also read a comment on msdn about wanting to communicate with windows from the environment which also wasn't possible yet.
[QUOTE=srobins;50041124]The real question is.. When will systemd conquer Windows?[/QUOTE] In a few mere years itll not be whether you run mac, osx, or windows. For we will all use systemd as a kernel, supervisor, init script, office suite, libc implementation, everything.
Sorry, you need to Log In to post a reply to this thread.