pxlrbt / move-wsl

Easily move your WSL distros VHDX file to a new location.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About the method for changing default user in FAQ

robokamran opened this issue · comments

The method presented in readme for changing default user was not possible for me
I was unable to locate "etc/wsl.conf" in either my PC or my Linux distro.

After a search, I found this and this as a working solution.

For example in my PC the command was like this:
ubuntu1804.exe config --default-user kamran

Please update the FAQ in the readme to this solution as it is working and standard.

I was unable to locate "etc/wsl.conf" in either my PC or my Linux distro.

If it doesn't exist, you need to create it. Here the option is mentioned in the official docs: https://docs.microsoft.com/en-us/windows/wsl/wsl-config#user

It's the safer version as it will persist when moving the distro.

I added a bit more information and a link to the Microsoft Docs to the readme.