https://learn.microsoft.com/en-us/windows/wsl/install
after reboot, type wsl
in cmd to finish install
Stable is still 5.x, update to pre-lease kernel
https://www.reddit.com/r/wsl2/comments/1ed915b/how_to_upgrade_ubuntu_2404s_linux_kernel_in_wsl2/
but it's still 5.x, the 6.6 is currently pulled off from pre-release
guess we have to use 5.x?
1.8.15+1 broken in Win11
bostrot/wsl2-distro-manager#269
Guide: https://github.com/fedora-cloud/docker-brew-fedora/tree/$VERSION/x86_64
- Use distro manager to create the instance. The UI provides default user, but it doesn't work
- Use https://github.com/fedora-cloud/docker-brew-fedora/blob/41/x86_64/fedora-20241222.tar as rootfs
- Enter the instance, follow the guide to install basic packages and create user.
https://brew.sh/
Need to install ps
command, otherwise brew would fail
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/cmd/shellenv.sh: line 18: /bin/ps: No such file or directory
sudo dnf install procps
Tested firefox, can launch GUI, but problem: missing CJK fonts.
According to https://granule.medium.com/wsl2-gui-app-shortcuts-in-windows-with-wslg-fcc66d3134e7, the desktop file created inside distro will be picked by Windows and displayed in Start menu.
Problem:
Firefox:
- can't use anything from hamberger menu microsoft/wslg#1119
- has to disable Wayland in Firefox for now
- Bad performance with above workaround
- CJK fonts still don't work after syncing fonts from windows
Consider the limitation, it's probably better to run GUIs in windows and only use WSL for CLIs.
VS Code has good support of working with WSL from Windows.
luks
https://gist.github.com/gtirloni/5b62ad835a06da21a6bd11aa78d3f7c4
Since we are using Windows VS Code and Terminal app, the fonts for CLIs and VSCode need to be installed on Windows
choco install hackfont nerd-fonts-Hack dejavufonts
TODO:
- CJK Fonts and IME https://www.80shihua.com/archives/2994
- Build newer kernel, here's a guide for ubuntu https://learn.microsoft.com/en-us/community/content/wsl-user-msft-kernel-v6