Journal

Install CUDA driver on a new Ubuntu system

Reading Time: < 1 minute

After recycling the old pc to install Ubuntu, I wanted to install CUDA drivers. And of course ran into the same old errors. Here is some notes to make sure I don’t run into the same errors again.

  1. Download and installing CUDA driver. Need to install make and gcc, sudo apt install gcc make
  2. There are still some errors form cuda install, as directed by nvidia forum,https://forums.developer.nvidia.com/t/info-finished-with-code-256-error-install-of-driver-component-failed/107661, need to look at the file on /var/log/nvidia-installer.log. It’s because The Nouveau kernel driver. Now follow the nvidia instruction at https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#runfile-nouveau to blacklist Nouveau.
  3. How come it doesn’t work? Well, need to reboot the system of course.
  4. Now it installs correct. Have fun!
  5. Make sure to use the entire harddrive if you have fresh Ubuntu install. Here -> https://www.panzoto.com/extend-the-free-space-on-lvm/