This needs to be done once per user.
.gitconfigof the newly created fork with your own data. You can do it thrugh the GitHub web UI.
dotfiles-privaterepo. Make it private.
rsa_id.pub-- and add
rsa_id.pubto github.com. See https://help.github.com/en/articles/connecting-to-github-with-ssh for details. Use a strong passphrase.
rsa_idin a secure persistent storage system. For example, in your password manager.
This needs to be done once per Windows installation. You don't need to repeat these steps when reinstalling Ubuntu.
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
choco.exe install -y microsoft-windows-terminal vcxsrv
Follow these steps to remove your Linux distro with all files (applications, settings, home directory, etc.). You can recreate it by following WSL Installation guide below.
wsl.exe --unregister DISTRO
These steps allow you to recreate the whole WSL environment. Before proceeding, delete the current distro if you have it. See WSL Removal.
id_rsainto the Windows
Downloadsfolder. It's OK if it's downloaded as
GITHUB_USERNAMEif it's not the same as your WSL username):
GITHUB_USERNAME=$USER bash -c \ "$(curl -fsSL 'https://raw.githubusercontent.com/romkatv/dotfiles-public/master/bin/bootstrap-machine.sh')"
Yeswhen prompted to terminate WSL.
settings.jsonwith this. Change "romkatv" to your WSL username.
Run this command occasionally.
sync-dotfiles && bash ~/bin/setup-machine.sh && z4h update #maintenance
Pro tip: Copy-paste this whole command including the comment. Next time when you decide to run maintenance tasks, press
Ctrl+R and type
#maintenance. This is how you can "tag" commands and easily find them later. You can apply more than one "tag". Technically, everything after
# is a comment.