环境:ubuntu 12.04 (x64)

如果不能够 service lightdm stop,显示:unknown service 或者其他的

sudo /etc/init.d/lightdm restart

cuda 6.0

1)Verify You Have a CUDA-Capable GPU

To verify that your GPU is CUDA-capable, go to your distribution’s equivalent of SystemProperties, or, from the command line, enter:

1
lspci | grep -i nvidia

2) Verify the System Has gcc Installed

1
gcc --version

一般系统安装完毕后便自带C编译环境和Python编译环境

3)安装必要的库

If you wish to build allof the samples, including those with graphical rather than
command-line interfaces, you may need to install additional system libraries or
headers if you have not done so before.

1
2
sudo apt-get install freeglut3-dev build-essential libx11-dev libxmu-dev
libxi-dev libgl1-mesa-glx libglu1-mesa libglu1-mesa-dev

注:安装libgl1-mesa-* library时可能会提示你缺少依赖包,请谨记安装提示信息中Recommended依赖包,否则,呵呵呵…

4)卸载(禁止)存在的NVIDIA(nouveau)驱动

一般Ubuntu系统安装完毕后,会弹出Additional
Driver警示框,提醒安装驱动,为了避免兼容性问题,如果已经安装的请卸载PS:The CUDA 5.5 installers include
the CUDA Toolkit, SDK code samples, Nsight Visual Studio edition (for
Windows) and Nsight Eclipse Edition (for Linux / Mac OS X), and
developer drivers.

1
sudo nvidia-uninstall

如果卸载失败,或者卸载完成后,建议这样做一下

1
sudo apt-get remove --purge nvidia*

禁止开源驱动nouveau的开机加载

1
sudo gedit /etc/modprobe.d/blacklist.conf

在文件后添加如下内容保存后重启

1
2
blacklist nouveau
options nouveau modeset=0

5)Installation

Exit the GUI if you are in a GUI environment by pressing Ctrl-Alt-F1
and login as root, then type into the commond below and press Enter

1
service lightdm stop

Install the CUDA Toolkit (xx in 5.5.xx is the minor version of the
installation package)by running the downloaded .runfile as a superuser.

1
sudo sh cuda_5.5.xx_linux_32_rhel5.x.run

这个初始化时间有点长,耐心等待…

安装完成后切换回GUI界面

1
service lightdm start

6)Define the environment variables

我习惯用如下方式进行环境变量的添加修改:

首先

1
gedit ~/.bashrc

添加如下内容

1
2
export PATH=/usr/local/cuda-6.0/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda-6.0/lib64:$LD_LIBRARY_PATH

然后

1
gedit /etc/ld.so.conf

添加如下内容

1
/usr/local/cuda-6.0/lib64

完成之后执行如下命令

1
sudo ldconfig

验证是否添加路径成功

1
ldconfig -v|grep cuda

以上内容其实在你安装完毕CUDA Toolkit之后的信息中都有所提示!文章最后会给出安装完毕后的截图!

7)关于Bug:

执行 nvidia.settings 出现错误提示框 no driver detected 以及 nvidia driver is activated but not currently in use

不知道怎么解决,郁闷中…反正console project都能运行,只是进入Ubuntu系统时因为驱动未安装好的缘故会花屏而已,另外建议运行一下Samples中的1_Utilities中的deviceQuery程序作为测试!

Nvidia CUDA 6 Installed In Ubuntu 12.04的更多相关文章

  1. Ubuntu 12.04安装Adobe Reader

    原本从Adobe 官方网站下载了 Adobe Reader, 是个rpm包,先用agt-get 装了rpm(sudo apt-get install rpm), 一安装(rpm -ivh AdobeR ...

  2. Ubuntu 12.04 安装MySQL

    本文地址:http://www.cnblogs.com/yhLinux/p/4012689.html 本文适合新手入门. 本文是对 Ubuntu 12.04 环境下安装 MySQL 的记录,通过这两天 ...

  3. Ubuntu 12.04下GAMIT10.40安装说明

    转载于:http://www.itxuexiwang.com/a/liunxjishu/2016/0225/164.html?1456481297 Ubuntu 12.04下GAMIT10.40安装步 ...

  4. GAMIT 10.50在Ubuntu 12.04系统下的安装

    转载于:http://www.itxuexiwang.com/a/liunxjishu/2016/0225/162.html?1456480908 摘要:GAMIT/GLOBK是一套安装于Unix/L ...

  5. Ubuntu 12.04+DarwinStreamingSrvr6.0.3 架设流媒体服务器

    1.安装Ubuntu 12.04操作系统,网上很多教程.. 2.打开终端,下载darwin源代码DarwinStreamingSrvr6.0.3-Source.tar,补丁patch dss-6.0. ...

  6. Ubuntu 12.04 SSH 安装

    By default Ubuntu Desktop OS comes with ssh clientpackage. It does not include ssh server package wh ...

  7. 在 Ubuntu 12.04 上安装 GitLab6.0

    安装环境: 操作系统:    Ubuntu 12.4 LTS 英文 数据库:        mysql5.5.32 web服务器: nginx1.4.1 首先, 添加git和nginx的ppa,并升级 ...

  8. Windows 7硬盘安装CentOS 6.4 双系统 (WIN7硬盘安装Linux(Fedora 16,CentOS 6.2,Ubuntu 12.04))

     WIN7下硬盘安装Linux(Fedora 16,CentOS 6.2.Ubuntu 12.04) 近期在看<鸟哥私房菜:基础学习篇>.认为非常不错,想要用U盘装个windows 7 和 ...

  9. How to install / setup /upgrade PHP 5.5.x on Ubuntu 12.04 LTS

    原文:http://www.dev-metal.com/how-to-setup-latest-version-of-php-5-5-on-ubuntu-12-04-lts/ 最近遇到了要在ubunt ...

随机推荐

  1. 1 Intellij IDEA 个人常用快捷方式

    个人常用快捷方式 alt+enter    万能键                                          inn if(xxx!=null) iter foreach ct ...

  2. 洛谷 P3367 【模板】并查集

    P3367 [模板]并查集 题目描述 如题,现在有一个并查集,你需要完成合并和查询操作. 输入输出格式 输入格式: 第一行包含两个整数N.M,表示共有N个元素和M个操作. 接下来M行,每行包含三个整数 ...

  3. sublime text 发现一个超好的编辑器

    垂直竖行多行编辑 鼠标中建拖动或 shift+右键拖动 切换文件 ctrl+p 输入文件名 可以拖动项目文件夹到sublime text左栏, 也可文件--打开文件夹--项目所在文件夹,但会在新窗口中 ...

  4. ubuntu下安装postgres

    PostgreSQL 是一款强大的,开源的,对象关系型数据库系统.它支持所有的主流操作系统,包括 Linux.Unix(AIX.BSD.HP-UX,SGI IRIX.Mac OS.Solaris.Tr ...

  5. python代码风格规范

    类注释模板: :: class AnotherClass: """ 类注释 """ def method(self, arg1, arg2, ...

  6. 求实现sql?

    id name pid1 曾祖父 02 祖父 13 父亲 24 儿子 35 孙子 4备注:用一条数据库语句来解决查询结果:name1 name2 name3曾祖父 祖父 父亲曾祖父 父亲 儿子曾祖父 ...

  7. R教程计划

    提起数据挖掘,似乎会有很多人望而却步,从生产规划到到规律分析,从生物医学到航天科技,到处都有数据挖掘工程师留下的影子. 通过对比SAS,SPSS,以及R,最终选定了R, 不为什么,免费且高效才是硬道理 ...

  8. Oracle多行记录合并处理

    1:效果如下图所示: 表T1: CREATE TABLE T1 ( WEEKWORKID VARCHAR2(20) , DD VARCHAR2(20) ) 表T2 CREATE TABLE T2 ( ...

  9. keil c51的内部RAM(idata)动态内存管理程序

    程序比较简单,但感觉比较有意思,个人认为有一定应用价值,希望大家有更好的思路和方法,互相促进. 程序的基本思路是:在CPU堆栈指针SP以上的RAM区域,通过把堆栈指针SP上移若干个字节,把空出的RAM ...

  10. windows完全支持C++11的轻量级编译器(官网MinGW和非官方的MinGW-builds)

    作者:网事如风链接:https://www.zhihu.com/question/22923569/answer/23172337来源:知乎著作权归作者所有,转载请联系作者获得授权. 完全支持C++1 ...