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.
- Download and installing CUDA driver. Need to install make and gcc,
sudo apt install gcc make
- 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 becauseThe 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. - How come it doesn’t work? Well, need to reboot the system of course.
- Now it installs correct. Have fun!
- Make sure to use the entire harddrive if you have fresh Ubuntu install. Here -> https://www.panzoto.com/extend-the-free-space-on-lvm/