Install CUDA 6.0 on Ubuntu 14.04 LTS
Ubuntu 14.04 LTS is out, loads of new features have been added. Here are some procedures I followed to install CUDA 6.0 on my DELL Inspiron.
First of all, Ubuntu need to be installed successfully, and the
necessary libs are also need to installed:
sudo apt-get install build-essential gcc-4.4 g++-4.4 libxi-dev libxmu-dev freeglut3-dev
Things you need to have before start the installation
process:
1. Latest NVIDIA graphic driver
(NVIDIA-Linux-x86_64-331.49.run)
2. CUDA 6.0 installation file (cuda_6.0.37_linux_64.run)
Now let's install the graphic driver
If you’re not sure your system type, press Ctrl+Alt+T to open
terminal and run:
uname -m
1. Find out your graphics card model
Use the lspci command to find out the model of your graphics
card
$ lspci -vnn | grep -i VGA -A 12
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GT218 [GeForce 210] [10de:0a65] (rev a2) (prog-if 00 [VGA controller])
Subsystem: ASUSTeK Computer Inc. Device [1043:8416]
2. Find out the right driver version for your graphics card
Visit http://www.nvidia.com/Download/index.aspx
Fill in the details about your graphics card and system and then
click Search. On the next page, it should tell you the correct
driver version with a download link and additional information.
For the above GeForce 210 card, it showed 331.67 as the correct
driver which can be downloaded from the website. However we shall
install the drivers from ppa to make things easier.
3. Setup the xorg-edgers ppa
The xorg-edgers ppa provides the very latest nvidia drivers. Run
the following commands to set it up.
$ sudo add-apt-repository ppa:xorg-edgers/ppa -y
$ sudo apt-get update
Now the ppa is setup and the package information is also updated.
4. Install the driver
Either you can install the driver directly by installing a single package containing "nvidia" and the major version number ( 173, 304, 310, 313, 319, 331, 334 or 337).
# 331 driver
$ sudo apt-get install nvidia-331
# 334 driver
$ sudo apt-get install nvidia-334
# install the latest version
$ sudo apt-get install nvidia-current
Or you can enable it from the "Additional Drivers" section. This is different on different Ubuntu flavors.
5. Verify the installation
The last thing to do is verify that the nvidia drivers are loaded
and working. Run the lspci command again and this time the kernel
driver should show nvidia
$ lspci -vnn | grep -i VGA -A 12
Check the last line which says "kernel driver in use: nvidia". This
shows that nvidia drivers are now in action. Also check hardware
acceleration with the glxinfo command
$ glxinfo | grep OpenGL | grep renderer
OpenGL renderer string: GeForce 210/PCIe/SSE2
The OpenGL renderer string should be anything other than "MESA". Then it indicates that the hardware drivers are being used for hardware acceleration.
6. Nvidia settings tool
Nvidia would install a gui tool called "Nvidia X Server Settings" somewhere in the menu. It can also be launched from the command line using the command "nvidia-settings". The tool shows miscellaneous information about the graphics card and the monitor connected, and also allows to configure various options.
7. Removing the drivers
Incase anything goes wrong after the installation, like you are not
able to boot Ubuntu, then try removing the Nvidia drivers.
Boot into the recovery console from the grub menu and then issue
the following commands
# remount root file system as writable
$ mount -o remount,rw /
# remove all nvidia packages
$ apt-get purge nvidia*
Additional Notes
Many tutorials out there talk about blacklisting the nouveau driver. This is no longer necessary, since the nvidia driver would blacklist nouveau itself. This can be verified by checking the contents of nvidia driver files in the the modprobe.d directory.
$ grep 'nouveau' /etc/modprobe.d/* | grep nvidia
/etc/modprobe.d/nvidia-331_hybrid.conf:blacklist nouveau
/etc/modprobe.d/nvidia-331_hybrid.conf:blacklist lbm-nouveau
/etc/modprobe.d/nvidia-331_hybrid.conf:alias nouveau off
/etc/modprobe.d/nvidia-331_hybrid.conf:alias lbm-nouveau off
/etc/modprobe.d/nvidia-graphics-drivers.conf:blacklist nouveau
/etc/modprobe.d/nvidia-graphics-drivers.conf:blacklist lbm-nouveau
/etc/modprobe.d/nvidia-graphics-drivers.conf:alias nouveau off
/etc/modprobe.d/nvidia-graphics-drivers.conf:alias lbm-nouveau off
Note that the files "nvidia-331_hybrid.conf" and "nvidia-graphics-drivers.conf" have blacklisted nouveau.
To check information about the nvidia driver module, use the commands lsmod, modprobe and modinfo
# check that nvidia kernel module is loaded or not
$ lsmod | grep nvidia
nvidia 10699336 49
drm 302817 2 nvidia # find the real name of the nvidia module
$ modprobe -R nvidia
nvidia_331 # details about the nvidia_331 module
$ modinfo nvidia_331
filename: /lib/modules/3.13.0-24-generic/updates/dkms/nvidia_331.ko
alias: char-major-195-*
version: 331.67
supported: external
license: NVIDIA
.....
The kernel module file for the nvidia driver is located at "/lib/modules/3.13.0-24-generic/updates/dkms/nvidia_331.ko".
Note that it is a "dkms" module which means, its loaded dynamically. Due to this the grub screen, the Ubuntu/Kubuntu splash screens would have a low resolution since at that time the nvidia drivers are not in effect, and whatever resolution is available via the VESA extensions, are used.
8. Another Option
$ sudo apt-get update
$ sudo apt-get install nvidia-340
9. Install CUDA
nvidia-cuda-toolkit
git://github.com/harrism/sublimetext-cuda-cpp.git
Install CUDA 6.0 on Ubuntu 14.04 LTS的更多相关文章
- How to Install LibreOffice 6.0 on Ubuntu 16.04 LTS +
1. Add the LibreOffice 6.0 PPA The LibreOffice Fresh PPA is maintained by LibreOffice. It provides l ...
- Zabbix 3.0 for Ubuntu 14.04 LTS 安装
准备工作 apt-get install gettextapt-get install unzipapt-get install rar一.安装主程序 代码: 全选wget http://repo.z ...
- 【Android 系统开发】CyanogenMod 13.0 源码下载 编译 ROM 制作 ( 手机平台 : 小米4 | 编译平台 : Ubuntu 14.04 LTS 虚拟机)
分类: Android 系统开发(5) 作者同类文章X 版权声明:本文为博主原创文章 ...
- Install Cocos2d-x v3.3 on Ubuntu 14.04 & Ubuntu 14.10(转)
Install Cocos2d-x v3.3 on Ubuntu 14.04 & Ubuntu 14.10 1 get the source code sudo apt-get install ...
- Ubuntu 14.04 LTS 安装Docker
Docker官方是有很详细的安装文档(https://docs.docker.com/engine/installation/ubuntulinux/),这里做了一个Ubuntu 14.04 LTS中 ...
- 完整卸载 kubuntu-desktop from Ubuntu 14.04 LTS
系统 ubuntu 14.04 LTS 64Bit 目的:卸载kubuntu-desktop 方法一: sudo apt-get remove libkde3support4 k3b-data ntr ...
- Ubuntu 14.04 LTS 下 android 2.3.5 源码编译过程
Ubuntu 14.04 LTS 下 android 2.3.5 源码编译过程 在新的Ubuntu 64位系统下去编译早期的安卓源码是会出现很多问题的,因为64位系统在安装完成后,很多32位的兼容 ...
- Ubuntu 14.04 LTS 64bit 编译SDL的问题
http://blog.csdn.net/jhting/article/details/38523945 Ubuntu 14.04 LTS 64bit 编译SDL的问题 分类: C/C++2014-0 ...
- 【转】基于Ubuntu 14.04 LTS编译Android4.4.2源代码
原文网址:http://blog.csdn.net/gobitan/article/details/24367439 基于Ubuntu 14.04 LTS编译Android4.4.2源代码 ...
随机推荐
- JS合并多个数组去重算法
var arr1 = ['a','b']; var arr2 = ['a','c','d']; var arr3 = [1,'d',undefined,true,null]; //合并两个数组,去重 ...
- 2.5 Go语言基础之map
Go语言中提供的映射关系容器为map, Go中内置类型,其内部使用散列表(hash)实现,为引用类型. 无序键值对(key-value)集合,通过key(类似索引)快速检索数据 必须初始化才能使用. ...
- 《maven实战》笔记(5)----maven的版本
maven中构件和项目都有自己的版本,其中分为稳定的发布版本和不稳定的快照版本. 1.0.0.1.3-alpha-4和2.0就是稳定版本,而2.1-SNAPSHOT和2.1-20091214.2214 ...
- 001-多线程-JUC集合-框架概述
一.概述 1.1.java集合 java集合的架构,主体内容包括Collection集合和Map类:而Collection集合又可以划分为List(队列)和Set(集合). 1. List的实现类主要 ...
- 微信小程序的场景值scene
根据微信小程序返回给我们的场景值,我们可以根据不同的场景做出不同的处理,更加方便我们对使用场景的划分 当前支持的场景值有: :发现栏小程序主入口,“最近使用”列表(基础库2..4版本起将包含“我的小程 ...
- mac 查看隐藏文件及快速打开终端
查看隐藏文件: 1.在目标目录打开终端,然后输入ls -al命令快速查看目标目录下的文件(包括隐藏文件) 2.快捷键shift+cmmand+.(显示或者隐藏) 打开终端方式: 1.设置组合快捷键,单 ...
- EMC DS300B光纤交换机扩展光口license
一.通过EMC指定的网站激活license 激活license,生成激活码需要三个信息: 1.交换机WWN号:可在交换机铭牌上查看:(16位) 2.SN号码:AQA00***9*6(11位) 3.ke ...
- 【文章存档】Local Git 如何部署分支
又来存档文章了,链接 https://docs.azure.cn/zh-cn/articles/azure-operations-guide/app-service-web/aog-app-servi ...
- c++学习笔记_5
前言:本笔记所对应的课程为中国大学mooc中北京大学的程序设计与算法(三)C++面向对象程序设计,主要供自己复习使用,且本笔记建立在会使用c和java的基础上,只针对与c和java的不同来写 继承 继 ...
- Java面试(一)
2 什么是java虚拟机: 可以执行java字节码的虚拟机进程,而不需要为每一个平台单独重写或重新编译.虚拟机知道底层指令长度. 3 JDK,JRE区别: JRE是Java虚拟机,可以解释JAVA字节 ...