title: A definitive and stable way to install CUDA on (Ubuntu 14.04, Mint 17.2, or Fedora)
body: <p>I am having trouble with CUDA installation on Linux.
  I have tried the installation of CUDA 6 on:
  Ubuntu 14.04 (x64)
  Linux Mint 17 (x64)</p>
  <p><strong>The problem:</strong></p>
  <p>I have tried to simply download/execute the nvidia CUDA executable (it is a *.run file downloaded from nvidia website)
  I have tried to install CUDA from the .deb file given by nvidia
  I have tried to install CUDA from edgers repository</p>
  <p>I have followed tens of tutorials, I have reinstalled at least 20 times Linux, just to be sure that I am working on a clean version.</p>
  <p>In any case: I paid attention to define the variable environment at the end of the process: PATH and LD_LIBRARY_PATH so that they point to the recently installed CUDA directory. (/path/to/cuda/bin for PATH and /path/to/cuda/lib64 for LD_LIBRARY_PATH.</p>
  <p>At the end of the process I am trying to <strong>compile and launch the sample code given by nVidia</strong> in the sample code thing that you can install/download.
  The example I am running is &quot;deviceQuery&quot;. (located in /path/to/cuda/samples/)</p>
  <p>In any case, I had the nvidia (proprietary driver installation), not Nouveau.</p>
  <p>And in any case, I have an error when I launch this deviceQuery. The error is either something like: no CUDA-able device detected.
  Or something like nvidia-uvm is missing (I have tried to install nvidia-uvm, when I tried the installation from the edgers PPA repository, and the error I have when I launch the deviceQuery sample is then no no CUDA-able device detected.</p>
  <p><strong>The question</strong></p>
  <p>What is, the right, stable, clear way to install CUDA on ANY version of Linux.
  I am ready to download, install ANY version of Linux.</p>
  <p>Thanks a lot and very much for your help</p>