Skip to content

Instantly share code, notes, and snippets.

@josephbolus
Last active April 23, 2026 03:47
Show Gist options
  • Select an option

  • Save josephbolus/e8704e8efa0978e681535b7d638157b4 to your computer and use it in GitHub Desktop.

Select an option

Save josephbolus/e8704e8efa0978e681535b7d638157b4 to your computer and use it in GitHub Desktop.
UBUNTU Install NVIDIA driver WSL2

How to Install and Configure Vulkan on Ubuntu

Install NVIDIA driver (if not already installed)

sudo apt-get update sudo apt-get install -y nvidia-driver-575 # or latest recommended version

Install Vulkan loader and NVIDIA ICD

sudo apt-get install -y libvulkan1 libvulkan-dev vulkan-tools

NVIDIA ICD is typically installed with the driver at:

/usr/share/vulkan/icd.d/nvidia_icd.json

ls /usr/share/vulkan/icd.d/

Install MESA Drivers

sudo add-apt-repository ppa:kisak/kisak-mesa
sudo apt update
sudo apt upgrade

Run vulkaninfo to see full GPU capabilities

vulkaninfo

Condensed summary view

vulkaninfo --summary

3D spinning cube rendered with Vulkan

vkcube

Offscreen rendering test

vkcube --c 100 # render 100 frames and exit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment