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!
Published at
2024-07-05 16:01:48Event JSON
{
"id": "9b6c7e534e4eda042a6f36421fc29e92f0c21f97796f81c30516c1c50015eeb6",
"pubkey": "21f4f2ea3a2db49cf7cdf526a02f748bf6cbfb13aacff1c1a8ba84a3b710bd28",
"created_at": 1720195308,
"kind": 1,
"tags": [
[
"proxy",
"https://oldbytes.space/@feoh/112734719749445128",
"web"
],
[
"t",
"windows"
],
[
"t",
"wsl"
],
[
"proxy",
"https://oldbytes.space/users/feoh/statuses/112734719749445128",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://oldbytes.space/users/feoh/statuses/112734719749445128",
"pink.momostr"
],
[
"expiration",
"1722787711"
]
],
"content": "## \n\n#Windows #WSL configuration tip I just learned about that made my workflow a LOT smoother. In my /etc/wsl.conf:# \n\nSets the /etc/fstab file to be processed when a WSL distribution is launched.mountFsTab = true\n\n[experimental]\n\nautoMemoryReclaim = gradual\n\n[wsl2]## \n\n\n\nlocalhostforwarding=trueIn particular, the localhostforwarding thing is HUGE.\n\nBefore, 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.\n\nWith this setting? localhost works just like you'd expect, and I can connect with my Windows browser. Nice!",
"sig": "815bc48d1c54e53d26cddfb2e95a5273b581299b5afa8b3b397a7dd0a2de3a0b0238c81e02f4971099d104f06bc6cf173c42d009eb887abb34ab07e8b2aae50f"
}