1. 安装Ubuntu16.04的系统,官网下镜像制作系统盘即可
2. 更新Ubuntu16.04源,用的是中科大的源:
cd /etc/apt/
sudo cp sources.list sources.list.bak
sudo vi sources.list
把下面的这些源添加到source.list文件头部(第二行):
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
更新源和更新已安装的包:
sudo apt-get update
sudo apt-get upgrade
如何在update或是upgrade出现错误是,就循环交替使用这两个命令,直到没有问题。
3. 安装TITAN X显卡驱动
sudo add-apt-repository ppa:graphics-drivers/ppa
第一次运行出现如下的警告:
Fresh drivers from upstream, currently shipping Nvidia.
## Current Status
We currently recommend: nvidia−361 nvidia-361 , Nvidia’s current long lived branch.
For GeForce 8 and 9 series GPUs use nvidia−340nvidia-340
For GeForce 6 and 7 series GPUs use nvidia−304nvidia-304
## What we’re working on right now:
– Normal driver updates– Investigating how to bring this goodness to distro on a cadence.
## WARNINGS:
This PPA is currently in testing, you should be experienced with packaging before you dive in here. Give us a few days to sort out the kinks.
Volunteers welcome! See also: https://github.com/mamarley/nvidia-graphics-drivers/
http://www.ubuntu.com/download/desktop/contribute
更多信息: https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa
按回车继续或者 Ctrl+c 取消添加
回车后继续:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install nvidia-367
sudo apt-get install mesa-common-dev
sudo apt-get install freeglut3-dev
如果在上述命令中出现错误就循环使用sudo apt-get update和sudo apt-get upgrade
最后重启。
参考链接:http://www.linuxidc.com/Linux/2017-01/139319.htm,http://blog.csdn.net/jzrita/article/details/72887677
本教程并没有先手动从NVIDIA的官网上下载相应的显卡驱动。有的教程是先从官网下载显卡驱动,然后关x服务,然后再安装显卡,但我在这样尝试的时候并未成功:关闭x服务后,按ctrl+alt+F1不能唤出图像界面,因此也就无法进行下面的步骤了。
相关链接:https://segmentfault.com/a/1190000008234390,http://www.linuxidc.com/Linux/2014-04/100690.htm,