Nvidia CUDA 6 Installed In Ubuntu 12.04
环境: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-devlibxi-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
|
|
禁止开源驱动nouveau的开机加载
|
1
|
sudo gedit /etc/modprobe.d/blacklist.conf |
在文件后添加如下内容保存后重启
|
1
2
|
blacklist nouveauoptions 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:$PATHexport 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的更多相关文章
- Ubuntu 12.04安装Adobe Reader
原本从Adobe 官方网站下载了 Adobe Reader, 是个rpm包,先用agt-get 装了rpm(sudo apt-get install rpm), 一安装(rpm -ivh AdobeR ...
- Ubuntu 12.04 安装MySQL
本文地址:http://www.cnblogs.com/yhLinux/p/4012689.html 本文适合新手入门. 本文是对 Ubuntu 12.04 环境下安装 MySQL 的记录,通过这两天 ...
- Ubuntu 12.04下GAMIT10.40安装说明
转载于:http://www.itxuexiwang.com/a/liunxjishu/2016/0225/164.html?1456481297 Ubuntu 12.04下GAMIT10.40安装步 ...
- GAMIT 10.50在Ubuntu 12.04系统下的安装
转载于:http://www.itxuexiwang.com/a/liunxjishu/2016/0225/162.html?1456480908 摘要:GAMIT/GLOBK是一套安装于Unix/L ...
- Ubuntu 12.04+DarwinStreamingSrvr6.0.3 架设流媒体服务器
1.安装Ubuntu 12.04操作系统,网上很多教程.. 2.打开终端,下载darwin源代码DarwinStreamingSrvr6.0.3-Source.tar,补丁patch dss-6.0. ...
- Ubuntu 12.04 SSH 安装
By default Ubuntu Desktop OS comes with ssh clientpackage. It does not include ssh server package wh ...
- 在 Ubuntu 12.04 上安装 GitLab6.0
安装环境: 操作系统: Ubuntu 12.4 LTS 英文 数据库: mysql5.5.32 web服务器: nginx1.4.1 首先, 添加git和nginx的ppa,并升级 ...
- 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 和 ...
- 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 ...
随机推荐
- JedisPool操作
Jedis 使用 commons-pool 完成池化实现. 先做个配置文件(properties文件): #最大分配的对象数 redis.pool.maxActive=1024 #最大能够保持idel ...
- 关于bootStrapdialog 学习心得
在用play这个框架做项目的时候,我们的背景以及一些插件用的都是 bootStrap3.0的JS以及CSS 这次用到的bootStrapdialog 所需要演示的效果 就是 在一个网页系统里, 当你 ...
- javascript获取host
document.writeln(location.protocol); document.writeln(location.origin); //包括端口号 document.writeln(loc ...
- ecshop的广告链接地址打开有问题修改affiche.php为普通链接
相信很多用过ECSHOP的站长都知道,ECSHOP的广告链接地址形式为“affiche.php?ad_id=1&uri=http%3A%2F%2Fwww.ecmoban.com” 它中间用 a ...
- unable to find valid certification path to requested target
Error : javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path bu ...
- Swift UI
概述 Apple近日发布了Swift编程语言,Swift是供iOS和OS X应用编程的新编程语言.相信很多开发者都在学习这门新语言. 废话不多说,下面我就来学习使用Swift创建一个简单的UI应用 ...
- #define XBYTE ((unsigned char volatile xdata *) 0)
今天在看别人的CAN总线程序的时候,突然发现了这么一句宏定义:#define XBYTE ((unsigned char volatile xdata *) 0),以前都没注意到过.后来查了一下,发现 ...
- (摘) MDI登陆问题
MDI编程中需要验证用户身份,那么登陆窗口就需要在验证密码后进行相关的隐藏处理. (1)隐藏登陆窗口(登陆窗体作为启动) 登陆按钮事件:this.Hide();//隐藏登陆窗口MDI_Name M = ...
- POJ 2986 A Triangle and a Circle
题意:给定一个三角形,以及一个圆的圆心坐标和半径,求圆和三角形的相交面积. 思路: 用三角剖分,三角形上每个线段都变成这个线段与圆心的三角形,然后算出每个三角形与圆的相交面积,然后根据有向面积的正负累 ...
- 【剑指offer】面试题35:第一个只出现一次的字符
题目: 在一个字符串(1<=字符串长度<=10000,全部由字母组成)中找到第一个只出现一次的字符的位置.若为空串,返回-1.(书上是要求返回字符) 思路: 第一遍扫描保存下每个字符出现的 ...