Is the Windows Subsystem for Linux worth it?

3 years ago by Resol van Lemmy to c/linux

I've had a pretty poor experience with it myself, so I wanna see what the Linux community thinks about this.

eric 27 points 3 years ago

I am a software developer and am forced to have Windows on my work computer. WSL allows me to have a Linux terminal that I can use directly on my files without needed a VM.

path: 0 5700050, hotness: undefined, score: 27, children: 7
wmassingham 9 points 3 years ago

Same. Well, not forced, but using Linux would just make everything more difficult. I like being able to drop to a shell and use a Linux environment with its useful utilities to manipulate stuff on my Windows PC.

Yeah, I could use mingw, but that is a pain, and I can't just apt install stuff.

path: 0 5700050 5700547, hotness: undefined, score: 9, children: 1
NateNate60 4 points 3 years ago

Not the same as apt, but there's Chocolately, which is actually a legitimate package manager for Windows.

choco install firefox

There's also a package called gsudo which allows you to preface a PowerShell command with sudo to run it as an administrator. It will cause a UAC prompt.

sudo choco update all
path: 0 5700050 5700547 5718267, hotness: undefined, score: 4, children: 0
Resol 2 points 3 years ago

I guess that's a bonus.

But being forced to use a terminal to do anything is kinda hard to deal with if you're not a developer. I'm probably guessing this didn't bother you that much.

path: 0 5700050 5700167, hotness: undefined, score: 2, children: 4
eric 6 points 3 years ago

I prefer the terminal and have tools I like to use that are CLI only.

Edit: and Linux only.

path: 0 5700050 5700167 5700266, hotness: undefined, score: 6, children: 1
Resol 0 points 3 years ago

Good to know.

path: 0 5700050 5700167 5700266 5701284, hotness: undefined, score: 0, children: 0
Euphoma 4 points 3 years ago

What are you trying to do on WSL? I think the whole point of WSL originally was to have a linux terminal on Windows, before they added graphics in WSL 2.

path: 0 5700050 5700167 5719189, hotness: undefined, score: 4, children: 1
Resol 1 point 3 years ago

I was trying to run applications on it, similar to their Windows Subsystem for Android that they released as an update to Windows 11. I have to say, the latter is significantly easier to deal with imo.

path: 0 5700050 5700167 5719189 5724915, hotness: undefined, score: 1, children: 0
snap 16 points 3 years ago

For me: totally. I need to use windows for work. With WSL, I can use all the tools I need via the Debian box underneath. All I use windows for are the communication apps my colleagues use.

Apart from work: nope. Full time Linux kinda guy

path: 0 5717194, hotness: undefined, score: 16, children: 11
flashgnash 3 points 3 years ago

Glad to know teams isn't just the bane of my existence on linux

path: 0 5717194 5720949, hotness: undefined, score: 3, children: 10
PlexSheep 3 points 3 years ago

Teams and outlook have both pretty good third party flatpaks.

path: 0 5717194 5720949 5733131, hotness: undefined, score: 3, children: 9
flashgnash 2 points 3 years ago

From what I gather teams-for-linux still uses the web version doesn't it? Would that not be subject to all the same problems?

path: 0 5717194 5720949 5733131 5733428, hotness: undefined, score: 2, children: 8
PlexSheep 1 point 3 years ago

From what I hear the only thing that doesn't work is reaction emojis in meetings.

path: 0 5717194 5720949 5733131 5733428 5771367, hotness: undefined, score: 1, children: 7
zhenbo_endle 15 points 3 years ago

I had been using WSL2 for about one year. The experience was terrible compared to a Linux host. (Sadly I can't change the system on my work laptop). However, it was much better than Cygwin, msys2 and powershell - based on my experience.

If your host OS is windows and you're interested in Linux, I think WSL2 is a good way to have a try

path: 0 5703718, hotness: undefined, score: 15, children: 0
sfcl33t 11 points 3 years ago

WSL is great for me. Not as fast as being in native Linux but if you're stuck in windows it's a impressively seamless tool to just have available. I use it for convenience so I don't have to have a second machine next to me all day

path: 0 5706824, hotness: undefined, score: 11, children: 0
PlexSheep 11 points 3 years ago

Best thing available on windows, still suffers from running on windows, but inside is a pretty usable Linux distro

path: 0 5730948, hotness: undefined, score: 11, children: 0
TootSweet 10 points 3 years ago

In my experience, if you need to do Linux kind of things on a Windows computer, it's far less glitchy, buggy and laden with weird caveats and edge cases than the alternatives (like Cygwin and Git Bash).

To be fair, I've never used it. But I've been the guy people come to when shit doesn't work. Switching from Cygwin or Git Bash to WSL frequently fixes issues.

path: 0 5701495, hotness: undefined, score: 10, children: 0
imgel 8 points 3 years ago

Just use Linux. Its manageable to do it through windows but youre only using like 10% of Linux Power.

path: 0 5732960, hotness: undefined, score: 8, children: 0
nayminlwin 7 points 3 years ago

Been daily driving WSL Debian for about a year on my work laptop, without systemd and display server. At first, I was really only using it for application servers that just won't run or too tedious to run on windows. But windows is just terrible for dev work that's not part of windows eco system. So I found myself slowly moving most of my dev stuff to WSL. There are still some problems though.

Off the top of my head, first is neovim and the system clipboard. I can use clip.exe but there's a problem with unicode characters. It's expecting some UTF-16 encoding or something but my bash is in UTF-8. And somehow that messes up copying some unicode characters. I have to either use iconv to convert the encoding before copying or may be change my bash encoding.

Another recent problem I had is binding WSL ports to the window host's network. WSL automatically binds the service ports to host window's localhost with the same port number, which is pretty useful. But it only binds to localhost address. If you want it to bind to other addresses, you can't configure it. You can to run some kind of a patch program someone wrote, that rebinds WSL ports the wildcard address. And it doesn't work very well if the patch program's version and your WSL's versions are not compatible.

Another minor problem is that there's some kind of a freeze that lasts for about a minute when I'm doing fzf in bash. It happens sporadically. I'm not entirely sure if the problem's with Windows Terminal or WSL. It's likely WSL. It seems to happen with other terminal emulators as well.

All in all, WSL makes having to be on windows a whole lot bearable. I'll probably end up using only rudimentary UI apps on windows and move the rest to WSL.

path: 0 5720363, hotness: undefined, score: 7, children: 0
EuroNutellaMan 7 points 3 years ago

I find it OK if you must use windows but it was fairly annoying to deal with and those annoyances are what got me to actually go for the whole Linux deal and I'm happy I switched.

path: 0 5702426, hotness: undefined, score: 7, children: 2
Resol 2 points 3 years ago

And I'm willing to do that as well.

path: 0 5702426 5724763, hotness: undefined, score: 2, children: 1
EuroNutellaMan 2 points 3 years ago

If you're willing to switch, and there's no obstacle to it, I'd say go for that.

path: 0 5702426 5724763 5729537, hotness: undefined, score: 2, children: 0
purplemurmel 7 points 3 years ago

I’ve had a pretty poor experience with it myself

Could you elaborate?

path: 0 5703789, hotness: undefined, score: 7, children: 1
Resol 1 point 3 years ago

Sometimes when I install applications through the command line interface, the applications I installed don't end up opening. I'm not sure why.

path: 0 5703789 5724810, hotness: undefined, score: 1, children: 0
danielquinn 6 points 3 years ago

It's fine if all you need/want is a Linuxy shell to work with, but if you actually want a proper Linux computer, with a DE that doesn't suck, mapable keyboard shortcuts, no spyware, working workspaces, tools that do what you want rather than what Microsoft wants for you, etc., you're going to be miserable.

path: 0 5701362, hotness: undefined, score: 6, children: 0
SLGC 5 points 3 years ago

Since wsl2 supports cuda, my gaming computer can run open source deep learning models so easily it's stupid. I'm mainly using it to rip music from youtube and split it into stems for music production using Facebook demucs. I tinkered a bit with stable diffusion models a while back too. It's pretty sweet, especially since windows sees the linux drive as just another directory, so my DAW can just bookmark it. It's so seamless.

Win 11 is still garbage for privacy and ownership reasons though. MS can fuck a duck, but they make some pretty baller software.

path: 0 5705885, hotness: undefined, score: 5, children: 2
Resol 1 point 3 years ago

That's an interesting use case.

path: 0 5705885 5724825, hotness: undefined, score: 1, children: 1
SLGC 1 point 3 years ago

I'll emphasize the point that this goes for any kind of machine learning model that can benefit from CUDA, which means a large amount of gaming computers already meet the prerequisites for this. Installation is trivial (but requires some knowledge), and I hope to see more ML applications for hobbyists in the near future. Image generation and locally hosted GPT models come to mind.

path: 0 5705885 5724825 5743878, hotness: undefined, score: 1, children: 0
django 5 points 3 years ago

If your only interest is using Linux, you should probably do just that. No need to install anything else.

path: 0 5703023, hotness: undefined, score: 5, children: 2
Resol 2 points 3 years ago

Well in this case, using Linux means not using Windows, doesn't it?

path: 0 5703023 5724793, hotness: undefined, score: 2, children: 1
django 1 point 3 years ago

Yes, spare yourself from using wsl and try the full linux experience. 😊

path: 0 5703023 5724793 5768739, hotness: undefined, score: 1, children: 0
phx 4 points 3 years ago

I find your mileage is somewhat dependent on the rest of the system config and how you access it. I kinda hate how WSL2 is based on hyper-V because the network stack for that is a pain in my ass, but tools like NMAP just don't work on WSL1.

I have found that using something like MobaXterm is pretty awesome. The built-in X-Server lets me run a few useful graphical tools within WSL (GIMP, Wireshark, etc) without needing to install their windows counterparts.

path: 0 5700638, hotness: undefined, score: 4, children: 0
sebsch 4 points 3 years ago

Sometimes in enterprise environments you're not allowed to have a proper Linux and you're forced even as dev to use that thing from ms.

Since hardly any code in the web runs on NT, the wsl is the only way getting your things done. It does what it does OK(ish) but except of that single usecase I would never use it.

path: 0 5704139, hotness: undefined, score: 4, children: 0
fushuan 3 points 3 years ago

It's the best if you convince your boss that you need it for work in your non admin privilege system because you can sudo inside there so you can install whatever.

path: 0 5718882, hotness: undefined, score: 3, children: 0
aaaa 3 points 3 years ago

WSL has replaced my use of the command prompt in Windows for anything (and I used it more than most, I think).

In my job, I develop Linux applications to support industrial automation, and WSL is capable of building and running most of what I make. It isn't a full Linux machine, and can behave unexpectedly when trying to do things like changing certain network configurations.

So it's great for what it's for, really. But if you want a full VM, this isn't really for that.

path: 0 5703167, hotness: undefined, score: 3, children: 1
Resol 1 point 3 years ago

Point taken.

path: 0 5703167 5724800, hotness: undefined, score: 1, children: 0
perishthethought 3 points 3 years ago

Only you can say what it's worth to you.

I have it installed on my Win 11 work laptop but never use it.

path: 0 5712658, hotness: undefined, score: 3, children: 1
Resol 1 point 3 years ago

Even I stopped using it.

path: 0 5712658 5724859, hotness: undefined, score: 1, children: 0
PseudoSpock 2 points 3 years ago

I prefer to keep windows as a VM only on wintel hardware, with Linux on the bare metal. The less Microsoft can see the better.

path: 0 5729872, hotness: undefined, score: 2, children: 0
just_another_person 2 points 3 years ago

There's honestly not a lot of practical uses for it when you have the option of just running a Linux Distro anyway. It's mostly to keep people who NEED to run Linux for work in Windows as an OS. Otherwise, I've found no purpose for it. Neat I guess? Useful, no.

path: 0 5701079, hotness: undefined, score: 2, children: 1
Resol 0 points 3 years ago

I guess that's one way of looking at it.

path: 0 5701079 5701301, hotness: undefined, score: 0, children: 0
woelkchen 2 points 3 years ago

WSL in Windows Terminal is not much different from opening Konsole on any regular desktop Linux distribution. I use openSUSE Tumbleweed on WSL and I think it's great.

path: 0 5702934, hotness: undefined, score: 2, children: 1
Resol 1 point 3 years ago

That kinda makes sense.

path: 0 5702934 5724774, hotness: undefined, score: 1, children: 0
bnjmn 2 points 3 years ago
path: 0 5759986, hotness: undefined, score: 2, children: 0
Euphoma 1 point 3 years ago

When I used wsl, it felt fine. There were some problems with running more GPU intensive tasks, but being able to use linux-only software while I was restricted to Windows was pretty good.

path: 0 5719169, hotness: undefined, score: 1, children: 0
BaldProphet 1 point 3 years ago

It's really great if you want some level of Windows + Linux. It is not a replacement for a full desktop Linux install, however.

path: 0 5717689, hotness: undefined, score: 1, children: 1
Resol 1 point 3 years ago

Noted

path: 0 5717689 5724869, hotness: undefined, score: 1, children: 0
llothar 1 point 3 years ago

I'll parrot the others. I have a Windows PC issued by my employer. The only way to have some Linux is WSL. I use it to sync notes with server at home, python stuff, and w3m when I want to Google something without looking conspicuous in the office.

General Linux tools also help. I needed to make video half the speed - one liner ffmpeg solves it in a jiffy. On Windows I need to install some hive software.

path: 0 5719184, hotness: undefined, score: 1, children: 1
Resol 1 point 3 years ago

Yeah, you guys have it so easy

path: 0 5719184 5724892, hotness: undefined, score: 1, children: 0
linux
linux

@lemmy.ml

login for more options
68076
9448
5174

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

go to feed...