Switching to WSL2 with Fedora over plain Fedora install for development?
Anyways, I've been doing pretty much all my coding on Linux (Ubuntu -> Pop_OS! -> Fedora), but I run Windows 10 on another SSD as I game as well, and Linux is just no where near a quality user experience for gaming, at least the kind of games I play. Note I also have an NVIDIA GPU lol...
I'd like to not have to constantly switch OSes, so I was thinking to use WSL2 to install Fedora w/ no GUI, and just do all my dev stuff through the command line, which I've gotten more familiar with lately. I do my editing using Neovim already, so that should be fine.
Has anyone on HN done something similar, and what has been your experience? Once I get a laptop in a few months to a year (hopefully a Framework laptop!), I'll use Fedora on there as well.
There's also a part of me that very much dislikes contributing to Microsoft's push to pull Linux users over, but at the end of the day I just need to get shit done :|
25 comments
[ 1.0 ms ] story [ 83.1 ms ] threadI don’t like WSL much. It feels like a second class environment, where the Linux filesystem is accessible via a network share.
In any case, it works. Windows Terminal is good enough, but I find Windows a hopelessly confusing OS with lots of places where it seems unfinished.
Considered all its pain points, I’d go with a VM under VirtualBox or VMWare Workstation. You’ll get a desktop-like experience if you go full screen and you still can get to the filesystem via the VM’s host drive plumbing. And nothing prevents you from running Windows Terminal and ssh’ing into the proper VM.
Not sure WSL2 will like Wayland. It seems better adapted to text-mode command-line Linux work (I'm aware it can run graphical apps). What I'd suggest is to deploy a new Fedora/CentOS WSL VM and copy your home into it.
> I used VirtualBox when I was first trying out Ubuntu
Oh yes. Unless it's a really nice machine and the hypervisor allows the VM to bypass hardware emulation when possible and use some form of virtio-like thing, it'll never be as fluid and snappy as when it's deployed on metal.
Certainly WSL2 integration has some benefits, but I'm not really using any of them at this point. My Windows terminal sshs to the Linux VM, my VSCode terminal opens in the Linux VM and everything feels fine. That covers my development requirements pretty well and rest of the stuff I do with native Windows tools (and I rarely need to cross-access files).
Never bothered to look for that. Can you link to it?
https://dev.to/bowmanjd/install-fedora-on-windows-subsystem-...
The only difference between this article and today, instead of using that Powershell command to set your default user on login, use /etc/wsl.conf (https://docs.microsoft.com/en-us/windows/wsl/wsl-config#user...)
Why, just yesterday, my wife’s Windows 11 laptop automatically upgraded and along with the OS update decided to update the BIOS of the laptop as well! Which meant a sudden shutdown with several seconds of a blank screen at which point she was very keen on hard restarting and potentially bricking her laptop.
With brilliant decisions like these made for you how can you ever go wrong with Windows.
If you are into gaming on Windows 10, use Windows 10 as your main and a virtual machine of Linux for Dev.
Gaming on Windows 10 in a virtual machine will not be that good.
There is an issue with running VMware Workstation on Windows 10 with WSL2 on.
In the beginning it did not work at all
They have fixed it a little bit. Now you can run both at the same time but it creates limits for what VMWare Workstation can do.
The most important limit for me is the inability to run nested virtual machines.
This is probably not a problem for most users, but I have to turn off WSL2 and HyperV to run nested operating system on VMWare. This in turn means Docker Desktop will not run on Windows 10.
I am so used to virtual machines that I strongly prefer it to WSL2. It creates a natural demarcation between the two systems. It is trivial to return to a known state on VirtualMachine. Everything in Linux, FreeBSD etc works as expected.
BUT, I urge you to just download ubuntu on wsl. It's way more integrated and has alot more support. There's effectively no difference besides some library names which can be translated with "whatprovides" and apt vs dnf. As a Fedora desktop user at work and Ubuntu hater, with WSL it has the Microsoft "Stamp of approval" and gets all the new features and official support.
My experience was a pain in the ass. I dumped wsl2 or some virtualization and use this instead:
I have a small linux cloud instance with full ssh access. (I pay 4 USD / month). I use a free tool called mutagen to sync all my files on my windows machine to that linux machine. Sync is almost instant, it feels like working on local server.
Other plus, I can show to my coworkers and customers what I do on my server. Especially now when I work from home.
WSL2 is nice for smaller things, but I would not use it for full web dev server. I would if I could but it doesn't work nice for me. And somehow, it doesn't feel right... I know linux is fast but in wsl2 it is way slower.