1.

sudo apt-get install libglapi-mesa

2.

sudo apt-get install freeglut3-dev build-essential libx11-dev libxmu-dev libxi-dev libgl1-mesa-glx libglu1-mesa libglu1-mesa-dev
sudo find /usr -name libglut\*
显示结果:
/usr/lib/x86_64-linux-gnu/libglut.so.3
/usr/lib/x86_64-linux-gnu/libglut.so.3.9.0
/usr/lib/x86_64-linux-gnu/libglut.a
/usr/lib/x86_64-linux-gnu/libglut.so
解决方法:
sudo ln -s /usr/lib/x86_64-linux-gnu/libglut.so.3 /usr/lib/libglut.so  

3.

sudo vi /etc/modprobe.d/blacklist.conf

#在最后添加

blacklist amd76x_edacblacklist vga16fbblacklist nouveaublacklist rivafbblacklist nvidiafbblacklist rivatv

4.

sudo apt-get remove --purge nvidia*

5.

sudo gedit  ~/.profile

#for 32 bit systems -
export PATH=$PATH:/usr/local/cuda-5.0/bin
export LD_LIBRARY_PATH=/usr/local/cuda-5.0/lib
#for 64 bit systems -
export PATH=$PATH:/usr/local/cuda-5.0/bin
export LD_LIBRARY_PATH=/usr/local/cuda-5.0/lib64:/lib 

6.

sudo gedit  /etc/ld.so.conf

add lines(for 64)

/usr/local/cuda-5.0/lib64
/lib

add lines(for 32)

/usr/local/cuda-5.0/lib
/lib

7.

sudo service lightdm stop

sudo chmod +x cuda*.run
sudo ./cuda*.run

8. reboot

9.
sudo service lightdm stop

sudo ./cuda*.run

10.

sudo service lightdm start

http://superuser.com/questions/484991/nvidia-graphics-driver-in-ubuntu-12-04

11.

When you get here

run pure cuda program is OK, but when it comes to openGL-related programs (e.g. marchingCubes, ....), problems arises. FAILED

use Intel onchipe OpenGL instead

http://superuser.com/questions/484991/nvidia-graphics-driver-in-ubuntu-12-04

Alternative

WORST CASE ALTERNATIVE: FOR OPENGL ONLY (WITHOUT CUDA)

Try the following on Ubuntu 12.04 [Worst case if nothing works with NVIDIA GPU, with this you can use OpenGL with Intel onchip display card if not for NVIDIA's CUDA Kit]

glxinfo

If it says something like

name of display: :0.0
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".

http://superuser.com/questions/484991/nvidia-graphics-driver-in-ubuntu-12-04

do: sudo apt-get purge nvidia*
not influenced
11.1 reboot
still not influenced .e.g. vectorAdd

Then proceed

sudo apt-get purge nvidia*
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.orig
sudo rm /etc/X11/xorg.conf

For 32 bit Reinstall xorg completely

sudo apt-get install --reinstall xserver-xorg-core libgl1-mesa-glx:i386 libgl1-mesa-dri:i386

For 64 bit Reinstall xorg completely

sudo apt-get install --reinstall xserver-xorg-core libgl1-mesa-glx:amd64 libgl1-mesa-dri:amd64

The OS info (32 bit/64 bit) can be verified using uname -a

Then Reconfigure Xorg

sudo dpkg-reconfigure xserver-xorg
sudo reboot

On reboot run glxinfo again and verify that those values

name of display: :0
display: :0  screen: 0
direct rendering: Yes

Appendix:

Ubuntu sources:

deb http://debian.ustc.edu.cn/ubuntu/ precise main restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ precise-backports restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ precise-security main restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ precise main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ precise-security main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse

install cuda5 on ubuntu12.04相关推荐

  1. Ubuntu12.04下配置Eclipse+PyDev

    开发平台:Ubuntu12.04 IDE:Eclipse3.7.2 python版本:python3.4.4 搭建Eclipse+PyDev的开发环境,在网上找了一些教程,有一些错误,尝试了许久,也走 ...

  2. Ubuntu12.04 cuda5.5安装

    预处理步骤: 首先确认你的电脑装了一个可以运行CUDA程序的GPU. lspci | grep -i nvidia 另外要确认linux版本和gcc版本 具体参考链接:http://docs.nvid ...

  3. Ubuntu12.04安装配置Theano

    上次写了一个关于DL的开篇内容,本来说是要继续跟进的,后来教研室里面出了一些事情,加上写论文.和隔壁教研室做实验,就一直拖到现在.早就让小K配置环境研究研究Theano,这货和我一样也发拖延症了,理由 ...

  4. ubuntu12.04安装node.js详细步骤

    2019独角兽企业重金招聘Python工程师标准>>> 1.node需要运行在2.6或者2.7版本的python,ubuntu12.04自带的python是2.7所以就不用管了,也可 ...

  5. Ubuntu12.04版本安装arm-linux-gcc 4.3.3

    由于Ubuntu12.04是64位系统,如果安装4.3.3版本的arm gcc,系统将会找到,所以要让其可用,就要安装ia32-lib包,以便让系统使用32bit软件: apt-get install ...

  6. (转)Ubuntu12.04上NFS Server安装使用过程

    原文链接:Ubuntu12.04上NFS Server安装使用过程 实现步骤: 1.服务器端:sudo apt-get install portmap 2.服务器端:sudo apt-get inst ...

  7. 【转】Win7+Ubuntu12.04.1硬盘安装错误及解决方案----不错

    原文网址:http://blog.csdn.net/ys_073/article/details/8310115 前言: 说起来了,为了在Win7上进行硬盘安装Ubuntu浪费了整整一个晚上的时间.装 ...

  8. Ubuntu12.04 安装MySQL简单步骤

    2019独角兽企业重金招聘Python工程师标准>>> 一.安装mysql 在ubuntu12.04 中只要执行两条命令即可: sudo apt-get install mysql- ...

  9. ubuntu12.04上安装flashcahce

    os:ubuntu12.04 LTS kernel:3.5.0.26-generic 1.下载flashcache https://github.com/facebook/flashcache/ 2. ...

最新文章

  1. iOS UTI(统一类型标识)
  2. 截取年月日在hana中怎么写_写完作业就不学了怎么办?焦虑中的家长不妨先低头看看...
  3. android java.nio.charset.MalformedInputException: Input length = 1
  4. web---Tomca安装,Server安装,Tomcat配置
  5. 实现对文本的简单one-hot编码
  6. Oracle APEX 系列文章7:Oracle APEX 18.1 新特性
  7. Transifex与GTK文档翻译, Linux镜像文件, 外设接口杂谈
  8. 推荐系统知识梳理——WideDeep
  9. 设计模式-行为型模式-责任链模式
  10. .NET 设计规范--.NET约定、惯用法与模式--5.成员设计
  11. mysql 收藏表如何建立_代码收藏系列--mysql创建数据库、数据表、函数、存储过程命令...
  12. (JS基础)操作表单
  13. HashMap分拣存储示例
  14. webservice的wsdl文件怎么生成
  15. 包含WebRoot的Web工程在Eclipse中的搭建和配置
  16. yahoo邮箱停止服务器,国内@yahoo.com邮箱用户不能登录的几个解决方案
  17. Python批量爬取堆糖图片
  18. WPS 表格 身份证 提取生日 判断性别 计算年龄 15位身份证与18位身份证转换 18位身份证号校验
  19. 洛谷 P4218 [CTSC2010]珠宝商 后缀自动机+点分治
  20. c++逆天改命进阶--AVLTree

热门文章

  1. 众人帮蚂蚁帮任务平台修复版源码
  2. 简约自适应APP下载页源码
  3. 解决IDEA中的Terminal工具无法识别git或者npm等命令
  4. layui表单验证方式大全
  5. 应用程序池 应用池即应用程序池:
  6. 提交表单到弹出窗口 Submit a form into a popup
  7. Android模拟器genymotion的安装和使用
  8. 在Windows环境下用Editplus打造一个Python编辑调试环境
  9. apt-get与dpkg常用命令
  10. 《剑指Offer》 滑动窗口的最大值