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:

https://github.com/microsoft/WSL

  • stebator@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    2 months ago

    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.

    • JackbyDev@programming.dev
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 months ago

      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.

      • baduhai@sopuli.xyz
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 months ago

        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.

        • KeenFlame@feddit.nu
          link
          fedilink
          English
          arrow-up
          0
          ·
          2 months ago

          Uh… But that’s what it’s for? Like it’s it’s primary purpose…? They created it for devops…? What are they smoking?

          • baduhai@sopuli.xyz
            link
            fedilink
            English
            arrow-up
            0
            ·
            2 months ago

            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.

        • JackbyDev@programming.dev
          link
          fedilink
          English
          arrow-up
          0
          ·
          2 months ago

          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.

          • baduhai@sopuli.xyz
            link
            fedilink
            English
            arrow-up
            0
            ·
            2 months ago

            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.

  • Gumus@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 months ago

    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.

    • lepinkainen@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 months ago

      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.

      • cmhe@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 months ago

        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.

        • lepinkainen@lemmy.world
          link
          fedilink
          English
          arrow-up
          0
          ·
          2 months ago

          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

      • interdimensionalmeme@lemmy.ml
        link
        fedilink
        English
        arrow-up
        0
        ·
        edit-2
        2 months ago

        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

    • I'm Hiding 🇦🇺@aussie.zone
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 months ago

      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.

  • MehBlah@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 months ago

    Garbage on top of garbage. The true nature of macroshafts desperate grasp to get control of linux.

    • Womble@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 months ago

      Its a godsend when you have to use Windows for whatever reason and you can have a functional OS to do things with.

  • ramble81@lemm.ee
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 months ago

    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.

    • SuiXi3D@fedia.io
      link
      fedilink
      arrow-up
      0
      ·
      2 months ago

      im curious what having it open sourced will benefit

      MS won’t have to pay their own people to work on it anymore.

    • CosmicTurtle0@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 months ago

      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.

    • The_Decryptor@aussie.zone
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 months ago

      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.

      • TerHu@lemm.ee
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 months ago

        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?

        • The_Decryptor@aussie.zone
          link
          fedilink
          English
          arrow-up
          0
          ·
          2 months ago

          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)

          • ramble81@lemm.ee
            link
            fedilink
            English
            arrow-up
            0
            ·
            2 months ago

            WSL2 now supports WSLg which allows you to run X11 (or other graphics packages) natively now.

  • sp3ctr4l@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 months ago

    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.

    • cmhe@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 months ago

      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”

      • diviledabit@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 months ago

        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.

    • Phoenixz@lemmy.ca
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 months ago

      Windows, you mean? Please no, thanks, I don’t need to see anything of that garbage

  • stalfoss@lemm.ee
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 months ago

    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

  • Kazel@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 months ago

    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

    • Melvin_Ferd@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 months ago

      I reinstalled Windows and had to shit my pants because I was so disgusted in myself. Fuck windows

    • FreedomAdvocate@lemmy.net.au
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 months ago

      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.

      • Kazel@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        0
        ·
        edit-2
        2 months ago

        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

        • FreedomAdvocate@lemmy.net.au
          link
          fedilink
          English
          arrow-up
          0
          ·
          2 months ago

          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.

  • Hotstillnasty@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    2 months ago

    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.

    • fum@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 months ago

      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.

        • ryannathans@aussie.zone
          link
          fedilink
          English
          arrow-up
          0
          ·
          2 months ago

          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.