install pkg-config libglvnd-dev dkms build-essential libegl-dev libegl1
install libgl-dev libgl1 libgles-dev libgles1 libglvnd-core-dev libglx-dev libopengl-dev gcc make

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
version=$(ubuntu-drivers devices | grep "recommended" | awk '{print $3}' | grep -oP 'nvidia-driver-\K[0-9]+')
echo "Using version $version"
sudo apt install -y "nvidia-driver-$version"
