Running Ubuntu 22.04 LTS on Windows 11 is a breeze.
First, install Windows Terminal and Ubuntu from the Microsoft store. Next, in Ubuntu, setup your
.bash_aliases hacks and sudo apt installs. Finally, windows_98_tada.wav
If you’re like me, a developer who wants Ubuntu not Windows to be the main environment when working, create a
/etc/wsl.conf file with:
[automount] options = "metadata,umask=022,fmask=111,case=off"
This makes file permissions in
/mnt/c behave like how you would expect in Linux. More info.
After this change all files in
/mnt/c/Program Files/ and
/mnt/c/Program Files (x86)/ requires the WSL terminal to be started as administrator to be able to modify permissions (aka
chmod +x) and it is not currently possible to change permissions in
To make Git in Windows more compatible with your workflow (not Git in Ubuntu leave it alone) add this to your
[core] autocrlf = false fileMode = false
More in depth info available here.