1, first need to uninstall the system comes with the NVIDIA-related driver: $ sudo apt-get –purge remove nvidia-GLX Nvidia-GLX-New
$ sudo apt - Get –purge remove nvidia-settings nvidia-kernel -Common
2, after the original drive deleted, also need to add Ubuntu integrated open source driver blacklist, that is, modify the/etc/modprobe.d/blacklist.conf file: sudo gedit /etc/modprobe. D / blacklist . conf
Add the following two lines to the file:
Blacklist nouveau
Options Nouveau modeset=0
3, in order to be able to compile Cuda provides examples, but also need to install the following package: sudo apt-get install FREEGLUT3 set up a soft link after installation.sudo ln-s/usr/lib/x86_64-linux-gnu/libglut.so.3/usr/lib/libglut.so
4. After that, you can install the CUDA6.5 run file : https://developer.nvidia.com/cuda-downloads, select Run File download. ./*.run installation prompt to run step by step 5, configure environment variables
for Ubuntu 8.10 later version, export Ld_library_path in/etc/profile no longer applicable, you need to modify the/etc/ld.so.conf add shared library path, one line, for reference: http://blog.163.com/thinki_cao/blog/static/83944875201302713822395/ for 32-bit system additions:/usr/local/cuda-5.0/libfor 64-bit system additions: (one line)/usr/local/cuda-5.0/lib64/libYou will need to make the modified path effective after adding it, this method does not need to be restarted:sudo ldconfig
6. Install the package required to compile the sample
sudo apt-get install Libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libboost-all-dev libhdf5-serial-dev Libgflags-dev Libgoogle-glog-dev Liblmdb-dev Protobuf-compiler
7. Compiling Make-j4 8. The successful execution of the program compiled in sample indicates successful installation.
Main references:http://www.cnblogs.com/platero/p/3993877.htmlhttp://blog.163.com/thinki_cao/blog/static/83944875201303125444265/
Ubuntu14.04 64-bit system installation Cuda 6.5