Showing posts with label wsl. Show all posts
Showing posts with label wsl. Show all posts

Tuesday, September 10, 2024

Access windows localhost from wsl

To access window's localhost from wsl, you can set networkingMode=mirrored in .wslconfig

Reference:

 https://learn.microsoft.com/en-us/windows/wsl/wsl-config#configuration-settings-for-wslconfig

Thursday, August 29, 2024

Start new tab with the current directory in windows WSL

Use the following alias:

alias nt='wt.exe -w 0 wsl'

It means starting a new  terminal (tab) in the same window (-w 0) , and run a command wsl with it.

Upgrade nodejs in conda (from v18 to v26)

If your conda env is nodejs v18, doing a conda install nodejs=26 is likely to create a lot of conflict. Consider remove those conflicting p...