ubuntu14.4安装gtx970显卡驱动的艰辛历程
1 说明:
本人机器说明,显卡gtx970,内存4G,原来系统是win7 64的.最近要学习机器学习的一些算法,需要安装ubuntu。不过安装环境这一条道路真的很曲折,来来回回弄了好久。以下说一下配置环境的过程中遇到的问题把。
2 机器上已经有集成显卡了,我想要使用硬盘再安装ubuntu14.4 64位系统,双系统。安装双系统的过程请看之前的随笔。windows系统安装ubuntu双系统但是安装过程中,如果独立显卡在机器上,总是在登陆界面出不来,然后就是黑屏,查资料显示这是因为bios设置了开机启动时会默认使用独立显卡作为显示输出。所以想要在显卡在机器上安装双系统,首先需要在开机启动时进入bios设置开机启动默认显示设备是集成显卡。具体的设置步骤请自行百度。好像是在外设那一栏吧。
3 安装独立显卡驱动的步骤:一种是在线安装;一种是离线安装,需要你自己现在对应的安装包
1)彻底卸载已安装的显卡驱动程序,执行以下步骤
sudo apt-get remove --purge nvidia-*
sudo apt-get install ubuntu-desktop
sudo rm /etc/X11/xorg.conf
echo 'nouveau' | sudo tee -a /etc/modules
若之前未安装过Nvidia显卡驱动程序,执行这些命令可能会提示找不到目录或文件,这个可以忽略。
2)重启电脑,在登录页面按Ctrl+Alt+F1进入tty, 关闭lightdm。
sudo service lightdm stop
3)添加驱动源
sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get update
4)重新安装驱动
I)在线版:安装340版驱动:sudo apt-get install nvidia-340
II)离线版:sudo sh NVIDIA-Linux-x86_64-367.57.run
安装过程中按提示操作就可以了,一般选择yes或ok就好。
5)安装结束之后,使用以下命令重新启动电脑:
sudo reboot 如果已经能正常进入桌面则不用理会后面的步骤 6)这时进入系统后,可能分辨率不对,执行下列命令查看现在采用的驱动
prime-select query
如果显示采用的是Nvidia,则进行下一步;否则执行以下命令来配置驱动:
sudo update-alternatives --config i386-linux-gnu_gl_conf
在显示的显卡列表中选择安装的Nvidia:
sudo prime-select nvidia
使用以下命令更新系统驱动
sudo ldconfig -n
sudo update-initramfs -u
重新启动电脑,桌面显示正常了,可以通过prime-select query来查看当前使用的显卡是否是Nvidia。
4 安装过程中出现了error
ERROR: Unable to load the kernel module 'nvidia.ko'. This happens most
frequently when this kernel module was built against the wrong or
improperly configured kernel sources, with a version of gcc that differs
from the one used to build the target kernel, or if a driver such as
rivafb/nvidiafb is present and prevents the NVIDIA kernel module from
obtaining ownership of the NVIDIA graphics device(s), or NVIDIA GPU
installed in this system is not supported by this NVIDIA Linux graphics
driver release.
找到老外的解决办法
1) Download Newest Nvidia drivers from their website
2) Open module blacklist as admin: (i use gedit for text file editing)
sudo gedit /etc/modprobe.d/blacklist.conf
3) Add these lines and save:
blacklist vga16fb
blacklist nouveau
blacklist rivafb
blacklist nvidiafb
blacklist rivatv
4) Uninstall any previously installed Nvidia drivers:
sudo apt-get --purge remove nvidia-*
5) Reboot your computer
6) When an error message pops up saying that Ubuntu cannot load Nvidia drivers, choose Exit to terminal (Exit to console)
7) Login and cd to the directory where you saved your file
8) Install drivers
sudo sh NVIDIA-Linux-x86_64-195.36.24-pkg2.run
9) Start GDM
sudo service gdm start
5 如果是双显卡的话可能不能成功安装,此时的解决办法安装Bumblebee。参考官方文档
出现的问题就是一直在登录界面进不去 。此时需要查看上面的官方文档的处理办法。
ubuntu14.4安装gtx970显卡驱动的艰辛历程的更多相关文章
- Ubuntu14.04安装AMD显卡驱动双屏显示器完全解决方案
网上有很多方法,但是针对AMD显卡的方案不多,所以笔者今天想写一篇关于AMD显卡的教程. 首先,进入这个网址下载一些东东:http://support.amd.com/zh-cn/download/d ...
- Ubuntu14.04(64位)安装ATI_Radeon_R7_M265显卡驱动
电脑型号:Dell inspiron 14-5447 笔记本 显卡配置:集成显卡Intel核心显卡,Cpu是i5-4210U;独立显卡ATI_Radeon_R7_M265 网上关于ATI/Intel双 ...
- 【Linux开发】【CUDA开发】Ubuntu上安装NVIDIA显卡驱动
机型为戴尔Vostro3900 显卡型号为GTX 745 对于Nvidia显卡的驱动,如今很多Linux发行版会默认使用名为nouveau的驱动程序.Nouveau是由第三方为Nvidia开发的一 ...
- ubuntu13.04 Thinkpad W520安装nvidia显卡驱动
Ubuntu13.04 amd64 Thinkpad W520安装Nvidia显卡驱动 曾经在ubuntu11.10上成功安装Nvidia显卡驱动.但是自从机器(Thinkpad W520)更新到13 ...
- Ubuntu下安装nvidia显卡驱动
layout: post title: Ubuntu下安装nvidia显卡驱动 date: 2015-10-02 17:19:06 categories: 常用命令 tags: 显卡 驱动 最近一直在 ...
- Thinkpad W520 + Ubuntu 12.04LTS, 13.10, 14.04LTS安装Nvidia显卡驱动设置
Thinkpad W520 + Ubuntu 12.04LTS, 13.10, 14.04LTS安装Nvidia显卡驱动设置 http://henzhai.com/tech/2012/07/w520- ...
- Linux 桌面玩家指南:11. 在同一个硬盘上安装多个 Linux 发行版以及为 Linux 安装 Nvidia 显卡驱动
特别说明:要在我的随笔后写评论的小伙伴们请注意了,我的博客开启了 MathJax 数学公式支持,MathJax 使用$标记数学公式的开始和结束.如果某条评论中出现了两个$,MathJax 会将两个$之 ...
- Ubuntu中安装NVIDIA显卡驱动
1.参考: https://blog.csdn.net/xunan003/article/details/81665835 https://www.cnblogs.com/luofeel/p/8654 ...
- Ubuntu16.04安装Nvidia显卡驱动+Cuda8.0+Cudnn6.0
一.安装Nvidia显卡驱动(gtx1050ti) 参考链接:Ubuntu16.04.2 LTS 64bit系统装机记录中的显卡驱动安装部分. 二.安装Cuda8.0 1.确定自己的系统信息,以Ubu ...
随机推荐
- ComboxEdit 重要属性
DisplayMember="ComboItemName" ValueMember="ComboItemCode"IsTextEditable="Tr ...
- Design Your Own Protocol In Five Minutes
https://mayaposch.wordpress.com/2011/10/03/design-your-own-protocol-in-five-minutes ---------------- ...
- Angular6
Structural Directives https://angular.io/guide/structural-directives#template-input-variable There a ...
- GeSHi——通用语法高亮显示
Examples Category Examples Views ActionScript 2 46173 Ada 3 27881 Apache configuration 2 40029 Apple ...
- [Webpack] Externalize Dependencies to be Loaded via CDN with webpack
We can separate our custom application code from the common libraries we leverage, such as React and ...
- Inside GDALAllRegister之四: 跳过driver
这个函数很短小: /** * \brief This method unload undesirable drivers. * * All drivers specified in the space ...
- 灰度图像二值化-----c++实现
前天闲着没事干,就写了写BMP图像处理,感觉大家还比较感兴趣..所以现在没事,继续更新..这次简单的写了灰度图像二值化..这是什么概念呢? 图像的二值化的基本原理 图像的二值化处理就是将图像上的点的灰 ...
- 使用GCD创建单例
+ (KKTextHUB *)sharedTextHUB { static KKTextHUB *sharedHub = nil; static dispatch_once_t onceToken; ...
- Linux中-POSIX 线程详解
一种支持内存共享的简捷工具 摘自https://www.ibm.com/developerworks/cn/linux/thread/posix_thread1/ 线程是有趣的 了解如何正确运用线 ...
- MySQL中int(5) 中的5代表什么意思?
对于INT型,MySQL支持指定显示宽度例如:int(5):表示如果数值宽度小于5位,则填满宽度,保证总宽度为5位.默认为int(11),配合zerofill可以看到效果. DROP TABLE IF ...