- cross-posted to:
- linux@programming.dev
- linux@lemmy.ml
- cross-posted to:
- linux@programming.dev
- linux@lemmy.ml
Today we’re very excited to announce the open-source release of the Windows Subsystem for Linux. This is the result of a multiyear effort to prepare for this, and a great closure to the first ever issue raised on the Microsoft/WSL repo:
This is for WSL2, not for WSL1. WSL2 is just a VM, not a big deal it it’s open-sourced. WSL1 is superior to WSL2 in every way. BTW, WSL2 is not a continuation of WSL1, they are being developed in parallel. I still try to use WSL1 whenever possible. For Linux specific features, like systemd dependancy and mounting file systems, I’d use full-featured VM instead of WSL2.
I thought WSL2 had a few specific advantages over WSL1, something about disk writes and/or Docker? But yeah, WSL1 was such a cool concept. My understanding is they implemented all the syscalls and API in it so it’s basically native.
I tried to use them, as I do most tools like that. On Windows I have always stuck with the MSYS environment that Git for Windows gives you. It’s easy enough to work with and has most everything I care about. Plus it’s easy to set up. With wsl it’s more like a separate thing, it wasn’t as easy to run in place. A lot of times I still used batch or powershell scripts so it wasn’t totally bash. Like Docker is easier to use from not bash in Windows because the syntax is so wonky.
But now I don’t use Windows at all.
I’ve recently started using windows again for work, after not touching it for like 15 years, msys2 makes it tolerable.
I’m a devops engineer, and my company won’t allow me to use WSL. Go figure.
Uh… But that’s what it’s for? Like it’s it’s primary purpose…? They created it for devops…? What are they smoking?
Msys2 was not created for devops, I just happen to be a devops engineer who uses it. Their websites describes it as:
MSYS2 is a collection of tools and libraries providing you with an easy-to-use environment for building, installing and running native Windows software.
Because it makes software building, packaging and distributing as simple aand standardised as it is on Linux, it means they effectively have a very good CLI on their hands. On my work laptop, I now use WezTerm with fish shell and helix editor for my workflow, and live in the terminal. Would this be possible to do without msys2 or wsl? Yes, but it would be a huge pain.
It’s like telling a car mechanic to not use duct tape imo
MSYS2 is odd, I could never figure out how to set it up a sort from the one with Git. When I was more of a power user I used Cygwin. Babun is cool but unmaintained last I remember, and is just Cygwin with some enhancements.
As much shit as MS gets (and rightfully so) around 2019 they began turning their reputation around for dev stuff. They’ve lost all that good will though.
I could never figure out how to set it up a sort from the one with Git.
That’s because the one provided with git is a nerfed version of msys2. If you install msys2 as a standalone thing from their website, you get everything you need for a functional CLI on windows. Most importantly, you get a real package manager and decently populated repositories.
I know there’s a lot of hate for Microsoft on Lemmy, but WSL is one of the best parts of Windows. It’s really powerful and well integrated to Windows. Since I still can’t leave for pure Linux install, I’m glad for WSL.
Microsoft hate is justified.
Funny that the Linux is best part of Windows lmao
Doubly ironic since Win32 is the only stable ABI on Linux.
WSL made windows tolerable in the time I had to use a windows machine for work.
macOS is still the better choice for corp approved work, integrates decently with IT systems and is a “real” unix system underneath.
Linux on a corporate desktop is mostly about how well you know the IT guys and do they trust you. And of course the software stack.
Linux on a corporate desktop is mostly about how well you know the IT guys and do they trust you. And of course the software stack.
I would say it depends more on the commitment of the IT admins to support and manage a fleet of Linux workstations. There are Linux “Active Directory” servers, configuration provisioning tools, ways to centrally and automatically rollout updates, etc. It really depends on if the IT guys invest the same amount of effort to support them or not.
2000 people, 3k+ devices and one dude wants a Linux laptop.
Not happening 😀
But it did work in a smaller company of around 30 people, mostly because the IT guy was a Linux user too
IT just said no for WSL “ask your manager”
My manager barely knows how to read his email
and doesn’t understand why I want 3rd screen
Just buy a single 45" curved one then.
He doesn’t like that my cubicle computer would not be all the others
WSL is EEE
The only Windows PC I use is my work computer.
GPO blocked WSL.
I can’t even escape to a command line with the right flavour of slashes between directories. For eight hours a day, all hope is lost.
Only solution is to write your own
Garbage on top of garbage. The true nature of macroshafts desperate grasp to get control of linux.
Its a godsend when you have to use Windows for whatever reason and you can have a functional OS to do things with.
sudo apt-get assorted -lettuce -cheese -onion
So besides the brownie points, im curious what having it open sourced will benefit. Not like you can fork it to run on a different OS. You can make some extensions but to do what? You can’t really tie it further in to the host OS unless you know of some undocumented Win32 APIs.
Maybe im just not thinking creatively enough.
im curious what having it open sourced will benefit
MS won’t have to pay their own people to work on it anymore.
They released their code as MIT which is far more permissive than I was expecting. I was expecting some sort of proprietary license.
But they need to keep doing stuff like this. Devcontainers for VS Code is still proprietary and keeps me from running codium.
Not like you can fork it to run on a different OS.
For WSL1? yep that’s effectively impossible.
WSL2 is effectively just a wrapper around the kernel virtualization support and a bundling format, as long as whatever image you run talks to the host properly (like any other virtualised OS would) it’d run.
does that mean we could build a wsl that provides the flatpak environment, so that we could get a one click install flatpak for windows?
Should be possible, as it’s a normal VM you can already install flatpak apps in said VM as normal, you’d just need a Windows side bit to invoke the install within WSL when you opened the flatpak bundle, and then something to add a start menu shortcut from the app inside the VM (Which I actually assume already exists, I never actually ran WSL2 when I was on Windows)
WSL2 now supports WSLg which allows you to run X11 (or other graphics packages) natively now.
Watch someone reverse the thing into turbocharged WINE
The entire thing is for running Linux software on Windows, it’s the complete opposite of Wine.
The infrastructure can be duplicated and studied tho. Would be cool if a little dreamy
Sure, but not useful for wine or Linux
but… you need to run it on microsoft, which isn’t open source…
Only right now. I’m sure someone will have it running on Wine or Proton by next week. Steamdeck subsystem for proton for Windows subsystem for linux
brb running vim on windows subsystem for linux on proton on wine on linux.
Just to confuse any computer virus.
Thanks for nothing Microsoft
1/10 no tutorial on how to jump over an office chair.
Ah, the Linux Subsystem for Windows (MSFT has never been great at naming things) is finally open source, hooray…
Now do it with rest of the operating system, and I may, possibly have a reason to care.
But it is not a “Linux Subsystem”, it is a “Windows Subsystem”.
If I write a hypothetical Driver for Linux to support windows, it would be a “Linux Module” not a “Windows Module”.
I guess they could have called it “Windows Subsystem for Linux support”
And is that subsystem for windows or for Linux?
Like…how do you find the zoom release for Linux? I thinks it’s very stable and now and very comparable to the version available for widows.
Windows, you mean? Please no, thanks, I don’t need to see anything of that garbage
I still think it’s funny that the best way to run Linux on the desktop is via installing it through the Windows App Store
deleted by creator
Best?
not in the slightest.
Most convenient…maybe?
Let’s give them credit. Maybe their first experience was installing Gentoo, which is when Windows is better.
some who can read code tell me why it sucks ass
fuck microsoft and windows so hard. had to reinstall that shitshow on my mothers computer because a driver update fucked the whole networkstack… they throw error codes and what not but give no help whatsoever. the conclusion of everyone for every problem is to reinstall windows… shitshow of an os, keep your dirty hands of linux!! can’t wait to nuke it and install linux there and have no windows machine left
I reinstalled Windows and had to shit my pants because I was so disgusted in myself. Fuck windows
If you’re having to reinstall windows regularly you’re not very good at being the tech guy. I say this as someone who manages a support team for 50+ Windows machines, and who has been the tech guy for all my friends and family for decades. I can count the number of times I had to reinstall windows on one hand, with a few fingers to spare.
If you’re having to reinstall windows regularly
says who? what’s the fix for code 56? what can i do in the registry do solve the botched update? which files to check and/or remove? logfiles that give me a clue? come on tech guy enlighten us
Strange cause like I said, I’ve been doing this for literal decades and can count the number of times I’ve had to reinstall windows on one hand, with a few fingers to spare. 50+ windows machines at any given time at work for 15+ years. Every family members computers for 25+ years.
One hand.
With fingers to spare.
Reading comprehension my friend… but what do i know, you are so great and superb
Is this something to do with the three Es?
The 90s called, they want their joke back.
How was it not open source before? Isn’t linux gpl?
You are confusing the software and Linux kernel that make up WSL2 because the former was proprietary until now and the latter has always been available on GitHub.
Kernel used in WSL2
can some one ELI5… is this a way for me to run windows stuff using linux? OR is this for linux stuff to run in windows?
I really want an easier way to run windows stuff in linux, my hatred grows with every notification, update, attempt to advertise to me, and interference in my workspace. but trialing mint is great but the ultimate test is failing with a few programs not really playing nice with linux.
This is for running Linux programs on Windows. ELI5: some programs are made to run on windows, and some programs are made to run on Linux. Microsoft made a thing for windows that makes it able to run programs that were supposed to run on Linux. That thing is called Windows Subsystem for Linux.
What windows programs do you have that are not working well on Linux? There are various tools to run windows programs on Linux, and some work better than others for specific programs. I have had good luck with bottles recently, you might try that if you have not already. Other options I’ve used with great success in the past: ploy on Linux, Lutris, and wine directly. They all us wine at some level, but have tried and tested configuration for various programs to run well, and help with the installation and management of different wine versions. Depending on your windows programs, one option might be to run windows in a VM on Linux, to run those few programs. Another benefit of this way is that your Linux system is somewhat isolated from your windows programs. This can help with privacy and security.
What programs you struggling with on Linux?
I’d say any of the multitude of programs that don’t work on linux.
Yeah cool but what? Have they been reported to wine or whoever would be able to fix it?
I’ve moved my whole operating environment to Linux and have had to use Windows for one single application in the last four to five years. It was a firmware update tool for non-computer related equipment.
It’s to run Linux stuff on Windows.
It should be called ENIW.