10 ms·
Windows Subsystem for Linux is making inroads with developers
- LVDOVICVS 7y agoIt worries me that this appears to be Windows attempt to turn Linux into a component of Windows-essentially Windows swallowing Linux. Linux shouldn’t require Windows to operate.
- yingw787 7y agoLinux doesn't require Windows to operate, but it might work better if it's packaged in Windows. The big question mark for me is drivers. Having great drivers to take advantage of hardware across a multitude of different platforms is an issue of market share and market demand. I have an NVMe drive, 16GB of the fastest RAM, workstation-grade networking, and Dolby speakers on my laptop. I can't take advantage of it, because I accidentally erased Windows 10 Professional for Workstations when dual booting Ubuntu, that had all the specialized drivers. I'm fine with Ubuntu, but I kind of wish I had Windows + WSL instead.
- danieldk 7y agoDoesn't Windows download the drivers and/or doesn't your vendor offer driver downloads? (For Windows itself, you can just download the ISO from Microsoft's website and use the product key that is on the laptop during installation.) When it comes to drivers, it's one of the reasons why I dislike Windows. I try Windows every now and then, just to see what is happening in that ecosystem. The last time I installed Windows on my NUC, it automatically got the drivers for all the hardware (nice), but with that all kinds of vendor applications that I don't want, some Realtek nonsense and some Intel GPU application. I was quite surprised by that. On Linux or macOS, I driver is just something that you load into the kernel, but it would never come with applications that I most likely I don't need. The system felt... polluted?
- sml156 7y agoAs long as you have a network connection you can install Win 10 again and it will activate the license for free as long as it's the same Home or Pro version, You can even switch your install to or from 32 and 64 bit. The license is stored on Microsoft's server's.
- yingw787 7y agoI might not have activated my license, but I do have a genuine Microsoft Windows sticker and the laptop serial number. I'll give them a call tomorrow to see what they can do. Thanks so much for sharing!
- Kipters 7y agoYou don't need to, your license is actually an attestation in your laptop's firmware: you can simply reinstall and it will automatically activate by itself
- jorams 7y agoWhenever drivers come up I wonder what people are doing that somehow doesn't just work automatically. Everything I ever plugged into Linux in the past few years has instantly worked perfectly, the only exception being GPUs. Meanwhile Windows starts looking for drivers for a few minutes, and may or may not find them.
- Naac 7y agoAgreed. From the list of hardware OP listed I see 0 reasons why it won't work natively in Ubuntu. Even better than windows because you won't need any special drivers to download!
- danieldk 7y agoMany developers are using Windows or macOS and roll out to Linux servers. HN news has a relatively large number of people that use Linux on the desktop. But if you go to big traditional IT companies, it's mostly Windows and some Mac on the desktop. For people who prefer Linux or deploy to Linux in such environments, WSL and WSL2 are a great improvement over juggling (non-WSL2) VMs.
- pjmlp 7y agoGoogle was there first with ChromeOS and Android, apparently many like their Linux "improvements". Also Solaris, SmartOS, IBM and Unisys mainframes also run Linux on their hypervisor based environments and not much are complaining about them.
- turbinerneiter 7y agoIt sure is nice for all the people who are stuck on Windows/prefer Windows but need access to Linux tools. But I'm not sure what this will do to Open Source in the long run. I don't think WSL users will care a lot about the ideals of the Free Software people and I'm not sure whether the Free Software people will love to maintain code for people who don't give a fuck. Or maybe it will expose more people to the idea and will provide a new entry point for new talents. At least Canonical is getting paid.
- yingw787 7y agoThis isn't Lotus Notes. The nice thing about FOSS is there's a property-based guarantee over software development progress. The moment WSL goes embrace-extend-extinguish (and that's far from guaranteed to happen, given Microsoft's benign nature of late), Linux will just continue to do its own thing. It won't just stop existing. The code isn't going anywhere, and you can always host your own mirrors. And there's always BSD.
- rbanffy 7y ago> given Microsoft's benign nature of late The only reason their are being benign to open source is because it allows them to hedge their bets and leverage their good hardware support to gain share among people who wouldn't consider Windows a viable option. WSL's primary purpose is to prevent market loss to Linux and macOS. And yes, BSD (but we all know how likely that is to happen).
- droopyEyelids 7y agoI think you're asking the right question. We're definitely seeing microsoft Embracing and Extending gnu/linux here.
- pjmlp 7y agoYes, because Google is such a nice community example with ChromeOS and Android.
- pjmlp 7y agoThe way some Linux/BSD developers fled to OS X and now WSL, kind of shows the big mistake it was for Microsoft and Apple not to be serious with their NT/POSIX and A/UX efforts respectively. In a parallel timeline Linux would never picked up steam if those systems had been serious POSIX implementations.
- slipheen 7y agoDo you think there would have been as much value historically? The main part of the appeal of WSL is that it lets me use the Linux dev ecosystem, which (for web work) is larger/nicer than the Windows ecosystem. I think a lot of this comes from the revenue model - For example, nginx is free, where IIS cost money. As the world of cloud computing took off, it was easier to have devs learn Linux than it would be to pay for licenses for each server. Eventually this meant that more companies were expanding/developing Linux solutions, developers were more familiar with those tools, and you have a self-reinforcing circle.
- jnwatson 7y agoLinux didn't win because of POSIX. Linux won despite POSIX. Linux won because it was free and fast.
- hyperman1 7y agoand because a ton of software was available or easy to port from the start, not in the least the GNU project. That's the value of a standard like POSIX, even if it has plenty of warts.
- pjmlp 7y agoLinux won on the server because free beer and lots of money from UNIX companies, using the community to drive down development costs. In what concerns desktop and embedded, it hasn't won. Ironically IoT is now getting full of BSD/MIT licensed POSIX clones, exactly for not having to deal with anything GPL related.
- bubblethink 7y ago
- jojo2000 7y agoIt's a joke. Windows ? Never again.
- jdmg94 7y agoI remember when I bought my XPS13 a year ago, to work while I traveled, I found that even with WSL, it was painful to get my toolchain working on windows (mostly unix based tools) I ended up putting ubuntu (and currently popOS) and never looking back.
- a_imho 7y agoHad the same experience, I was forced to use Windows for a while, it was all so cumbersome. Tooling does not work, permission errors, wsl <-> host system copy errors, line ending errors, docker errors, character escaping errors, especially quotes and double quotes, PATH errors. The list goes on and on and on. Also, if there are are no hard requirements for Windows such as most webdev why would anyone use WSL instead of the real thing? Especially if the deployment platform is Linux, makes no sense for me.
- topologistics 7y agoHave you had bad experiences with Windows subsystem for Linux? In my experience it's useful, effective, and works out of the box with no configuration.
- jojo2000 7y agoI'm being massively downvoted here, thanks for asking the why ! Been using windows 95,98,2k,7,10. I've had countless problems with it for more than 10+ years. Countless steps for system setup, bad/missing drivers, malware, spyware, performance degradation over time, system creeping more and more resources, cannot fix bugs upstream... Since then I've switched to linux (less gaming) which has its own flaws and pains, but I love it. Regarding WSL, why bother mixing two philosophies together ? Switch to linux and you've got it all, unaltered, and open source.
- 7y ago
- thrownaway954 7y agoHow has cron support been coming along? I have also been wanting to play with connecting a WSL Rails app to IIS :)
- dleslie 7y agoThe trick to cron is to have WSL always "running". In my case, I use X410+WSL and have a xfce panel always active on my desktop, and that is sufficient to keep WSL alive and so have a working cron.
- thrownaway954 7y agoso cron is working now in it? I will definitely try it out again. also... why do you mean by "running"? it's basically a vm so as long as i have a command prompt open, it should be running, correct? it would be cool if there was a way of keep it up and running like a regular vm.
- dleslie 7y agoWhen you close the shell it sort of sleeps; there seems to be some hooks to allow it to wake on request, for ssh, but for the most part the system sleeps and won't wake until a shell is opened. I get around this by having an X app always running, and its behaviour is sufficient to prevent WSL from sleeping. Some folks I know just leave the shell open, but having an xfce panel is desirable to me.
- pkulak 7y agoIf you used systemd instead of cron it would at least run as soon as it came back, if it was out when it should have run. That's usually sufficient for backups and such.
- dleslie 7y agoBut then I'd have to run systemd. WSL's Ubuntu by default does not have systemd. #> systemctl System has not been booted with systemd as init system (PID 1). Can't operate.
- dleslie 7y agoWSL+X410 is an amazing combo. I have every linux desktop app I want at my finger tips, with a functional and superior to cygwin/msys shell. And with WSL's import feature I have trivially replicated this WSL environment to all of my machines. Yes, it's won me over.
- quotemstr 7y agoI still prefer Cygwin. I can't make a WSL program that is also a win32 program and that has a native win32 GUI. With Cygwin, I can. If I want a sandboxed VM, I can get a sandboxed VM using a number of different technologies, of which WSL is merely one.
- ryukafalz 7y ago>I have every linux desktop app I want at my finger tips Oh huh, are you running an X server for this? And if so, does GPU acceleration work for Linux apps?
- johnchristopher 7y agoI don't know, I fought Bluetooth and headset mic configurations all the afternoon and got it working (God, I have two mic, why is there 12 mic outputs to choose from ?!) but I still don't want to get back on Windows (it wants too much ram and its file Explorer is too slow compared to dolphin). And then, how do I use bindfs with WSL ? Where are the WSL files and the docker volumes inside it ?
- ABeeSea 7y agoI’ve used windows my entire life/career. I recently moved jobs to an all Mac startup and I can’t believe how much better Bluetooth and VPN is. I keep messing up keyboard shortcuts and I don’t quite understand how “windows” work on a Mac. But the Bluetooth situation alone (I could never get my QC35s to work as a headset when needed and just headphones as needed) means I won’t use windows for a productive work environment for awhile. (Still have a gaming desktop that will always run windows for fun and VMs for dev)
- rewgs 7y ago> I don’t quite understand how “windows” work on a Mac. The app and having a window open of that app are decoupled, simple as that. Open up, say, Safari, press Cmd+W to close the window, and Safari will still be open. Press Cmd+N and you'll open a new window. Press Cmd+Q to quit it, regardless of how many windows (including zero) are open.
- n_kr 7y agoCan you share how you configured your bluetooth headset? I have a pair of sony's noise cancelling ones, but I could never get the mic to work on linux. Thanks in advance! This is about the only gripe I've had with linux desktop in recent years. For everything else, its been at par or better than windows/osx for me. I do mostly programming, music synthesis/recording and photogrammetry/image processing on a Dell XPS-15, and its been great.
- johnchristopher 7y agoWell, here's what I did (not in that specific order): - use alsamixer to find out which mic is which and if they are muted (it's a CLI app) - install blueman to have it easier to switch the headset to hsp/hfp (a2dp sink is one way and it means it's not designed to send sound from the headphones, I made that mistake) - since I have a Dell I had to fight that pesky mute led status in alsa (haven't figured out yet what it means, I ended up disabling the internal mic in the bios to be sure it was the headphone doing the recording) ; there are bug reports about the keyboard key not doing what it's supposed to do ; the internal mic only works when I set it to On in the alsamixer menu ; you can check if the laptop led is on or off (like the webcam) ; - use pavucontrol to try to figure out what device is doing what (it's like the sound control center but it displays more information) - make sure to switch off every device that is not your headset/headphone (hdmi, internal, anything) ; it's funny how you can configure an audio stream (say your laptop's internal speakers) to be the recording stream: it'll just record itself I also installed audacity and recorded myself muttering "blah blah" way too many times in order to try to identify the microphones detected by the system. I still don't understand why I have so many redundant output devices with the same name and an incremental version (:1, :2, :3) but hey.. it works (I just want to be able to video call two colleagues tomorrow, I really don't know how to control for quality if you have studio quality sound recording needs :/).
- time0ut 7y agoI switched to Windows with WSL for all personal work about a year ago. I had been using Lubuntu (Lfce) for years, but wanted to give it a shot. There are some rough edges (file system permissions can be weird if you're sharing files between the host and Linux), but it has been great and I've gotten comfortable with it. One thing to be aware of is many devs will want at least Windows 10 Pro edition ad you can't use Home as a docker host. I didn't feel bad paying $100 for the upgrade though.
- xnyan 7y agoJust an FYI, if somebody wants a legitimate license of windows 10 pro (well, pretty legitimate) eBay vendors sell “OEM” keys which have been pulled from scrapped hardware for a for dollars. If you’re getting audited by Microsoft this is probably not OK, but I have never had any problems with it for personal use. There are also numerous ways to get upgrades from 7 to 10, your employer might offer etc. etc. Microsoft is being pretty liberal with windows 10 licenses these days, even pro.
- yingw787 7y agoNo hypervisor support for Windows Home is pretty insane. Ran into this problem with a friend's laptop during a hackathon a year or two ago. Wonder if ripping that out makes QA faster.
- time0ut 7y agoI'm sure a big piece is Microsoft thinking "most users don't need this so we can get away with charging the few who do". I have trouble feeling outrage because it is only $100 to upgrade. I've paid almost that much for a text editor.
- yingw787 7y agoI'm not angry, I'm just disappointed. So many students and future programmers use Windows Home (I did as a kid), and Microsoft would throw away the opportunity for them to play around and lock them in. Now I can't imagine using Windows Home to program. $100 seems pricey for a text editor, my friend. Is it IntelliJ or PyCharm? Why not VSCode + Sourcegraph?
- nimrody 7y agoHow is the file system performance in WSL? I'm stuck on WSL1 (IT managed OS upgrades) and file access performance is much slower than native windows. So sometimes I give up on my favorite command line tools and switch to "CMD".
- sebazzz 7y agoWSL2 should be OK, as long as you're on the WSL managed filesystem image. On NTFS you will still have issues.
- taborj 7y agoI always felt this was named incorrectly. It's not a Windows Subsystem for Linux operating systems, it's a Linux Subsystem for the Windows operating system.
- quotemstr 7y agoIt's neither these days. It's a glorified VM.
- whereistimbo 7y agoIt was an historical reason. WSL1 was named such because instead of using Linux kernel, Microsoft uses Windows NT subsystem to run Linux userland (hence Windows Subsystem for Linux). As WSL become a well known name, the next iteration (the one with the real Linux kernel) is simply named as WSL2.
- Nullabillity 7y agoIt was wrong then too.
- skrebbel 7y agoNo it wasn't, WSL1 is a Windows subsystem. For running Linux. I think "Windows Linux Subsystem" would've been more accurate, but it's also more confusing.
- ASalazarMX 7y agoThat's why "Linux Subsystem" would have been clear and straightforward. Just one more of Window's subsystems. Cramming "Windows" in the name is what makes it confusing.
- JdeBP 7y agoIt makes a little more sense if one regards it as always naming the thing that is missing, per https://news.ycombinator.com/item?id=11417059 https://news.ycombinator.com/item?id=11417059 .
- baalimago 7y agoOnce WSL2 gets released for real, with the improved docker volume handling, I'll try out WSL for work and skip linux all-together. Great stuff!
- hesdeadjim 7y agoThe filesystem performance on a Windows FS mount is absolutely unusable in WSL2. They are aware of it, but it does not seem to be a priority right now. Looks like I'm going to be stuck on WSL1 for quite some time unfortunately.
- baalimago 7y agoI suppose it depends on what you use it for. I've only tried some simple stuff like having webserver dokcker image and using a volume for the html while developing on the experimental wsl2 integration for docker, and that has worked splendidly. Doing it that way, no files are ever mounted 'from windows', it's all contained within wsl.
- rezeroed 7y agoI tried WSL - the moment you leave that little window you're back in the world of the registry, etc. No thanks.
- 2OEH8eoCRo0 7y agoFor things that do not interface directly with hardware it's great. I use WSL daily for development. The best part of any Linux distro is the terminal, I've ditched my Linux laptop for a Windows laptop with WSL and haven't looked back. I've been pretty tired of linux desktop environments being flaky, lack of gaming, Nvidia driver issues, etc. Windows + WSL has been a godsend
- Lendal 7y agoThe Fedora remix for WSL is on sale for $6 right now. If you're interested in WSL, this is an upgrade from the free Ubuntu distro. I hope they continue on with it for WSL2. I much prefer Fedora to Ubuntu.
- solarkraft 7y agoWSL helps with the pain of having to use Windows, but it's still Windows for good (the trackpad drivers) and bad (pretty much everything else).
- wayneftw 7y agoI've got Manjaro XFCE on multiple workstations for almost 2 years now. Setting up a new Manjaro workstation is far less annoying than setting up Windows 10. I just did a comparison the other day because I needed to work on a SQL Server project that requires the use of Visual Studio + SQL Server Development Tools (SSDT). On Windows 10 Pro - ssh didn't even work correctly in Git Bash after I ran ssh-keygen. I could only git clone from a cmd prompt. The only 2 things I kinda miss from Windows are TortoiseGit and SSDT. Luckily, I don't really need them most of the time. (Before Manjaro I used Windows since version 3 and I only used Linux for server since Red Hat 4 or 5. A couple of years ago I couldn't have imagined using a Linux desktop but now everything I do is just better on Linux.)
- jsmith99 7y agoGit Bash is nothing to do with WSL.
- DeathArrow 7y agoReinstall Git properly. I use it every day on Windows with no issues.
- rbanffy 7y ago> Setting up a new Manjaro workstation is far less annoying than setting up Windows 10 Pretty much true for any Linux distro. Also much easier to fix when something goes wrong (which is increasingly rare unless self-inflicted). And Gnome is an unbelievably polished environment (if not very customizable) Hypothetical scenario - new Dell laptop refuses to connect to your home Wifi. Linux laptop does that flawlessly, same laptop connects when booted to a Linux live USB stick. Where do you look? Standard control panel? Driver-specific panel? Dell's panel? System logs?
- deleted 7y ago[deleted]
- WarDores 7y agoHas VPN support gotten better in the last 8 months-ish? I keep dual booting mostly because managing the configuration turned into a nightmare.
- davefp 7y agoBack when WSL was first released I tried getting my ruby environment set up using it, but at the time I still used a graphical text editor and getting it talking to the Linux filesystem was too much of a bother. Nowadays I use vim so I gave it another chance a couple of weeks ago. Together with the new Windows Terminal app [1] it's been a great experience. I can run my editor and my code on Linux and then visit the webapp from the browser in the Windows environment. Note: There's also better support for talking to the Linux filesystem from Windows nowadays, but I've not needed it so I can't comment on how good it is. Scott Hanselman has a good blog post on getting it set up though [2]) [1] https://github.com/Microsoft/Terminal https://github.com/Microsoft/Terminal [2] https://www.hanselman.com/blog/RubyOnRailsOnWindowsIsNotJustPossibleItsFabulousUsingWSL2AndVSCode.aspx https://www.hanselman.com/blog/RubyOnRailsOnWindowsIsNotJust...
- battery_cowboy 7y agoRe: files I can open explorer.exe from inside wsl2 environment to copy files back and forth easily.
- fmakunbound 7y agoDoes small file IO still suck or is it better now with the 2.0 version?
- zeveb 7y agoI can understand why people left Linux for Mac OS X: at the time, the Linux desktop really wasn't that advanced, and most folks didn't want to deal with what really could be a pain. I thought that it was worth it to stick with Linux, but I could see why some folks would use a Mac. I don't really understand why they stick with it today, but that's a post for a different time. But I really cannot understand why anyone would willingly use Windows. I sometimes have to, and it is hellaciously, embarrassingly bad. There's nothing about the experience which says good or enjoyment or quality or anything positive. Things are inconsistent. There are ads on the home version. Simple things are slow. And it's ugly! If you're stuck at a company which forces you to use Windows, I guess WSL is better than nothing. But why not just move on?
- mlazos 7y agoall I can say is the combination of visual studio + cmake + windows terminal + WSL has been life changing for me. I can have a terminal open with a WSL tab and a powershell core tab, and build both Linux and windows builds from the same repo. No more remoting into a Linux box or having to setup a VM (wsl will turn into one soon). You can even debug your Linux build in visual studio using wsl. Same with haskell builds, I literally have the same stack yaml and I can run tests for both OSes from the same code.
- simonblack 7y agoI'm a developer, too. But I find it's easier for me to just use native Linux without all the MSFT cruft getting in the way. Just like I reckon WINE is useless, too. And for pretty much the same reasons. If you want to use Windows, use Windows. If you want to use Linux, use Linux. If you want to use both at the same time, then you might get away with using a pure Linux guest on a Windows host, or a pure Windows guest on a Linux host, using VMWare or VirtualBox. But these hybrids (WINE and WSL) are the worst of both worlds.
- liamcardenas 7y agoWell, if you are resorting to VMWare/VirtualBox -- you might as well use WSL, since it's just a VM optimized for OS integration. Wine, OTOH, is a runtime, not a VM... and I've personally never been able to get it to work (I'm sure this speaks to my lack of knowledge more than the merits of the project). I've had issues with WSL, but it's not really comparable.
- detaro 7y agoI disagree. Both WSL and Wine are immensely useful to use some tools from the other world in your workflow without having to shuffle data between the two or adding overhead for simple tasks. I encounter tools that only exist for one (or are a real hassle to build for the other) often enough for this to be useful. I wouldn't do development that's primarily for the other platform with them though.
- anoncake 7y agoNo one uses Wine because they want to use Windows, they use it because they don't
- rbanffy 7y ago> If you want to use Windows, use Windows. Or get a Windows VM. > If you want to use Linux, use Linux. Then get a Linux VM. Simple. Easily solved.
- BasicObject 7y agoIt hasn't won me over yet. I use it for some pretty basic things too.
- russdpale 7y agoNot surprising, linux is a terrible user experience.