Monitor GPU Usage in WSL debian

NVTOP is like htop but for your graphics module . In this short tutorial I will share how to install nvtop in wsl debian
OS used :
cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
- Verify your graphics driver In my case I have nvidida graphics
nvidia-smi
It should display details about your graphics , if not first install it
- Edit your debian source list to include non-free releases
sudo nano /etc/apt/sources.list
- Modify the source list and add following
deb http://deb.debian.org/debian/ bookworm main contrib non-free-firmware
- Get update
sudo apt get update
- Now you can install nvtop
sudo apt install nvtop
Now hit nvtop
and you are all set !!