win11-wsl2-ubuntu-base-pmb ==========================
Make Ubuntu work for me in Windows 11 WSL2.
wub.cmd: Open PowerShell in the WUB directory.wub.cmd .: Open the WUB directory in Windows Explorer.WSL tends to randomize its IP address whenever it starts.
To alleviate this, WUB by default installs a crude ncat-based proxy
from TCP port 513 (rlogin)
to localhost:22.
Fortunately, WSL seems to do something to make the latter work
on the Windows side. I guess Microsoft arranged that because anyone
connecting from Windows to localhost:22 usually doesn’t mean to
connect to the Windows OpenSSH service.
Thus, if you allow ncat.exe to only listen on trusted local home networks,
you should have reasonably secure, easy access from your LAN with:
ssh -p 513 wubu-pmb@yourmachine.local
.exe files.
choco.exe = Chocolateynode.exe = Node.jsperl.exe = Perlpythonw3.exe = Python 3ncat.exe in your PATH.
The download link for the statically compiled version of ncat.exe is
hidden near the botton: “[…] inside a zip file here.”
netsh.exe interface portproxy show all for any forwardings for which
you don’t have a good reason to keep them. For help on how to delete them:
netsh.exe interface portproxy delete (shows available subcommands)wubu-pmb (The second “u” is for user.)wubuA-Z, a-z), digits (0-9),
U+002D hyphen-minus (-), U+002E full stop (.),
and/or U+005F low line (_).
Recommended path: C:\ProgramData\wsl\win11-wsl2-ubuntu-base-pmb
cfg.@.defaults
and maybe put some files there:
ssh_authorized_keys.txt: If you want to login via OpenSSH.
reinstall_repo.cmd into your WUB directory,
open its file properties, confirm the trust checkbox (web download
noob protection) in the bottom, click “OK”, and run it.
reinstall_repo.cmd BRANCH=experimentalRestart Windows.
ERR_OUTDATED_WSL_PATH:
The installer was able to install missing packages, but it cannot see them
because the WSL session still uses the old PATH environment variable.
The solution is to retry with a new environment inherited directly from the
windows task bar: If a shell is still open from which you launched the
current (failed) attempt, close it. Press Win+R to open the “Run” dialog,
type wub and confirm to open the WUB shell.
There, run reinstall_repo.cmd. If that didn’t help, reboot and retry.
ISC