22 ms·
Bash and Windows Subsystem for Linux Demo [video]
- gwu78 10y agoDumb question: Why did they name this "Subsystem for Linux"? (Old name was Interix, subsystem for UNIX-based applications, or "SUA".) Does marketing/users believe there is a distinction between Linux as a kernel and GNU as a source for a userland? Irrelevant? Curious what others think.
- WorldMaker 10y agoThe big difference is that it isn't just POSIX compatible, it is a full out "bug-for-bug" emulation of the Linux kernel specifically with an eye towards binary compatibility. Out of the box, the userland here isn't just GNU, it is entirely the same binaries as shipped by Canonical in Ubuntu. Old Interix required retargeting and recompiling binaries, similar to how you would need to recompile to target the differences between Linux and BSD. WSL runs Linux binaries without the need to retarget or recompile specifically for Windows. This also means that the long tail ecosystem of Ubuntu PPAs and custom binary download sites all mostly work, too.
- Rayearth 10y ago>the userland here isn't just GNU Ah okay. Shame that calling this "GNU/NT 10.0" would not be proper then.
- WorldMaker 10y agoThere's still enough GNU there that you could call it that if that amuses you to do so. (Though I bet RMS will happily throw a fit in your direction if you do. ;)
- bgrainger 10y agoIt’s “GNU\NT 10.0”.
- mycall 10y agoGNU\Linux\NT 10.0
- shmerl 10y agoYeah, the name is pretty misleading. I first thought it's about MS making something to run on Linux. It's not.
- nxc18 10y agoThe old stuff provided source-level compatibility with UNIX via posix compliance. The Subsystem for Linux is essentially an implementation of the Linux ABI, which is distinct from UNIX and provides true binary compatibility. The ironic thing is that WSL itself is deliberately not Linux; the only similarity is the user-space ABI. Unfortunately, I've met very few developers (admittedly interacting mostly with students) who have any understanding of what is Linux vs. GNU utilities vs. UNIX, vs. Ubuntu. "macOS is basically Linux right? Its because of the Terminal". screams
- bitwize 10y agoAgreed. The name is backasswards; it should be "Linux Subsystem for Windows".
- bitcrazed 10y agoCan't lead with someone else's trademarked product name. You'd be amazed how complex and difficult product naming can be ;) Just be glad we didn't call it WSRPGLCB - Windows Subsystem for Running POSIX, GNU and Linux Compatible Binaries ;)
- nailer 10y agoThis is coming to Windows stable in April: - vt sequences fixed (so stuff like colored output, midnight commander, etc work and the terminal doesn't screw up) - Elixir and Go work - Also Postgres and MySQL - You can launch Windows apps from bash. - inotify works - Visual Studio can compile with GNU/Linux C/C++ tools, gdb, linker etc There's some recent fast ring info on: https://blogs.msdn.microsoft.com/commandline/2017/01/09/bash-in-windows-insider-build-15002-many-fixes-but-a-couple-of-bugs/ https://blogs.msdn.microsoft.com/commandline/2017/01/09/bash... From reading that blog, and also: https://github.com/Microsoft/BashOnWindows/issues/111#issuecomment-238302654 https://github.com/Microsoft/BashOnWindows/issues/111#issuec... it sounds as if the Windows console (separate from bash, openssh, powershell etc) is being entirely refactored for creators update. So those fixes should also help powershell, ConEmu and a bunch of other common windows command line stuff.
- romanovcode 10y ago> - You can launch Windows apps from bash. So I can basically do `code .` from inside bash and it will open VS Code in the linux sub-system folder? That's amazing!
- toolbox 10y agoJust for reference, I've been doing this for a few months now. I'm not sure what's changed, but you'll need ubuntu 16 (you can uninstall 14 and reinstall WSL to get it) in WSL to do it.
- chrisper 10y agoAre you running the fast ring build? EDIT: Actually, since I am doing that as well, I just tested it. And yes, it all works!
- bitcrazed 10y agoYou don't HAVE to nuke & reinstall your Linux environment to get up to 16.04 - we also support in-place upgrades too ... so long as you're running a Windows Insider build >= 14951 HTH
- teh_klev 10y agoThat's one low quality video, and to add insult to injury they're posted on Facebook. Here's a better quality video on Channel9: https://channel9.msdn.com/events/Windows/Windows-Developer-Day-Creators-Update/Developer-tools-and-updates https://channel9.msdn.com/events/Windows/Windows-Developer-D... Same start time of ~17:00 mins in.
- nailer 10y agoThanks. Sorry about the bad quality link, I got it from their Twitter account. I'd rather just see it on their own site or YT/Vimeo too.
- deleted 10y ago[deleted]
- sctb 10y agoThank you! A moderator updated the link from https://www.facebook.com/windowsdeveloper/videos/10155352927417923/ https://www.facebook.com/windowsdeveloper/videos/10155352927....
- mythz 10y agoIt's impressive how fast the WSL team is iterating. Being able to create and debug Linux exe's through Visual Studio is pretty damn slick.
- oblio 10y agoI wonder when it will be RTM (release to manufacturing => stable)
- teh_klev 10y agoI think it's coming in the Windows 10 Creators Update in April: http://www.theverge.com/2017/1/2/14146182/microsoft-windows-10-creators-update-april-release-date http://www.theverge.com/2017/1/2/14146182/microsoft-windows-...
- Philipp__ 10y agoWith Visual Studio Code, Microsoft is making Windows 10 really appealing to developers. I personally won't jump any time soon, I am really satisfied with my work environment on macOS (and Linux inside VM) (unless I got locked down into Microsoft stack for work, in that case I will gladly switch, but it's not like I will have any other option). But anyway, I recognize and appreciate the change at Microsoft's direction of thinking, it's awesome! I wouldn't believe if somebody told me this 10 years ago...
- 0xFFC 10y agoVCpkg (and ofcourse CMake support, without it I don't use VS honestly) made me to make that switch ! it is awesome, it is one thing as C++ dev I always dreamed of
- hashhar 10y agoVCpkg is so much better in my opinion than installing library devel packages on linux. Makes it a pain to keep track of them. Also the code completion and refactoring capabilities are itself worth it. You can now also compile using the gcc toolchain if you have WSL installed.
- 0xFFC 10y agoI agree, it is much better option than traditional /usr/lib
- deleted 10y ago[deleted]
- deleted 10y ago[deleted]
- wyldfire 10y agoNot since Windows 2000 have I been so interested in an upgrade to a new Windows release. Only at work do I have to suffer through Windows, but this would make things much nicer there. I hope/pray that readline and/or editline work correctly on bash et al? Do Windows CI services like Appveyor support WSL? If so I would hope that deploying to windows for lots of high level software is relatively painless. Head scratcher from the video: > What if I want to open this file in notepad? > ... <demonstrates opening notepad from bash> > audience applauds Ugh, the only thing worth applause here would be if instead he had said "and we finally taught notepad how to work with different line-endings" or "and we finally deleted notepad". The demo clearly shows the shebang line mashed in with the rest of the file contents. "This was a very popular ask" -- from whom‽ To present things as a dichotomy between vim and notepad is not honest. EDIT: comments below have clarified: the feature refers to launching Windows processes from linux ones, not notepad specifically.
- sbarre 10y agoI think they mean launching Windows-side apps from the Bash CLI. This had nothing specifically to do with Notepad, I would bet they just used it as a simple example.
- struppi 10y agoI think this means that you can finally run EXEs in an easy way, directly from WSL. Without installing cbwin. Basically this: http://stackoverflow.com/questions/38920710/how-can-a-run-windows-executable-from-wsl-ubuntu-bash http://stackoverflow.com/questions/38920710/how-can-a-run-wi...
- ohstopitu 10y agoThe idea is that you can probably open the file from other windows programs (like Sublime text). For a while, it was impossible for windows programs and WSL content to mix (and if you could somwehow do it, it was highly discouraged). But that's no longer the case. Notepad is just an example to prove this point.
- johansch 10y ago> Not since Windows 2000 have I been so interested in an upgrade to a new Windows release. Well, yeah, Windows has been in the dollar milking phase for quite some time now (at least a decade). It's no longer about delighting the user (yes, even Microsoft used to do that!). Or even just keeping them happy. It's just about keeping them not unhappy enough to switch to the alternatives.
- pawadu 10y agoNow all we need is a first-party X server...
- gecko 10y agoAny particular issues you've got with the existing third-party ones? I don't honestly use them often (I just work on the Windows side for 99%+ of the GUI stuff I need to do), but I've not had any issues with Xming, even on a HiDPI display.
- Eridrus 10y agoIt's been a few months since I tried, but I couldn't get OpenGL stuff to work with an X server. I needed it to run OpenAI's gym platform.
- nrclark 10y agoXming works, but it does have some warts (at least, on my machine YMMV). The three things that bug me most about it: 1. Copy/Paste between Windows and XMing is pretty dicey. Sometimes I have to do 2-3 copy or paste attempts before one will go through. I got into the habit of hitting SHIFT+CTRL+C (or CTRL+INSERT) 3-4 times in every XMing window under the hope that one would take. 2. XMing's window previewing is kind of messed up. if you have multiple overlapping XMing application windows, the ALT+TAB and taskbar previews show the overlapped union of both windows, which makes it really hard to tell which one is wich if you have multiple terminals open or something. 3. On some applications, the DPI detection seems kind of wonky. I even bought the paid version thinking it would fix this stuff, but it didn't :(
- JorgeGT 10y agoWhat we need (last time I checked) is cron jobs and persistent services (sshd pls).
- hashhar 10y agosshd works I guess. I can start sshd on WSL and connect to it using ssh from Visual Studio to build my C/C++ code on Linux using gcc. Maybe there are some others features of sshd you are talking about that I may not know about.
- Sir_Cmpwn 10y agoOi, `file` is a BSD tool, not a GNU tool.
- _ZeD_ 10y agohttps://www.gnu.org/software/fileutils/fileutils.html https://www.gnu.org/software/fileutils/fileutils.html
- Sir_Cmpwn 10y agoThat's not the `file` command, it's tools for working with files: chgrp, chmod, mv, rm, etc. These have all been folded into coreutils these days, which also does not contain the `file` utility. Ubuntu and practically all other Linux distros ship BSD's file utility.
- dualogy 10y agoNewb question, does this "Winbash" run Linux/posix/unixy binaries that wouldn't otherwise run or does it assume the actual Windows dists/builds for (Elixir / Go / PostgreSQL / MySQL / GHC / etcpp)?
- sdrinf 10y ago* Yes, these are native, ELF binaries. Yes, you can compile it on your linux server, cp it across to windows, and run it. * No, it is not an emulation. The win10 kernel + compatibility layer just happens to be able to also run ELF binaries. Yes, these show up as standard processes, and can be interacted with using normal windows tools (eg taskmgr).
- dualogy 10y agoI see, thanks, this curiously "mildy" (or perhaps, increasingly/incrementally) incentivizes most of these linux/posix/unix-"native" FOSS projects to no longer provide separate "Windows builds": simplifies code-bases, deployment, documentation, support, everything. But if they still continue to do, they have just another "support/bug dimension" to deal with in addition to "OS" --- the old "Windows build" plus also now "X-ish build under Winbash". In another twist to this, this dynamic then might 'incentivize' users of those packages to upgrade to 10 when they wouldn't have otherwise (or switch to Linux for good ;)
- bitwize 10y agoWindows also needs to simulate the Linux kernel ABI -- not just "run ELF binaries". It's like "kernel personalities" in BSD.
- bitcrazed 10y agoErm ... that's exactly what WSL does. Not quite sure how we'd be able to run ELF64 Linux binaries without building a comprehensive Linux ABI compatible layer. You might be interested in some of these videos and posts: https://blogs.msdn.microsoft.com/commandline/learn-about-bash-on-windows-subsystem-for-linux/ https://blogs.msdn.microsoft.com/commandline/learn-about-bas...
- virtuexru 10y agoDeveloping on Windows in 2017 LUL 4Head
- IntelMiner 10y ago4chan is back that way, friend
- kirkdouglas 10y agoLooks great! I won't switch from Mac anytime soon, but competition is always good. Can't wait to see how Apple will respond to latest Microsoft actions (WSL, Surface Book and Surface Studio).
- baq 10y agoif it responds. apple looks more and more like a luxury goods company and the things you mention aren't that. (not saying it won't, but i'm pretty sure 'how' isn't a certainty.)
- OhSoHumble 10y agoThe biggest problem I have with the WSL is that it is intrinsically tied to stable Windows releases; there is no way to get incremental updates for Bash on Windows unless you subscribe to the Windows Insider program, which is a way of running prerelease versions of Windows. So in order to get Linux features like inotify working you have to sacrifice the stability of your operating system. This looks like it'll be true till the end of time. Does your dev work depend on bug fixes or certain syscall implementations? Well, either run an OS that may or may not work at any given time or wait several months for the next release. A couple weeks back I tried to give WSL a try but everything was broken. Inotify prevents hot reloading, which really makes my life just dandy, so I tried to transition to the insider program in order to get my fix. To my chagrin, this caused Node to up and break on me. Like, full stop doesn't work anymore. I ended up going back to Linux. I really hope that developing on Windows becomes something other than 'awful' - for me at least - but I don't think it's quite there yet.
- kirkdouglas 10y agoIIRC WSL is still in beta.
- oblio 10y agoDoes anyone know the roadmap for WSL? My guess is that WSL itself is still unstable right now and later on it won't really need a lot of updates. On top of it, the Ubuntu userland should be freely upgradable - I think.
- nailer 10y ago> My guess is that WSL itself is still unstable right now Correct, it's currently a 'technology preview'.
- bitcrazed 10y agoActually, it's currently a 'beta' feature while we continue to expand the breadth and depth of WSL's syscall implementation & supporting tools. That said, WSL is now far, FAR more compatible with the majority of mainstream dev tools than it was in Anniversary Update or early Insider builds. Don't take my word for it - I am biased ;) - but if you've not taken a look at WSL in 2017, you might be surprised by how much now works very well :)
- partycoder 10y agoI think "bash on Windows" is not a valid way of describing what it is. Cygwin, which allows you to run bash among many things, has been available for TWENTY TWO YEARS now. However it required such software to be ported and recompiled specifically for its use with Cygwin. The difference this time is being able to run unmodified Linux software on Windows, through an application binary interface called Windows Subsystem for Linux or WSL. "Bash on Windows" is the least tech-savvy way to describe what is going on.
- 1wd 10y ago> Bash on Windows or Bash/WSL got the most votes in early polling while we were choosing a descriptive name for this unusual feature, especially compared to WSRPGLB (Windows Subsystem for Running POSIX, GNU, Linux Binaries) which felt a little cumbersome https://blogs.msdn.microsoft.com/vcblog/2017/02/08/targeting-windows-subsystem-for-linux-from-visual-studio/#div-comment-261155 https://blogs.msdn.microsoft.com/vcblog/2017/02/08/targeting...
- partycoder 10y agoThat should not have been a poll option in the first place because it oversimplifies what it is.
- midnitewarrior 10y agoWow. This is a game changer.
- saboot 10y agoA basic thing, but glad they updated console to support more colors and basic vt sequences. Currently I just have X11 server on startup and through some scripting have a shortcut to launch an xfce4-terminal instead of the native console.
- menacingly 10y agothis is my setup as well, my vim theme looked horrible without the extra colors. My computer usage tends to be as a dumb terminal for SSH, and in that regard, I'm not having any trouble with WSL
- nailer 10y agoI use ConEmu (and Windows openssh) and have to deal with sporadic console breakage. Apparently this should be fixed with the console rewrite.
- notheguyouthink 10y agoI'm still afraid to fully depend on this, and i'm sure i will be for years to come, but this is by far the most i've been interested in windows. Who knows, in 3 years i might be able to ditch OSX for Windows, because some of the Surface devices actually look decent (no idea how true it is tho).
- jaxn 10y agoI ditched OSX for a Surface Book and am really happy with it. I use WSL everyday and primarily develop in Ruby.
- inestyne 10y agoHow is the file system performance going with this? The latest release version runs Rails worse than shared folders on VMWare which is slow in bad way. Running MySQL on top of it might "work" but is it fast?
- bitcrazed 10y agoIO perf isn't where we want it to be yet, but we've some improvements coming in Creators Update and more planned for future releases.
- ZenoArrow 10y agoIs it possible to access network drives yet? If not, is this something that's being worked on? Thanks!
- bitcrazed 10y agoAccess network drives? Via SSH? Sure. Via Samba? Yep: https://www.samba.org/~garming/ https://www.samba.org/~garming/ If you mean MOUNT network drives, then, not yet, alas. But yes we're keen to build that support when we can.
- mkl 10y agoI think they mean network drives mounted or accessed in Windows. For example, from WSL I can't access files on my network share (in windows it's \\pc-name\\shared, where pc-name is running Samba under Linux). Mapping a drive letter to it doesn't work either - the only thing that shows up in /mnt is c. This is quite a pain.
- bitcrazed 10y agoYep - that was the mount thing I mentioned in my prev' reply: We've not yet got around to mount support, but it is on our backlog and we're keen to get to it when priorities allow ;)
- kazinator 10y agoWith something called Cygnal, you can make native Windows applications, while taking avantage of all the POSIX interfaces in Cygwin. No special subsystem required, just some DLL's. http://www.kylheku.com/cygnal/ http://www.kylheku.com/cygnal/
- ygra 10y agoWith all the drawbacks that Cygwin entails. Plus the requirement to rebuild the code instead of just using the Linux-native ELF binary. Those are two things with very different goals.
- kazinator 10y agoWhich drawbacks are those? (One is performance, unfortunately). Rebuilding the code is the norm in the GNU/Linux landscape. Is Ubuntu x86_64 built from Fedora x86_64 packages? Etc. The requirement "I want to run Linux stuff on Windows without rebuilding" is basically stupid, because you normally don't even run stuff from Linux distro A on Linux distro B without rebuilding. It sort of works for programs that have minimal, reasonably old dependencies.
- wtetzner 10y agoPeople like to use package managers to install thing in a Linux distro. Supporting binary compatibility means that they can just use apt instead of building something new, and rely on Canonical for creating packages.
- kazinator 10y agoIf you're using Ubuntu and relying on Ubuntu packages, that's not "binary compatibility". That's using Ubuntu binaries on Ubuntu. Ok, it's the trivial base case of binary compatibility: A is compatible with A. Ubuntu users do not pull down Fedora packages, right?
- 10y ago
- kazinator 10y agoWith something called Cygnal, you can make native Windows applications, while taking avantage of all the POSIX interfaces in Cygwin. http://www.kylheku.com/cygnal/ http://www.kylheku.com/cygnal/
- yummyfajitas 10y agoI've been running windows (using WSL for most of my development) for a few months and overall I'm very happy with it. Every non-GUI linux program I want to run works just fine on WSL, with the sole exception of (beta software) Urbit. I do miss Xmonad-like window management, but windows does have shortcut keys that do a good enough job. Emacs works perfectly well. And Anaconda (https://www.continuum.io/downloads https://www.continuum.io/downloads ) is actually a good native windows distribution of Python and Julia. Cortana + voice recognition is actually pretty cool, I'm looking forward to hacking on it when MS releases the dev kit. So far, windows seems to be an acceptable Linux. I will probably stick with it for a while, assuming I don't run into any crazy new blockers. (I've been on Linux exclusively since 2001 except for a brief attempt to use OS X around 2009. That experiment was less than successful: https://news.ycombinator.com/item?id=1786930#1787411 https://news.ycombinator.com/item?id=1786930#1787411 )
- bitwize 10y agoEmacs has one flaw for me under WSL: the janky Windows console doesn't pass C-SPC. Meaning I have to bind set-mark-command to something else (like M-SPC), or download and use wsltty (fork of mintty). But other than that Emacs is fine, and a lot of Linux stuff (Node, mongo, etc.) works great. Who cares if Urbit doesn't work? :)
- yummyfajitas 10y agoTo be clear, I use one of the GUI versions of emacs for windows. C-spc works fine there. I'd like to play with Urbit - Yarvin and his goals are interesting enough that I'm willing to spend a few hours playing around.
- blaenk 10y agoWould you mind elaborating on what emacs in particular you're using? I use and love emacs but unfortunately the times I've tried to use it on windows it's been extremely unresponsive.
- WayneBro 10y agoDo you think they'll ever enable background Linux daemons, so that I don't have to keep a terminal open to keep Postgres running?
- bitcrazed 10y agoWe're looking into it. No guarantees yet as there are several challenges and security / management obstacles to overcome, but we are keen to make daemons work if possible.
- deleted 10y ago[deleted]
- innocentoldguy 10y agoIt is good to hear that both Ruby and Elixir work now. I had issues with both when I first tried Bash on Windows. The Windows Subsystem for Linux felt incomplete to me the last time I tried it. I guess that is one of the advantages that macOS has in running Bash. macOS IS Unix, so Bash just fits, rather than being a bolted on service, the way it is in Windows. Hopefully things are much smoother now. It is certainly nice to see Windows finally get a good, cross-platform shell. EDIT: Oops! It looks like Erlang 19 still isn't quite there...
- cmrdporcupine 10y agoI've been sing the Linux subsystem in my new Windows install for the last couple weeks, after buying my first new PC and first Windows machine in ten years. It's actually very impressive, and I like it. My PC has a super loud fan system that requires software support to control to get it quiet. Under my Linux install this was turning into a configuration nightmare, trying to find the right incantations -- under Windows it is working nicely. As are the video drivers. So I am doing my development in the Windows version of CLion, but doing the actual compiles and git usage etc. in the Linux subsystem. It's working really nicely. And for the few GUI I need, apps I run Xming and set my DISPLAY and it works perfectly.
- chrisper 10y agoSame here. I could not get VS code running. However, I could get Gogland and Pycharm running. So I will just use that I guess.
- risyasin 10y agoI couldn't spend more time with that. But my overall experience with WSL is positive at least I don't need to install cygwin just to get basic tools. Windows fs is mounted on /mnt/c which is easy to type. I assume most of important syscalls are already implemented to translate. Even though sometimes bash.exe stops responding and maybe more enter key works. But bash is working like a jailed process, WSL does not report Windows processes that run to it. Which is a deal breaker. Frustrating maybe even more than running without dbus.
- TazeTSchnitzel 10y agoThat's because bash.exe isn't /usr/bin/bash. It's a confusingly-named frontend for WSL, and can essentially launch and proxy any Linux app.
- igtztorrero 10y agoRunning git-bash since 4 years ago. I hate cmd. Microsoft sucks. Windows13 will be based 100% based on Great Linux
- thebspatrol 10y ago>Windows13 will be based 100% based on Great Linux I want to believe. I'd go fucking apeshit if Windows dropped the NT kernel for Linux or BSD.
- trentnelson 10y agoThat would be a huge regression. NT is far more advanced than Linux and BSD combined.
- beefield 10y agoSource? Personally, I wonder how long it takes before redmond realizes that they are wasting shareholder money by maintaining/developing a proprietary kernel. It's not like they could not sell windows/linux as a perfectly good OS with copyrighted components on top of the kernel. Or then I have missed something significant.
- deleted 10y ago[deleted]
- vmp 10y ago(off-topic) 27:08 - 27:09 - glad to see even official (?) Windows People have that random task-bar flicker glitch.
- netshade 10y agoJust a note to anyone looking to go down this road: IO performance is still pretty awful last I checked. If your workflow is IO intensive (non trivial Rails app, let's say), proceed w/ caution. https://www.reddit.com/r/bashonubuntuonwindows/comments/5ecesm/performance_seems_awful/ https://www.reddit.com/r/bashonubuntuonwindows/comments/5ece... - My last check.
- netshade 10y ago(Addendum) I did a Fast Ring update on a separate machine and did not see substantial performance improvements, but the comparison is not valid between the machine linked and the machine I tested on, so I'd be hesitant to say that the performance hasn't improved at all, just that IO performance is definitely a weak point to WSL.
- bitcrazed 10y agoYes - IO perf is not yet where we want it to be. We have some improvements coming in Creator's Update and more substantial improvements planned in future releases, once we've completed some work with the NT kernel filesystem team.
- castratikron 10y agoIs this why Visual Studio is scp'ing source files around, instead of just copying the files to that /mnt/d directory and invoking the compiler there? That seemed like a big hack to me and it wasn't exactly clear why they were doing it that way (near the end, last five minutes).
- chrisper 10y agoI am using WSL to synchronize my stuff to my sever and back via rsync. So rsync runs in Linux with a C# GUI in Windows!
- notaplumber 10y agoGreat! Now does it support SECCOMP yet?
- bitcrazed 10y agoWe do implement (at least some of) prctl(), but not seccomp() yet. If this is important to you, please file a bug and the team will triage & respond. https://github.com/microsoft/bashonwindows https://github.com/microsoft/bashonwindows
- notaplumber 10y agoI don't use github, sorry! :-( I was just saying maybe WSL shouldn't be advertised as ready for prime time without SECCOMP-BPF support implemented, e.g: for OpenSSH pre-auth sandbox. At least not in roles where security is paramount.
- bitcrazed 10y agoWhere is it advertised as "ready for prime time"? All I said was that WSL is likely now stable and compatible enough as a daily driver. Also, remember that our primary goal for WSL right now is to provide a local development environment in which you can build, run, and test *NIX code.
- ryenus 10y agowhen could UTF-8 be the default encoding regardless the session language?
- filoleg 10y agoAny news about 256-color support? I understand the desire for the extreme backwards compatibility, but it requires some manual magic done to display things properly in fish (which, thankfully, works really well with Bash on Windows after the aforementioned magic), and even then it will only support 16 colors.
- imslavko 10y agoThe way I solved the terminal emulator shortcommings is this: Install a gtk-based terminal emulator with gtk/gnome dependencies on you ubuntu subsystem and run it with `DISPLAY=localhost:0.0` environment variable. This works if you run XServer Client on your Windows side. I use XcSrv and pantheon-terminal.
- ygra 10y agoIt might work in ConEmu. As for the native Windows console, I wouldn't hold my breath, considering that that'd be rather incompatible with the current framebuffer and would probably require a lot of new Windows APIs.
- filoleg 10y agoI am using ConEmu, so that works. Thanks!
- ape4 10y agoThey just said they support 16 million colors.
- dec0dedab0de 10y agoI Still wish they did the opposite. I want to seamlessly run an occasional windows app in linux, and I would pay for it. There is literally zero chance of me switching back to windows for day to day usage. Edit: idobai, I can't reply because your account is banned, but last I tried Wine and Crossover do not work for the apps I am trying to use. Edit 2: cyloneyes, you're banned too. But "They" would be Microsoft. They are the only ones who could really do it.
- idobai 10y agoWhat's the problem with wine and crossover? Btw, you can pay for crossover to support its developers.
- cyloneyes 10y agowho are 'they' in this instance?
- blablabla123 10y agoI think the same. (Actually the title sounds like running Windows on Linux ;)) I'll be curious what happens - somehow I'm thinking they would be pretty stupid to do that. There is so much high end engineering and design software running on Windows only, they'd loose them all. On the other hand...does anyone need Windows except in the grey and boring high end/office section? As a matter of fact, people are moving away since some time, either to Linux, macOS ooooor iOS/Android (haha). I guess even by economical means removing that lock-in may make sense.
- Mister_Snuggles 10y ago> I want to seamlessly run an occasional windows app in linux, and I would pay for it. Please define "seamless" in this context. If you mean that you want to have the running Windows apps appear as window in your Linux environment, VirtualBox has a Seamless mode that will do that. I haven't tried it, but what I find with Google seems to say it works as expected. VMware Fusion (on the Mac) has a similar mode called Unity. The VMware one seems to work well enough, but I haven't tried it extensively. If you want to be able to open files in Windows applications from your Linux environment, I'm not sure if this is possible. VMware Fusion (on the Mac) has this - I can right-click on files in the Mac and see various Windows programs on the "Open With" list. I don't know if this feature exists on VMware for Linux, but it would be worth investigating. I'm not aware of an equivalent with VirtualBox. Combined, these two features would probably give you the closest thing to a seamless environment that you can get. If you just want to run Windows on Linux and are willing to put up with the friction of using a VM, VirtualBox does a decent job and makes it fairly painless.
- pritambarhate 10y agoCan anyone please tell if Windows SubSystem for Linux coexists well with Cygwin64 and/or msys? I have Cygwin64 installed. I don't use it a lot but it helps to run some deployment bash scripts which otherwise won't run on Windows. So it will be good to know if Windows SubSystem for Linux messes up with it or not.
- chrisper 10y agoBoth run fine next to each other. The only conflict I can think of is if you don't call "bash" via a complete path, but rather rely on PATH environment variable. Btw. any reason you are not running those bash scripts in WSL now?
- pritambarhate 10y agoThanks for the info. Didn't try the WSL yet. Was afraid to break the workflows which are already working. Planning to give WSL a shot soon.
- emh68 10y agoYou can actually install mingw for Linux in WSL and cross-compile win32 binaries, which is pretty funny.
- lottin 10y agoThis should be really useful for people who are forced to use Windows (e.g. at work). Other than that, I don't think many Linux/Unix enthusiasts are looking forward to running a spyware-ridden closed-source non-Unix operating system.
- spooterspooter 10y agoNo, I believe they're not really after the enthusiasts. I think they're after the fence sitters. Implementing these tools on Windows removes motivation for casual dissenters from building intertia and leaving their platform. This is of course not the first time Microsoft has done something like this. Historically, step two is where they extend the functionality for Windows only. Let's keep them honest and make sure they don't do that again!
- corndoge 10y agoReposting a dead comment on this parent, because it's entirely reasonable. No, I believe they're not really after the enthusiasts. I think they're after the fence sitters. Implementing these tools on Windows removes motivation for casual dissenters from building intertia and leaving their platform. This is of course not the first time Microsoft has done something like this. Historically, step two is where they extend the functionality for Windows only. Let's keep them honest and make sure they don't do that again! Why is this dead? It even has a name. https://en.wikipedia.org/wiki/Embrace,_extend_and_extinguish https://en.wikipedia.org/wiki/Embrace,_extend_and_extinguish
- zyx321 10y agoThe poster has negative karma. They got downvoted on their very first post, so the account is effectively dead unless a mod manually fixes it.
- detaro 10y agoIn the future, please vouch for comments you think should be visible to revive it. (link where the "flag" link would be on a non-dead comment)
- chrisper 10y agoI just ran my local go project in WSL. And I can confirm it works just like it does in Linux. This is huge for everyone!
- hellcow 10y agoAlong those lines, a great trick for Go on Windows is to set your $GOPATH outside of the WSL filesystem, so you're developing in, e.g. /mnt/c/. This gives you full access in both Windows and Linux to your Go project, so if you need to open a file in Photoshop, etc. it's painless.
- kaio 10y agoI seem to miss the point why this is huge. Why can't the project compiled for Windows in first place? Are there System specific calls?
- chrisper 10y agoI like to do my Go development in a Linux environment. So if I wanted to use Windows as my main OS, I'd have to either dual boot or use a VM. Now I can just develop directly in WSL. A lot of people like to also develop in an environment they are going to deploy in. In my case I have some linux specific path in my code. I am also running now Gogland Linux version through WSL.
- tekromancr 10y agoCan it run apps inside Wine? Windows emulating Linux syscalls so that Wine can emulate Windows syscalls.
- zadjii 10y agoI don't have the post on hand, but I know someone around here posted showing that it's possible. We have to go deeper...
- mschuster91 10y agoWINE does not (iirc!) emulate syscalls, it rather provides its own user32.dll and a host of other libraries which then call Linux userland (e.g. DirectX->OpenGL) or syscalls (files, I guess).
- vmarsy 10y agothose are some cool changes. For those who can't/don'w want to watch the video: - 24 bit color support added. - lots of work to support more programs - launch windows programs from bash (notepad.exe for instance) - file change notification support (to allow for automatically rebuilding a website on file change for instance) - can build a C++ project in Visual Studio and deploy it to your local WSL env, so you can run it directly from the local bash. (Visual Studio generates real linux binaries : ELF 64 bit lsb executable) - Remote GDB Debugger: Can use visual studio debug engine to debug linux executables (It looks like this was possible before for remote machines [1], but now it can be done locally on a program running in WSL.) [1] https://blogs.msdn.microsoft.com/vcblog/2015/11/18/announcing-the-vs-gdb-debugger-extension/ https://blogs.msdn.microsoft.com/vcblog/2015/11/18/announcin...
- drdaeman 10y agoAny news about namespaces support (so maybe Docker server can work on WSL)?
- ape4 10y agoIts supposed to be for developers but the next step is running everything. eg `firefox &`
- tambourine_man 10y agoIf Apple gives up on the Mac Pro and Mac mini for good, the Bash Windows Subsystem may be my new home.
- vondur 10y agoI'm pretty happy that Windows Subsystem for linux mostly works. I was able to get Don Melton's video scripts for video conversion to work on my Windows machine quite nicely. I do wish they'd update the base version of Ubuntu used to the 16.04 release. I had to update a bunch of the software needed as the releases for 14.04 were out of date. (ruby being the main one)
- markdog12 10y agoLooks like Creator's Update will have 16.04: https://blogs.msdn.microsoft.com/commandline/2016/10/19/wsl-adds-ubuntu-16-04-xenial-support/ https://blogs.msdn.microsoft.com/commandline/2016/10/19/wsl-...
- Viper007Bond 10y agoYep, I'm running 16.04 on my machine. Works great.
- pandakar 10y agoAwesome! Just compiled latest emacs with-lucid + xming and I have emacs running pretty nicely. Well Done!
- baldfat 10y agoIf ranger and cmus run I will sadly be living in Windows alot more.
- benchaney 10y agoDoes this work with OpenGL transparently? If I write an a program that uses OpenGL on Linux will I be able to run it on windows without any modification?
- kpatrick 10y agoWill console get multiple tabs support eventually?
- denfromufa 10y agonuget does not work
- wentoodeep 10y agoPython dev here, need Ubuntu Xenial update ASAP for Python 3.5. No, I don't wanna be in the fast ring. Tq
- CRUDmeariver 10y agoWhen I was playing around with WSL a few months ago, I came across this emphatic caution from the devs to not modify any files in the Linux subsystem using Windows applications (aka anything with a GUI)[1]. Apparently it destroys file metadata and breaks things. I know it's not that hard to keep your stuff in /mnt/c or wherever, but I wonder if there is any plan (or if it's even possible) to eliminate this last bit of incompatibility. Is it possible to run a GUI version of the Linux version of VSCode on WSL? 1. https://blogs.msdn.microsoft.com/commandline/2016/11/17/do-not-change-linux-files-using-windows-apps-and-tools/ https://blogs.msdn.microsoft.com/commandline/2016/11/17/do-n...
- rilut 10y agoPlease make Bazel run/compatible on BashOnWindows, right now it hangs
- thecourier 10y agoThis is the end for mac
- archon810 10y agoWhat I really want is for the symlinks created on Linux to work on Windows. Right now, Windows can't read them at all.