Live data from Hacker News

How to free up and automatically manage disk space for WSL

freecodecamp.org

21–30 of 55 posts

Re: How to free up and automatically manage disk space for WSL

#21
post #3

I'm done with WSL. It just makes life too hard, dual disk is a problem, two network endpoints two firewalls, two different hypervisors you can choose from where some things expect one some the other. I used to think a windows laptop would be better for hardware management, maybe it is but I just gave up and installed Linux. My life is so much easier.

Wish there was a good option in corporate environments where I can’t just install Linux.

Ask for a Mac ? At this point enough manager were sold on it that most places have to support MacOS, and its popular enough with devs to also have to support dev environments on it.

Like even if you prefer Linux, Mac is a huge step up over windows and WSL if those were your only options.

Also latest Mac machines aren't even that overpriced as they were before their in-house CPUs, for the performance you get really there is only one PC chip out there right now that can be compared and that chip is available in like 2 laptops.

Re: How to free up and automatically manage disk space for WSL

#22
post #3

I'm done with WSL. It just makes life too hard, dual disk is a problem, two network endpoints two firewalls, two different hypervisors you can choose from where some things expect one some the other. I used to think a windows laptop would be better for hardware management, maybe it is but I just gave up and installed Linux. My life is so much easier.

i'm the opposite of you, i'm so done with Linux on my laptop. I can't count how many time my machine cooks itself inside my bag when using Linux. Windows also has the same problem, but much less frequently.

Now if i want linux, WSL2, and if i want linux graphic, Vmware or something similar

Re: How to free up and automatically manage disk space for WSL

#23

Earlier quoted context omitted.

WSL is really convenient for a lot of use cases though. Much better than dual booting on a machine used primarily for gaming.

I’m also doing WSL-centric development and I’m not even really gaming on that machine, I just appreciate the comforts that come with competent multi monitor support and reliable wake from sleep. My biggest frustration with WSL at present is that 1Password won’t properly support proxying their ssh agent into it. (Though in googling it again just now, I see a suggestion to try something called npiperelay, so I’ll spend…

You can actually run the windows ssh.exe binary directly from WSL, no extra setup needed. Give it a try.

Re: How to free up and automatically manage disk space for WSL

#24

Earlier quoted context omitted.

WSL is really convenient for a lot of use cases though. Much better than dual booting on a machine used primarily for gaming.

I’m also doing WSL-centric development and I’m not even really gaming on that machine, I just appreciate the comforts that come with competent multi monitor support and reliable wake from sleep. My biggest frustration with WSL at present is that 1Password won’t properly support proxying their ssh agent into it. (Though in googling it again just now, I see a suggestion to try something called npiperelay, so I’ll spend…

I can confirm npiperelay does the job just fine.

If you happen to use Nix, I have a quick and easy package at github:Cu3PO42/gleaming-glacier/next#wsl-ssh-agent. Simply install that and 'source $(which wsl-ssh-agent)' in your bashrc and you should be good to go. (There's also a HM module in the Flake.)

Re: How to free up and automatically manage disk space for WSL

#25
post #3

I'm done with WSL. It just makes life too hard, dual disk is a problem, two network endpoints two firewalls, two different hypervisors you can choose from where some things expect one some the other. I used to think a windows laptop would be better for hardware management, maybe it is but I just gave up and installed Linux. My life is so much easier.

i'm the opposite of you, i'm so done with Linux on my laptop. I can't count how many time my machine cooks itself inside my bag when using Linux. Windows also has the same problem, but much less frequently. Now if i want linux, WSL2, and if i want linux graphic, Vmware or something similar

Microsoft has contributed to Mesa for DirectX tunneling drivers. WSL2 supports GPU HW acceleration out of the box.

Re: How to free up and automatically manage disk space for WSL

#26
post #3

I'm done with WSL. It just makes life too hard, dual disk is a problem, two network endpoints two firewalls, two different hypervisors you can choose from where some things expect one some the other. I used to think a windows laptop would be better for hardware management, maybe it is but I just gave up and installed Linux. My life is so much easier.

WSL is really convenient for a lot of use cases though. Much better than dual booting on a machine used primarily for gaming.

on in a corporate environment where windows is required for many things

Re: How to free up and automatically manage disk space for WSL

#27

Earlier quoted context omitted.

I’m also doing WSL-centric development and I’m not even really gaming on that machine, I just appreciate the comforts that come with competent multi monitor support and reliable wake from sleep. My biggest frustration with WSL at present is that 1Password won’t properly support proxying their ssh agent into it. (Though in googling it again just now, I see a suggestion to try something called npiperelay, so I’ll spend…

You can actually run the windows ssh.exe binary directly from WSL, no extra setup needed. Give it a try.

I used to use the `npiperelay` method but have since switched to this and it works nicely.

Re: How to free up and automatically manage disk space for WSL

#28
post #5

Earlier quoted context omitted.

At work I asked for a remote server and my pc is just a terminal to use ssh & xwindows.

I also considered this, but I was not able to solve the security problems. That remote server must (or not?) hold all my SSH keys, AWS creds, and other stuff, to even be useful. Secops guys would kill me for this. Until then, WSL is good enough.

I know "secops" guys tend to not really understand what's going on, but you can sell it as just a different computer. You could compromise and install whatever handbrake^w security product they like. Bonus points for that computer being separate from the one where you usually browse the interwebs and such.

However, in practice, at least for the kind of compiling I do, AWS EC2 VMs tend not to be faster than my cheap HP Elitebook. Maybe if you can leverage a hefty number of cores, the situation is different. For regular email pushing, the laptop is good enough.

Re: How to free up and automatically manage disk space for WSL

#29
post #8
post #6

Earlier quoted context omitted.

I have something like that at work for testing Windows things, since my work machine is a Mac. It's pretty miserable in terms of latency and window management. If you can get this to work well with NX or X forwarding, that's cool, but it's a second class offering when that's your only option.

Hm, are you using native Windows RDP? That one has pretty low latency even in the default configuration (assuming a capable client).

Windows RDP used to be great, but now they figured they'd put animations and transparencies all over the place, so it's become very frustrating to use. Even over a local Gigabit network.

Re: How to free up and automatically manage disk space for WSL

#30
Actually great intro for step-by-step powershell scripting.

I thought I didn't know about "Throw-And-Exit" command, but no, my powershell doesn't have that and google also doesn't know a thing, so wonder what's up with that.

And instead of manual confirmations, one can write script with ShouldProcess support to have support for builtin -Confirm/-WhatIf/-Force parameters. And it would actually be a great use case for that scheduled task to run with -Force parameter instead of changing code to strip out confirmations. https://learn.microsoft.com/en-us/powershell/scripting/learn...

Post reply on HN