【安装方法】在 Ubuntu 11.10上安装NVIDIA CUDA驱动

 我们经常为GPU程序员提供技术支持,经常发现很多人不太会设置NVIDIA驱动。这个帖子就是为了帮助 Ubuntu 用户。
下面是在Ubuntu 桌面上安装NVIDIA驱动。
我们使用11.10版本。但对于其他版本的Ubuntu,步骤是一样。
下面是步骤:





下载最新的驱动版本 NVIDIA driver,确保下载具有执行权限.
chmod u+x NVIDIA-Linux-x86_64-285.05.33.run
Disable the default driver on the next start up.  In your favorite editor open /etc/modprobe.d/blacklist.conf.  I prefer nano:
sudo nano /etc/modprobe.d/blacklist.conf
Add to the end of this file the following lines:
blacklist nouveau
blacklist lbm-nouveau
alias nouveau off
alias lbm-nouveau off

This will make sure that the default NVIDIA driver (nouveau) will not be allowed to run on the next start up.
Reboot now.
Before the driver can be installed the X window server needs to be shutdown.  After rebooting go to the terminal. This can be done before or after logging in.
Ctrl + Alt + F3
You will have to login again even if you have already done so.
Now shutdown the X window server.
sudo service lightdm stop
Note: on different distributions such as Kubuntu there will be a different display manager.  Look in /etc/init.d/ for which program is installed.  It may be kdm or gdm.
Now that the window server is down and the nouveau driver is disabled the NVIDIA driver may now be installed. Navigate back to your download directory and run this command:
sudo ./NVIDIA-Linux-x86_64-285.05.33.run
Navigate through the text interface.  Once you are done and the driver is successfully installed you many now reactivate the window manager.
sudo service lightdm start
and if you wish to go back to your desktop
Ctrl + Alt + F7
现在确认NVIDIA驱动开始工作,可以找到你的GPU.
Open up the NVIDIA X server settings GUI either by searching for it or using this command
nvidia-settings
You should see in the list on the left all of your GPU(s) on the computer.
Alternatively you can view the information through the command line
nvidia-settings -q gpus
Success!

 

转载于:https://www.cnblogs.com/gpus/archive/2012/06/10/2544329.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值