WSL Setup

Published on 30 December 2022

There seem to even newer notes of mine here and here. However I’ve stopped using WSL and now have dual-booted Fedora. I spent two years using WSL and came to the conclusion that it is not worth tackling WSL issues, even with GUI support. I still commend the efforts WSL and WSL GUI team did.

For Windows 11

sudo wsl --install

You can get sudo pkg from scoop.

Restart your computer.

A new tab would open. Type in credentials and then close and reopen Terminal.


sudo apt update
sudo apt full-upgrade

^ actually here, you can keep enabled=true. Make it enabled, and disable it if you get any issues

PATH=$(/usr/bin/printenv PATH | /usr/bin/perl -ne 'print join(":", grep { !/\/mnt\/[a-z]/ } split(/:/));')

Close WSL tabs and in Powershell tab write wsl --shutdown. Open a new WSL tab.

sudo apt-add-repository ppa:fish-shell/release-3
sudo apt update
sudo apt install fish

Make it default using chsh (/usr/bin/fish)

Install Sublime Merge Install fzf Install ripgrep Install fd (sudo apt install fd-find)

mkdir ~/.local/bin
ln -s (which fdfind) ~/.local/bin/fd

^ you need to use $ before (which fdfind if you are running this command on bash.

gsettings set org.gnome.desktop.wm.preferences button-layout ":minimize,maximize,close"
curl -L | bash -s -- -y

This would append a line in If this line is same as the originally insterted one in the file, then discard it. Otherwise replace it with the old one.

Open a new tab and check node version using node -v.

sudo apt-get install --reinstall build-essential
sudo apt install pulseaudio
sudo apt install alsa-utils

^ See


Install go

sudo tar -C /usr/local -xzf go<latest-version>.tar.gz

export PATH=$PATH:/usr/local/go/bin # its already in your fish config

Remove go → sudo rm -rf /usr/local/go