How to install NVidia Drivers on Ubuntu 24.04
- Open a new terminal ( Ctrl + Alt + T )

2. Update repositories by typing
sudo apt update && sudo apt upgrade -y
3. Add this repository by typing
sudo add-apt-repository ppa:graphics-drivers/ppa -y
4. Update again by
sudo apt update
5. Install drivers (you can replace 550 with whatever version available on ppa repository, https://launchpad.net/%7Egraphics-drivers/+archive/ubuntu/ppa)
sudo apt install nvidia-driver-550 -y
6. Restart your computer
sudo reboot
7. You can check the version of the drivers via:
nvidia-smi
8. For Sunshine users, additionally you can install:
$ sudo git clone https://github.com/keylase/nvidia-patch
$ cd nvidia-patch
$ sudo bash ./patch.sh
$ sudo bash ./patch-fbc.sh