Access WSL2 from LAN:
Localhost et al: reddit
[interop]
appendWindowsPath=false
to disable Windows path addition to WSL $PATH
Open the HKCU\Software\Microsoft\Windows\CurrentVersion\Lxss
registry. Find the registry value DistributionName==Kali_Linux
. Change defaultUID registry to zero (default is 0x3e8
). Open Kali, type passwd
change root password.
WIndows explorer: \\wsl$
VS Code:
\\$wsl\home\username\.bash_profile
core.editor
in .gitconfig
:code --wait
Update WSL2 kernel manually: microsoft/WSL#5650 (comment)