十堰易度网络传媒有限公司

【翻译】ubuntu安装N卡346.35驱动教程 时间:2016-07-22   作者:易度网络  来源:原创  栏目:行业知识

 


包子曰:学习linux过程中遇到的英文单词和文章太多,随手翻译一篇关于Ubuntu上最新版本N卡驱动安装的技术文章,原文地址:
http://ubuntuhandbook.org/index.php/2015/01/install-nvidia-346-35-ubuntu-1404/ 纯手工翻译,技术不佳,有翻译不到的地方请各位斧正。 
 
How to Install NVIDIA 346.35 in Ubuntu

 

怎样在Ubuntu上安装NVIDIA346.35

 

 

NVIDIA 346.35, the first stable release of the 346.xx series driver, has been released with new features, improvements, and numerous bug fixes.

NVIDIA346.35是第一个稳定发布的346.xx系列驱动,具有很多新特点、新的改进,并修复了很多漏洞。

Instead of NVIDIA 340.xx series, the new driver becomes the Latest Long Lived Branch version of NVIDIA Linux drivers.

它替换NVIDIA 340.xx系列成为了N卡linux驱动里存在时间最长的分支版本。

Before the xorg-edgers PPA updates for this driver, you can download & install the official NVIDIA package by following below steps:

xorg-edgers PPA升级此驱动之前,你可以按照以下步骤下载安装NVIDIA离线包:

1. Select download the official installer from links below:

1.通过下面的链接选择下载离线安装程序:

32-bit Linux | 64-bit Linux | 32-bit ARM Linux

32-bit or 64-bit32位还是64位?

Check your OS type by going to top-right corner shutdown menu (gear button) and clicking ‘About This Computer’

在你系统右上角关机目录找到并点击“关于此电脑”来检查你的系统的类型。

2. To be able to install the new driver, you have to remove the previous driver by running below command in a terminal window (Open terminal from the Dash or by pressing Ctrl+Alt+T on keyboard):

2.为了安装新的驱动,你必须在终端里运行下面的命令来移出老版本的驱动(从dash上或者在键盘上按Ctrl+Alt+T来打开终端)

sudo apt-get remove nvidia* && sudo apt-get autoremove

3. You should also blacklist the open source nouveau driver by running below command to edit the config file:

你还需要运行下面的命令来编辑配置文件把开源的nouveau驱动加入黑名单。

gksudo gedit /etc/modprobe.d/blacklist-nouveau.conf
 

Add below lines to the end and click save.

在最后一行的末尾加入并且点击保存。

blacklist nouveau
blacklist lbm-nouveau
options nouveau modeset=0
alias nouveau off
alias lbm-nouveau off
  

4. You can also disable the Kernel Nouveau by running below commands one by one:

你也可以一条一条的运行下面的命令来禁止nouveau的核心。

echo options nouveau modeset=0 | sudo tee -a /etc/modprobe.d/nouveau-kms.conf
sudo update-initramfs -u
 

5. Finally reboot your computer and when you’re at the login prompt press Ctrl+Alt+F1(or F2 ~ F6) to switch to command console. Login with your username and password.

最后重启你的电脑,然后在登陆的时候快速的按Ctrl+Alt+F1或者F2到F6转换到命令控制台。用你的账号密码登陆。

6. When you’re at the black & white text console, the graphics session is still there and you can switch back by pressing Ctrl+Alt+F7. You have to kill the graphics session by running below command:

当你在黑白的文本控制台下按ctrl+alt+f7仍然可以切换回图形会话。你必须运行下面的命令来结束图形会话

sudo stop lightdm

 

Replace lightdm with gdmmdm, or kdm for GNOME, Linux Mint, or KUbuntu.

GNOME Linux Mint 或者 KUbuntu下,你需要用gdm、mdm或者kdm来替换lightdm

7. At last give permission to the downloaded package and run it:

最后,给你下载的安装包权限并且运行它:

cd ~/Downloads && chmod +x NVIDIA-Linux-*-346.35.run && sudo sh NVIDIA-Linux-*-346.35.run

 

Follow the on screen prompts and when everything’s done reboot your computer. In next boot after log in, run sudo nvidia-xconfig to save your new nvidia configuration.

根据屏幕提示进行,当所有的都完成后重启你的电脑。在下一次启动登陆后,运行sudo nvidia-xconfig来保存你的新n卡设置。

(Optional) To remove the driver, re-do step 5 & 6 and run:

重复第五第六步并运行下面的命令来卸载驱动:

cd ~/Downloads && sudo sh NVIDIA-Linux-*-346.35.run --uninstall

 

Also undo the step 3 & 4 by removing the

还需要删除下面的内容来撤销第三第四步。

cd /etc/modprobe.d&& sudo rm blacklist-nouveau.conf nouveau-kms.conf && sudo update-initramfs -u

 

Good luck!祝你好运!