Source: Developer Environment Setup
Goal
Set up Bash, Python, Git, and Azure CLI tools on any machine using WSL (Windows) or native package managers.
WSL Setup (Windows)
wsl --list --online # verify Debian is available
wsl --install -d Debian # install Debian WSLInstall Dependencies
sudo apt update && sudo apt upgrade -y
# Python
sudo apt install python3 python-is-python3 python3-pip python3-venv python3-dev
# Git
sudo apt install git
git config --global user.name "Your Name"
git config --global user.email "youremail@domain.com"
# Other tools
sudo apt install man ssh wget ca-certificates rsync pass pass-extension-otp zbar-tools vimWSL Backup/Restore
# Backup (takes ~5 minutes)
wsl --export Debian "C:\path\to\OneDrive\debian.tar"
# Restore on new machine
wsl --import Debian .\Debian "C:\path\to\debian.tar"After restore, if you’re logged in as root, fix default user in /etc/wsl.conf:
[user]
default=username
Then run wsl --terminate Debian in PowerShell and restart.
Verify Environment
python --version # >= 3.9
pip --version
git config user.name
git config user.email
ssh -V
rsync --version
pass --versionSee Also
- Linux and Bash Commands topic
- GitHub Basics source