Feoh on Nostr: ## #Windows #WSL configuration tip I just learned about that made my workflow a LOT ...
##
#Windows #WSL configuration tip I just learned about that made my workflow a LOT smoother. In my /etc/wsl.conf:#
Sets the /etc/fstab file to be processed when a WSL distribution is launched.mountFsTab = true
[experimental]
autoMemoryReclaim = gradual
[wsl2]##
localhostforwarding=trueIn particular, the localhostforwarding thing is HUGE.
Before, when I wanted to run anything that started up a web server and wanted me to connect via localhast, it was a faff. I needed to figure out the IP address of the WSL2 VM and connect through that.
With this setting? localhost works just like you'd expect, and I can connect with my Windows browser. Nice!
#Windows #WSL configuration tip I just learned about that made my workflow a LOT smoother. In my /etc/wsl.conf:#
Sets the /etc/fstab file to be processed when a WSL distribution is launched.mountFsTab = true
[experimental]
autoMemoryReclaim = gradual
[wsl2]##
localhostforwarding=trueIn particular, the localhostforwarding thing is HUGE.
Before, when I wanted to run anything that started up a web server and wanted me to connect via localhast, it was a faff. I needed to figure out the IP address of the WSL2 VM and connect through that.
With this setting? localhost works just like you'd expect, and I can connect with my Windows browser. Nice!