21 ms·
Part of Windows 11 is a revamped Windows Subsystem for Linux
- criddell 5y agoWhen Microsoft sold Xenix, I recall there being a clause saying they could never compete in the Unix space again. I've searched for that but haven't been able to find anything definitive. Does anybody else remember that?
- staysafeanon 5y agoLuckily for them, Linux Is Not UniX.
- thrwyoilarticle 5y agoLet's not Invent Nonsense Unfounded aCronymS
- chayleaf 5y agowell, GNU's Not Unix, and thus GNU/Linux is not Unix either
- thrwyoilarticle 5y agoBut this isn't WSGNU, it's WSL
- staysafeanon 5y agoAnd WSL is not UNIX.
- oaiey 5y agoAlso my thought :). 1000 additional syscalls, systemd and Wayland make it as close as MacOS is.
- criddell 5y agoMacOS is Unix: https://www.opengroup.org/openbrand/register/apple.htm https://www.opengroup.org/openbrand/register/apple.htm
- deleted 5y ago[deleted]
- deleted 5y ago[deleted]
- staysafeanon 5y agoMacOS is literally UNIX.
- zokier 5y agoNT has had POSIXy subsystems pretty much from day 1: https://en.wikipedia.org/wiki/Microsoft_POSIX_subsystem https://en.wikipedia.org/wiki/Microsoft_POSIX_subsystem
- nextos 5y agoIt did! The first assignment in my OS class was to write a shell for Linux. The second one was to port it to NT. The requirement was to make it work with minimal changes thanks to the POSIX subsystem.
- Bostonian 5y agoYou can update to Windows Subsystem for Linux GUI while still using Windows 10, as described at https://github.com/microsoft/wslg https://github.com/microsoft/wslg . Emacs and gnuplot work fine, and that's all I need.
- rbanffy 5y agoYou can also get this great feature in standalone version, for free, and without any Linux compatibility or Windows integration issues. Definitively recommend checking at ubuntu.com for it ;-)
- oauea 5y agoHow do I use that to run windows games?
- sheepdestroyer 5y agoWith Steam and/or Proton https://github.com/ValveSoftware/Proton https://github.com/ValveSoftware/Proton
- p1necone 5y agoFor those who haven't tried gaming on Linux for a couple of years - things have gotten a lot better. Most games basically run flawlessly, with the notable exceptions mostly being multiplayer games with incompatible anti cheat solutions (and even that's recently gotten a lot better - EAC officially supports Linux now).
- weirdsquid 5y agoYou run just native Linux games, and the times they aren't available, you run them using the Proton compatibility layer (built right into Steam). There is also Lutris for Windows games not available on Steam.
- DeathArrow 5y ago
- rbanffy 5y ago2022 is The Year of Linux on Windows Desktop ;-) Also, you shouldn't change the original title, which is probably correct.
- Hamuko 5y agoDoes it finally automatically mount my network shares?
- judge2020 5y agoThe whole setup with WSLg is pretty nice. Virt-manager works, but more importantly with nested AMD virtualization (which I believe is indeed limited to Windows 11; Windows 10 has nested Intel support, though) it was super easy to use macOS-Simple-KVM[0] to run a Mac VM, even if the FS performance isn't great and I don't have an extra AMD card lying around to passthrough for hardware acceleration. 0: https://github.com/foxlet/macOS-Simple-KVM https://github.com/foxlet/macOS-Simple-KVM
- smusamashah 5y agoWSLg requires Windows 11. I installed it only to try WSLg. The UI didn't scale with Windows scaling/DPI settings which was very annoying. Setting the display resolution reduced sharpness of all font. Not being a Linux user primarily and hating Windows 11 annoyances, regretted the upgrade and reverted back to Win 10.
- MonaroVXR 5y agoRunning MacOS on VMWare Workstation is faster.
- DeathArrow 5y agoAlso on Hyper-V.
- Havoc 5y agoNested virt? Wow so something like proxmox might work then
- beardedman 5y ago- 2021: revamped Windows Subsystem for Linux - 2024: dual support for native Linux & Windows 13 apps - 2027: Linux & Windows 15 interop support - 2030: run legacy Windows apps on Windows L (Linux)
- jgilias 5y agoOne can wish. The more likely end game seems to be one where no one actually bothers using a real Linux installation, as you can do everything you'd need Linux for on your Windows machine. But your Windows machine has become a 'trusted computing' device that only boots and runs most software if it 'hasn't been tampered with'. Say, by actually installing Linux on it. Edit: Further reading here: https://secret.club/2021/06/28/windows11-tpms.html https://secret.club/2021/06/28/windows11-tpms.html
- Buttons840 5y agoThat may be their strategy, but "Full Linux compatibility plus Windows Updates!" doesn't appeal to me, so I'll stick with pure Linux.
- beardedman 5y agoHope not! But actually kind of agree with you here.
- brundolf 5y agoRight, they've ceded the server space to Linux but want to cement Windows' position on desktops in a Linux-server world (maybe regaining some ground from Macs in the process, since this is one of the reasons they're so popular with devs)
- pjmlp 5y agoBecause those devs have proven they only care about POSIX, if it Linux or something else they don't care at all, otherwise they would be giving money to Linux OEMS.
- 5y ago
- peteri 5y agoTo get chrome / vscode / edge to resize correctly I needed to add some options to turn off the gpu acceleration (I think judging by edge://gpu). --enable-features=UseOzonePlatform --ozone-platform=wayland There are issues raised on github (issue #272/273) so I'm guessing it's mostly driver related. Other than that it seems fairly seemless, the apps appear in an ubuntu folder on the windows start menu.
- hwestiii 5y agoDoes anyone use it seriously? I guess I need better informational resources. I’m still wondering where the man pages are.
- fleaaaa 5y agoBeen using since yhe beginning of wsl without major problems, while working on music production without dualbooting. I probably haven't boot up linux for about a year.. this strategy apparently works for many.
- veesahni 5y agoA number of years ago WSL completely replaced virtualbox and cygwin for me. WSL2 + VSCode w/ WSL plugin provide a fluid and fast experience if the code sits inside linux.
- dboreham 5y agoGoogle "install WSL2". Man pages come with Linux so they're where they always were.
- iakov 5y agoI use WSL daily on my desktop and laptop for work - full stack development and sysadmin/devops. Familiar CLI tools available right from my Windows desktop are a great thing. I’m really, really happy with WSL since I can use one powerful PC for work, music recording and occasional gaming.
- fartcannon 5y agoYeah, just like Linux but with added spyware!
- iakov 5y agoJust like Linux but with a broader software catalogue, more stable drivers and updates. You can also disable telemetry quite easily, if thats what you mean by “spyware”. YMMV, of course.
- rvz 5y agoSo this article is telling me that the best Linux distribution for the desktop is Windows? Makes sense.
- dboreham 5y agoFor desktop/laptop use, yes.
- oscribinn 5y agoIf you don't mind being coupled to an arcane filesystem, networking shitting the bed when you connect to VPN, settings you can't change, software you don't want but shouldn't remove, functionality that is simple to configure in KDE split across god knows how many UI/UX schemes and usually requiring third party applications, worse performance than native, and best of all having your open computing environment running virtualized on top of a closed system requiring you to migrate product keys/activation/whatever for a simple reinstall - yeah, WSL is the best Linux distro for you, bud.
- oscribinn 5y ago"oh no, he said mean things about windows, better downvote" - average shill news user in 2021
- samsaga2 5y agoWhat's the performance? WSL2 was really slow for hard disk access.
- judge2020 5y agoWSL2 on Windows 11 uses the same file translation layer between the host FS and the VM FS as it did on 10, so pretty slow. The big improvement with WSLg is that now you can run desktop linux apps (such as your IDE) within the WSL file world, which should give you near-native FS performance as long as you're not accessing /mnt (and if you want to browse those files on Windows, you can always open \\wsl$ in file explorer).
- dboreham 5y agoIt's not slow for native Linux filesystem, only if you access the host NTFS. Avoid doing that. Git clone inside WSL2.
- veesahni 5y agoBoth WSL1 and WSL2 are slow for cross-platform disk access... but WSL2 is fast for within-the-vm disk access (unlike WSL1). Means if code resides in the linux vm and you can somehow edit it directly (eg: VSCode + WSL2 plugin), it's fast.
- kyriakos 5y agoHere are some benchmarks https://www.phoronix.com/scan.php?page=article&item=windows11-wsl2-good&num=1 https://www.phoronix.com/scan.php?page=article&item=windows1... They don't account for disk performance when accessing Windows storage though. If you stick to wsl2 storage paths performance is great.
- jayflux 5y agoIt’s only slow if you’re git cloning/doing stuff inside of /mnt. You need to use the WSL file system
- encryptluks2 5y agoThey will keep trying and failing. The only reason people still use Windows is the exclusive software and games. Once someone gets proper virtual GPU working for most GPUs then I assure you the preferred choice will be the other way around.
- libertine 5y ago>The only reason people still use Windows is the exclusive software and games. But that's quite a lot of stuff to be considered "the only reason".
- jazzyjackson 5y ago> The only reason people still use Windows is the exclusive software and games. “the only reason people use windows is because of the things they use computers for”
- fleaaaa 5y ago'Exclusive apps' means entire ecosystem outside of dev tool, this is the reason why people says dev should communicate more outside of their ring.
- 29athrowaway 5y agoWhat WSL really means is Linux Subsystem for Windows
- midasuni 5y agoIt is a subsystem of windows used for doing linux things. I don’t get the appeal personally, but some people like Microsoft I guess.
- 29athrowaway 5y agoIt is a creative and confusing use of grammar.
- filereaper 5y agoI had to get a coworker set up under WSL because of a goofup with IT and instead of shipping a Mac this coworker ended up with a Windows machine and all of our tooling was Unix based. I had had them setup with WSL as a way of moving forward, here's a few things I noticed: - different home directories, the different distros are accessed as network shares. It can get confusing where "Home" is unless you explicitly stumble a few times and verify always where files are. - Issues with CR/LF. You need to be careful using native windows tooling and having saved files in Windows line endings vs Unix. For non-savvy users the content looks correct but on Unix the tooling will fail in weird ways. - Visual Studio Code integration was actually excellent, my coworker ended up using VS Code to do Filesystem operations more so than using Windows Explorer. - The new Windows Terminal is fantastic, hopefully its bundled with Win 11. I'm really grateful for the technical capabilities that WSL brings out. I hope the dev teams are focused on fixing the subtle UX issues that trip up users.
- zz865 5y ago> Issues with CR/LF. Is this still really a thing? even notepad can handle LF. I guess the default could still be crlf for some apps.
- Mogzol 5y agoI think one of the main problems is that when you install git for windows, the default setting is to convert LF to CRLF when checking out code. This can cause a bunch of issues if you later try to work with those files within WSL (especially when doing any git-related stuff). I don't really understand why that's the default, or even why it's presented as an option during installation, it's been ages since I actually had issues reading/editing Unix-style files in Windows.
- mey 5y agoIt is insane to me that git doesn't checkout/in as-is by default on Windows.
- 5y ago
- bradford 5y agoI was a bit disappointed when I tried using a package in WSL and found that CUDA wasn't supported. It wasn't entirely clear from from the article, but I hope these updates fix that.
- NelsonMinar 5y agoCUDA is supported, with some limitations. https://docs.nvidia.com/cuda/wsl-user-guide/index.html https://docs.nvidia.com/cuda/wsl-user-guide/index.html
- bradford 5y agothanks! last time I checked it required installation of beta drivers which wasn't something I was very excited about doing.
- NelsonMinar 5y agoIt may be tricky in Windows 10 right now, see discussion here: https://www.reddit.com/r/bashonubuntuonwindows/comments/q6lp7v/getting_cuda_to_work_in_wsl_on_windows_10/ https://www.reddit.com/r/bashonubuntuonwindows/comments/q6lp...
- Kon5ole 5y agoI just found out you can actually run slackware under wsl: https://github.com/Mohsens22/WSLackware https://github.com/Mohsens22/WSLackware
- NGRhodes 5y agoRemoval of this feature from Windows 10 has secured the future of Linux Desktops in the University where I work, as we are years away from Windows 11.
- jpalomaki 5y agowslg will be available on Windows 10 as well. It’s already in the insider builds .
- MikusR 5y agoThose insider builds became Windows 11. Windows 10 is in maintenance mode.
- jpalomaki 5y agoYou are correct (and I was wrong). Looks like there’s still Windows 10 21H2 update coming with some new things, but wslg is not one of them. There’s a feature request for including it foe Windows 10: https://github.com/microsoft/wslg/issues/414 https://github.com/microsoft/wslg/issues/414
- Brian_K_White 5y agoCan't access usb hardware. I do a lot of things that use usb rs232 adapters or things that look like them, and I support both linux and mac effortlessly (and even freebsd and any other unix) and none of it is possible under wsl2. If all you want to do is write web services, there are native windows versions of all the scripting languages and web frameworks. If you have some reason to actually use linux, then just use it. It's free and well-documented. Nothing's stopping you. If MS actually cared about supporting developers, then they would provide a 1st class form of Wine, so that windows apps could be run from within linux. Since they don't do that, this exposes that they don't actually care what would be convenient for you, and so, you should decline to work with people who don't work with you. That's how you can see through bullshit. You should reject their products and sales pitches until their behaviour actually changes, and disregard all the lip service, "gifts" with strings, and excuses for dark patterns. Use their stuff when you must, but under duress and seeking other options at every turn.
- watermelon0 5y agoRegarding the USB hardware access, you can use USB-over-network solutions, to share devices with WSL2 VM. I've had good experience with https://www.virtualhere.com/usb_client_software https://www.virtualhere.com/usb_client_software.
- Brian_K_White 5y agoAttaching a small computer running some other code besides wsl2, is not an answer to the charge that wsl2 can't access usb. It still isn't accessing usb. The code on the usb server device is. That's not semantics. What I mea is: For any low level code of my own that I wrote to run on *ix, I can just as easily run that same code on an arduino or pi, and wsl2 and the usb server hardware would just be pointless extras. For any code that I didn't write and can't port (say, closed source xilinx fpga programmer) there are native windows versions which work better and are better supported than the linux version anway. So here too wsl and usb server harware would both be pointless extras and backwards. People are bamboozled and forgetting to step back and remember what the point of doing something even was in the first place. I say it's a mistake to even get sucked in to the question of how to work around any deficiency in wsl, instead of asking why you even care or want to run a linux app on windows in the first place.
- Shadonototra 5y agofile access is still painfully slow same for IO intensive operations, including compiling code just use linux or macOS
- phendrenad2 5y agoNot true, I compile large C++ projects on WSL2 and Linux, and I don't notice a significant difference between them.
- Shadonototra 5y ago> Not true > I don't notice a significant difference between them because you didn't, so i shouldn't? nice!
- phendrenad2 5y agoYou do? That wasn't stated in the above post. If you've also tested this, and have different results, then I guess the truth is somewhere in the middle.
- gavinray 5y agoI feel like this is somewhat -- err, not a lie, but not quite the truth. There's a word for it but it's eluding me atm -- "misadvertised"? The headline of the article is: "WSL is finally easy to install—and offers automatic sound/graphics support." All of this stuff was available before Windows 11, to anyone/everyone. I know, because the way I installed WSL2 on Windows 10 was the way mentioned in the article ("wsl --install"), and ditto for using the new/experimental Linux GUI stuff. This was readily available for anyone who bothered to install an Insiders ISO, and there are tutorials and articles about this for Win10 specifically: https://www.omgubuntu.co.uk/how-to-install-wsl2-on-windows-10 https://devblogs.microsoft.com/commandline/the-initial-preview-of-gui-app-support-is-now-available-for-the-windows-subsystem-for-linux-2/
- prirai 5y agoSame with me.
- fortran77 5y agoFor quite some time, I just connected to the Windows X client I had running on the Windows side of the box, and it worked fine. Now with Windows 11, this is better. Got the new Surface Studio Laptop two days ago and am very happy with it.
- krainboltgreene 5y agoThe Sound/Audio stuff literally just came out and likely was an effort by the team working on 11.
- naikrovek 5y ago> literally just came out well it's been in Windows insider builds for some time.
- ThinkBeat 5y ago> anyone who bothered to install an Insiders ISO That is a big no from me. I am not interested in being Microsofts unpaid alpha / beta tester, when I get in return in a less stable operating system and some unfinished bits. I hate how Microsoft keeps running huge blog campaigns about this or that new features and once you dig into it "Just install the Insider ISO". No. Tell me when you are done developing and it is ready for production.
- redacted 5y agoOriginal title - "The best part of Windows 11 is a revamped Windows Subsystem for Linux" Why remove "The best"? Feels like unnecessary editorializing
- superdisk 5y agoI've noticed this too around here. Titles will be changed and their meaning altered, effectively putting words in the original author's mouth. Seems kinda unethical to me, but it happens all the time.
- atatatat 5y agoCheck the guidelines, it encourages neutering headlines in multiple ways; believe the idea is people can form their own judgement on whether it's good or bad.
- skohan 5y agoI believe it is intended to limit click-bait. I'm happy HN does this kind of stuff, because it increases the quality of discussion.
- sp332 5y agoHN automatically edits out some patterns from titles. If it happens to you and you want to put it back, you can just edit the title again after submission and it will stick.
- p1necone 5y agoBecause it's an opinion and doesn't give any useful information to anyone reading the thread/article.
- joe_the_user 5y agoI found the headline here actually incomprehensible. Had Microsoft built Windows 11 on top of WSL? Built part of it that way? What you'd means is "Windows 11 includes a revamped Windows Subsystem for Linux" if you wanted to removed the editorializing. But the article is editorializing - they don't like the rest of windows 11 and say so.
- GekkePrutser 5y agoI tried installing wsl twice during the beta and both cases it failed to boot afterwards work a boot error about some threading stuff. Needing a full reinstall in both cases Now that it's live I'm very reluctant to do this again and have to set everything up again if it fails. Though I suppose I can just pull an image off it...
- tyingq 5y agoThat sounds like the hyper-v issue related to shared memory between the CPU and integrated graphics. Supposedly changing the value of the "UMA buffer size" in the BIOS works around the issue. https://answers.microsoft.com/en-us/windows/forum/all/cant-enablevirtual-machine-platform/9fa54fa1-de34-48be-8973-b82aed178507 https://answers.microsoft.com/en-us/windows/forum/all/cant-e...
- GekkePrutser 5y agoThanks!! I'll give that a try! I'd been googling the issue but not heavily as I thought it was simply a beta bug.
- sydthrowaway 5y agoEmbrace, extinguish, destroy. Don’t fall for this because you want to play video games.
- phendrenad2 5y agoSo tell us, what is waiting for us if we "fall for this"? Total destruction? Surely it's only mild semi-destruction.
- arpa 5y agoHaha, it's not about games. It's about remote device management, employee tracking and less "bytes _you_ own", more "bytes corp owns". I actually quit my previous company over this. Now they all work on windblows, their open windows tracked, their hours accounted. And I laugh in linux.
- stinos 5y agoEmbrace, extinguish, destroy. You realize that's not the original well-known phrase?
- DeathArrow 5y agoWell if you explain to me how can I use Linux desktop without configuring it a lot, how can I run Visual Studio, Photoshop, Lightroom, Adobe Xd and 3ds Max on it natively, I will give it the 101th chance. On the desktop I care about applications more than I care about the operating system. The operating system should just not stay in my way, complicate things for me or consume my time.
- ImaCake 5y agoThis is it for me to. I have tried so many times to jump to linux and it never works out. I mostly use macOS for unix stuff because it works without breaking all the time. Windows for gaming and some light terminal use in WSL.
- JiNCMG 5y agoIf you gonna do dev on WSL then make sure all of it is on Linux. Don't mix and match. They still haven't corrected the SEVERE disk read speed when accessing a Windows directory. For example, if you use zsh/Oh-My-Zsh and have any of the themes setup that pulls git info for the prompt (over 99% of them do this), cd into a git repo on your Windows side: cd /mnt/c/repos/example_git and expect a minimum of a 1 minute wait for simple repos. The WSL IP Address changes on every restart.... ALWAYS. So trying to setup a local web server for testing becomes a hassle.
- judge2020 5y ago> The WSL IP Address changes on every restart.... ALWAYS. So trying to setup a local web server for testing becomes a hassle. This should only be true if you're doing funny network stuff. On my machine, exposing WSL2 with 127.0.0.1:8080 allows me to connect on my Windows browser: https://i.judge.sh/shocked/Punch/WindowsTerminal_whYLqVLsIM.png https://i.judge.sh/shocked/Punch/WindowsTerminal_whYLqVLsIM....
- NegativeLatency 5y agoCould you get mDNS setup?
- kyriakos 5y agoThat's wierd. Any server I run on wsl side can be accessed via localhost from Windows side. Been like this since the beginning of wsl if I'm not mistaken.
- Mogzol 5y agoOne issue that I've run into is that if you only bind to IPv6 in WSL, then you will only be able to access the service using IPv6 on the Windows side (i.e. ::1 works, but 127.0.0.1 doesn't). OSs usually automatically bind to IPv4 whenever you bind to IPv6, but that's not the case with WSL (actually, it does bind to both, but only inside WSL, not on the Windows end). Lots of programs (like node) bind to IPv6 by default, so this can catch people off guard and they wonder why 127.0.0.1 or localhost isn't working. Here's the github issue about it: https://github.com/microsoft/WSL/issues/4851 https://github.com/microsoft/WSL/issues/4851
- darthrupert 5y agoMy best choice was going back to Linux. Everything is simple and fast. It's difficult to say if this improves my efficiency, but I feel a lot better. Do yourself a favor. Go for the real thing, don't accept poor substitutes.
- fithisux 5y agoI wish BSDs got more support.
- sandGorgon 5y agoWSL2 in windows 11 is super awesome. I can apt-get install firefox and run firefox GUI app on Windows. I also have a cheap Intel laptop with integrated Xe graphics. WSL2 allows me to run accelerated training on it - https://devblogs.microsoft.com/windowsai/train-your-machine-learning-models-on-any-gpu-with-tensorflow-directml/ https://devblogs.microsoft.com/windowsai/train-your-machine-... no need to get expensive nvidia machines (of course not as good...but better than pure CPU)
- DeathArrow 5y agoAnyone remembers Cooperative Linux or coLinux? It was WSL 15 ahead of its time.
- pjmlp 5y agoThere used to be a filesystem on top of FAT/NTFS as well, that used a Linux allocated directory for it. Don't recall the name any longer.
- cesarb 5y agoYou might be thinking of UMSDOS. It was pretty neat; it allowed for instance C:\LINUX on DOS to become the root filesystem when booted into Linux (which also booted from DOS through LOADLIN), with the DOS root directory (C:\) becoming something else within Linux (I don't recall the exact path, it probably was something like /dos or /umsdos). That allowed you to install Linux like any other normal DOS program (yes, it was normal under DOS for a program to completely bypass the operating system), without having to re-partition/reformat or even change the bootloader. It's the main reason that I ended up using Linux and not one of the BSDs; I could try out Linux without any permanent changes to the current MS-DOS install (and some time later, I noticed that I was nearly all the time running Linux instead of DOS, so I re-partitioned to give Linux a whole ext2 partition).
- pjmlp 5y agoYep that was it.
- DeathArrow 5y agoI think WSL3, or should we call it USL from UNIX subsystem for Windows, should be a POSIX layer on top of the NT kernel. That way we should have better performance and better integration.
- reinforcedpaper 5y agoWSL1 was an implementation of Linux syscalls on top of NT. They redesigned it as a VM (WSL2) because of compatibility and performance issues.
- hnarn 5y agoI have to wonder: if, as a user, one of your primary concerns is the WSL performance on Windows, what’s stopping you from just running Linux? Or at the very least simply dual boot for the cases where you truly do need something Windows exclusive, which these days seems to be less and less?
- greenail 5y agoare serial ports mapped like they were in WSL1?