![]() ![]() Latest Long Lived Branch version for Linux x86_64/AMD64/EM64T, is suitable for most case. The latest NVIDIA driver for Linux OS can be fetched from NVIDIA's official website. # After executing this file, /etc/apt/ should contain no files related to nvidia or cuda # Change 1404 to the exact system version or use tab autocompletion # Note this might remove your cuda installation as well Executing the following scripts carefully one by one. So before reinstall the driver from runfile, uninstalling previous installations is required. One might have installed the driver via apt-get. Remove Previous Installations (Important) Install NVIDIA Graphics Driver via runfileįor advanced user who wants to get the latest version of the driver, get rid of the reinstallation issue caused bby dkms, or using Linux distributions that do not have nvidia drivers provided in the repositories, installing from runfile is recommended. One has to reinstall the driver after Linux kernel are updated.There would be some naming conflicts when other repositories (e.g.The driver included in official Ubuntu repository is usually not the latest.It is recommended for new users to install the driver via this way because it is simple. The nvidia-modprobe utility is used to load NVIDIA kernel modules and create NVIDIA character device files automatically everytime your machine boots up. To install the driver, excute sudo apt-get nvidia-375 nvidia-modprobe, and then reboot the machine. To install the driver, excute sudo apt-get nvidia-352 nvidia-modprobe, and then reboot the machine.įor ubuntu 16.04.3 LTS, the latest version is 375. Installation is as simple as one command.įor ubuntu 14.04.5 LTS, the latest version is 352. In Ubuntu systems, drivers for NVIDIA Graphics Cards are already provided in the official repository. Table of contents generated with markdown-toc Install NVIDIA Graphics Driver via apt-get Remove Previous Installations (Important).Install NVIDIA Graphics Driver via runfile.Install NVIDIA Graphics Driver via apt-get.Comments for CentOS/Fedora are also provided as much as I can. ![]() Sudo dpkg -i libcudnn5-doc_5.1.10-1+cuda7.5_amd64.In this article, I will share some of my experience on installing NVIDIA driver and CUDA on Linux OS. What is next? I don't know, I have never went that far. If everything works from the first time - you are a lucky one, maybe try to buy a lottery ticket. Navigate to CUDA_Samples and compile it first cd ~/NVIDIA_CUDA-7.5_Samples/1_Utilities/deviceQuery Validate installation using standard tools nvcc -V ![]() Update PATH variables export PATH=/usr/ local/cuda-7.5/bin: $PATH export LD_LIBRARY_PATH=/usr/ local/cuda-7.5/lib64: $LD_LIBRARY_PATH source ~/.bashrc To avoid "cudaGetDeviceCount returned 30 -> unknown error" sudo apt- get install nvidia-modprobe Return to GUI sudo service lightdm start Install nvidia-modprobe Log out from GUI by pressing ctrl + alt + f2 Stop lightdm sudo service lightdm stop Run installation file cd ~/Downloads sudo sh cuda_7. Sudo apt- get install linux-headers-$(uname -r) Sudo apt- get source linux-image-$(uname -r) Reboot and update Install linux kernel modules, headers, sourceĮverything just to avoid "unable to locate the kernel source" error sudo apt-get install linux-image-extra- virtual Remove nf if it exists sudo rm /etc/X11/nfīlacklist custom drivers echo -e "blacklist nouveau\nblacklist lbm-nouveau\noptions nouveau modeset=0\nalias nouveau off\nalias lbm-nouveau off\n" | sudo tee /etc/modprobe.d/nfĮcho options nouveau modeset=0 | sudo tee -a /etc/modprobe.d/nf Sudo mokutil -disable-validation Install build-essential sudo apt-get install build-essential Sometimes drivers ask for it automatically, other times it may cause a fail sudo apt install mokutil Remove everything from NVIDIA if there is anything sudo apt- get purge nvidia* First of all, I do it in order to not search them again by dozens of stackoverflow answers and random articles, however, maybe someone else will also find a good use of it. After weeks of struggling I decided to collect here all the commands which may be useful while installing CUDA 7.5 on Ubuntu 14.04. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |