Install nvidia cuda driver for centos 7 in an asus laptop model TP300L with a Nvidia GEFORCE 820M GPU. Refer to: NVIDIA CUDA Getting Started Guide for Linux: http://docs.nvidia.com/cuda/cuda-getting-started-guide-for-linux/#axzz3pgS6QfpV May also be useful: http://docs.nvidia.com/cuda/cuda-installation-guide-linux/ 1. Download rpm for local installation at https://developer.nvidia.com/cuda-downloads. As of this time, cuda-8 is available for centos 7: ## http://developer.download.nvidia.com/compute/cuda/7.5/Prod/local_installers/cuda-repo-rhel7-7-5-local-7.5-18.x86_64.rpm ## osolete https://developer.nvidia.com/compute/cuda/8.0/Prod2/local_installers/cuda-repo-rhel7-8-0-local-ga2-8.0.61-1.x86_64-rpm Installation Instructions: `sudo rpm -i cuda-repo-rhel7-8-0-local-ga2-8.0.61-1.x86_64-rpm` `sudo yum clean all` `sudo yum install cuda` Refer to: https://kerpanic.wordpress.com/2015/05/29/installing-cuda-7-on-centos-7-the-golden-path-for-opengl-samples-to-work/ 2. systemctl set-default multi-user.target 3. reboot 4. Upon rebooting, enter the terminal as root and type echo -e "blacklist nouveau\noptions nouveau modeset=0" > /etc/modprobe.d/disable-nouveau.conf 5. dracut --force 6. nvidia-xconfig 7. Set the library paths for CUDA 7 libraries on boot $ cd /etc/profile.d $ vim cudapaths.sh Type the following into the cudapaths.sh script. export LD_LIBRARY_PATH=/usr/local/cuda-7.5/lib64:$LD_LIBRARY_PATH 8. yum install mesa-libGLES.x86_64 mesa-libGL-devel.x86_64 mesa-libGLU-devel.x86_64 mesa-libGLw.x86_64 mesa-libGLw-devel.x86_64 libXi-devel.x86_64 freeglut-devel.x86_64 freeglut.x86_64 9. Download drivers here: http://www.geforce.com/drivers/results/84721 http://us.download.nvidia.com/XFree86/Linux-x86_64/346.72/NVIDIA-Linux-x86_64-346.72.run 10. In case installation of cuda failed, you can regenerate the /etc/X11/xorg.conf file using the command Xorg :1 -configure This will create the file /root/xorg.conf.new, which you can then copy to /etc/X11/xorg.conf: cp /root/xorg.conf.new /etc/X11/xorg.conf reboot 11. If your screen hang upon rebooting, type Ctrl + alt + F2 to boot into a terminal. 12. startx upon login to see if gui can be launched. 12. You may need some command for setting init level, just in case: systemctl get-default systemctl set-default graphical.target 13. Setting environmental paths are mandatory: export PATH=/usr/local/cuda-7.5/bin:$PATH export LD_LIBRARY_PATH=/usr/local/cuda-7.5/lib64:$LD_LIBRARY_PATH 13. Verification: If CUDA is successfully compiled, nvcc -V should give output such as nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2015 NVIDIA Corporation Built on Tue_Aug_11_14:27:32_CDT_2015 Cuda compilation tools, release 7.5, V7.5.17