Installing Nvidia drivers and CUDA in Linux – Ubuntu and its derivatives

After a fresh install of Ubuntu – or one of its derivatives, I use a quick way to install Nvidia drivers and CUDA (used for GPU computing like blender cycles, etc.). It consists of two simple steps, open a terminal and…

  1. Add a PPA that contains latest stable drivers and install them:
    sudo apt-add-repository ppa:ubuntu-x-swat/x-updates
    sudo apt-get update
    sudo apt-get install nvidia-current nvidia-settings
  2. Install binary packages of CUDA:
    sudo apt-get install nvidia-cuda-toolkit

Now it’s possible to benefit of the Nvidia computing performance in your Linux! 🙂

Anyway, if you just need to let Blender to work with GPU computing, I advice to just install nvidia proprietary drivers and the package nvidia-modprobe:

sudo apt-add-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get install nvidia-current nvidia-settings nvidia-modprobe