sudo chown -R username
- Update linux
sudo apt-get update
sudo apt update
- Install git
sudo apt-get update
sudo apt-get install git-all
2.1 In case of receiving an error run-detectors: unable to find an interpreter for /mnt/c/... run below command
sudo update-binfmts --disable cli
- Resolve git slow issue in wsl mnt path. add this function to ~/.bashrc
nano ~/.bashrc
function git() { if [[ $(pwd -P) = /mnt/* ]]; then git.exe "$@"; else command git "$@"; fi; }
- Configure git
git config --global credential.helper "/mnt/c/Users/<your username>/AppData/Local/Programs/Git/mingw64/bin/git-credential-manager.exe"
git config --global credential.https://dev.azure.com.useHttpPath true
git config --global user.name "<Your Name>"
git config --global user.email "<Your Email>"
- Install telnet
sudo apt-get update && \
apt-get install -y telnet
- Install curl
sudo apt-get update && \
apt-get install -y curl
- Install Kubectl
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
curl -LO "https://dl.k8s.io/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl.sha256"
echo "$(cat kubectl.sha256) kubectl" | sha256sum --check
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
#chmod +x kubectl
#mkdir -p ~/.local/bin
#mv ./kubectl ~/.local/bin/kubectl
kubectl version --client
- set KUBECONFIG environment variable to windows kube config path
nano ~/.bashrc
export KUBECONFIG="/mnt/c/Users/<your username>/.kube/config"
- Install azure cli
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
sudo apt-get install azure-cli
az upgrade
sudo az aks install-cli
- Install oh-my-fish
sudo apt-add-repository ppa:fish-shell/release-3
sudo apt update
sudo apt install fish
sudo vim /etc/pam.d/chsh
change "auth required pam_shells.so" -> "auth sufficient pam_shells.so"
sudo chsh -s $(which fish) $(whoami)
sudo vim /etc/pam.d/chsh
change "auth sufficient pam_shells.so" -> "auth required pam_shells.so"
curl -L https://github.com/oh-my-fish/oh-my-fish/raw/master/bin/install | fish
omf update
omf install bobthefish
- Install dotnet
sudo apt update
apt install <latest dotnet> --dotnet-sdk-7.0
- Install Nuget
sudo apt update
sudo apt install nuget