r/bashonubuntuonwindows

how do I stop wsl from shutting down when no ttys are open

I am constantly in and out of tmux throughout the day and having wsl automatically shut down despite the tmux server running is super annoying, how can I have windows just leave it running?

tried vmIdleTimeout=-1 (and 0 and 99999... since theres no documentation on values) in the .wslconfig, it didn't fix it

using cachyos, using systemd, but I ran a fresh ubuntu on defaults and its doing the same thing

u/superdumsuhi — 4 days ago

How isolated is WSL2?

I'm evaluating an architecture to completely separate gaming and development, and I'm unsure which approach would be more practical.

Option 1: Windows as the host

  • Windows exclusively for gaming (Steam, Battle.net, Discord, etc.).
  • WSL2 with Arch Linux exclusively for development.
  • No development tools installed on Windows.

The goal is to keep the entire development environment inside Linux:

  • VS Code installed directly in Arch via WSLg.
  • Extensions, settings, and caches under ~/.config, ~/.vscode and ~/.local.
  • SDKs (.NET, Node, Docker, Git, etc.) installed only in WSL.
  • Projects stored in /home/user/projects.

No .vscode, .nuget or other development-related directories under C:\Users\User.

In practice, Windows would be nothing more than a gaming platform, while Arch running under WSL would behave like an almost independent Linux environment.

Option 2: Linux as the primary OS

  • Fedora as the host.
  • Distrobox for development environments.
  • Applications installed via Flathub.

My main concern with Fedora is the NVIDIA driver experience in terms of compatibility and stability.

reddit.com
u/Brenzuke — 6 days ago