

Install Void Linux on WSL2
source link: https://gist.github.com/kmatt/aad3970a05f72fbbd5f1b9ef7ee1e330
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Install Void Linux on WSL2 · GitHub
Instantly share code, notes, and snippets.
This is fantastic stuff. Thank you for creating this document.
As of at least 2022-11-11, we don't need to use the final Powershell command to set the default user. Instead, we can:
$ echo -e "[user]\ndefault=$USERNAME" > /etc/wsl.conf
$ exit
> wsl --terminate $DISTRONAME
> wsl -d $DISTRONAME
See https://learn.microsoft.com/en-us/windows/wsl/use-custom-distro (https://web.archive.org/web/20221014081630/https://learn.microsoft.com/en-us/windows/wsl/use-custom-distro).
Also, for anyone else reading this, you may want to edit /etc/sudoers
prior to exiting the initial root shell. Adjust it so that your newly added user can perform sudo actions.
One other tip: set your default distribution by wsl --setdefault $DISTRONAME
.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK