--- tags: NVIDIA --- # Disable Nouveau driver and install NVIDIA cuda driver on Ubuntu Linux ###### tags: NVIDIA ## HW Equipment Hardware System: Leveno Legion y530 15ich OS: Ubuntu 20.04.2 LTS, kernel 5.8.0 GPU: NVIDIA GEFORCE GTX 1050 ## SOP download .run installing driver file at: https://www.nvidia.com/Download/index.aspx?lang=en-us gcc must be installed ```javascript= sudo apt get install gcc ``` create a file: ```javascript= $ sudo vim /etc/modprobe.d/blacklist-nouveau.conf ``` in blacklist-nouveau.conf ```javascript= blacklist nouveau options nouveau modeset=0 ``` save the file and exit final: ```javascript= $ sudo update-initramfs -u $ sudo reboot ``` After restarting, we can use the following command to confirm whether Nouveau has stopped working: ```javascript= lsmod | grep nouveau ``` If nothing is printed, then congratulations! You have disabled Nouveau's kernel driver. Now we can try again to see if we can install Nvidia's official driver! make it excutable ```javascript= $ chmod +x NVIDIA-Linux-x86_64-460.32.03.run //make it executable ``` installing nvidia driver ```javascript= $ ./NVIDIA-Linux-x86_64-460.32.03.run //name of file may be different, depends on the version which you download from ``` in .run, there're some warnings, just choose continue installing item and finish the installing procedure and ```javascript= $ reboot ``` after reboot, press nvidia-smi to see the driver is OK or not ```javascript= $ nvidia-smi ``` **This pic is Just of Reference:** ![](https://i.imgur.com/BNon8Xv.png) ``` ## source: 1. https://clay-atlas.com/blog/2020/02/11/linux-chinese-note-nvidia-driver-nouveau-kernel/ 2. https://askubuntu.com/questions/841876/how-to-disable-nouveau-kernel-driver