Last active
October 3, 2022 18:37
-
-
Save sajithneyo/ef2a4ccd201a8f461fd9b8b716e5d5a6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Step 1 -> Import WSL image | |
wsl --import Ubuntu-Personal c:\WSL\data\Ubuntu-Personal C:\WSL\Ubuntu_2004.2020.424.0_x64\install.tar.gz --version 2 (https://winaero.com/export-import-wsl-linux-distro-windows-10/) | |
Step 2 -> Add a new user | |
https://www.digitalocean.com/community/tutorials/how-to-create-a-new-sudo-enabled-user-on-ubuntu-20-04-quickstart | |
Step 3 -> Start windows terminal with default user (last section of below article) | |
https://hfakhraei.github.io/Install-multiple-instance-of-same-Linux-Distribution-on-WSL | |
Step 4 -> Set default bash location | |
echo "cd /home/username" >> ~/.bashrc | |
Extra - To remove wsl destro | |
wsl --unregister Ubuntu-Personal | |
Make a default user when multiple distros are present | |
https://askubuntu.com/questions/816732/how-to-change-default-user-in-wsl-ubuntu-bash-on-windows-10 | |
Change directory ownership | |
https://linuxhint.com/change-directory-owner-linux/ | |
Fix terminal colors | |
https://askubuntu.com/questions/123268/changing-colors-for-user-host-directory-information-in-terminal-command-prompt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment