【安装方法】在 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!

 

posted @ 2012-06-10 22:06  gpus  阅读(631)  评论(0编辑  收藏  举报
[url=http://weibo.com/2640510102?s=6uyXnP][img]http://service.t.sina.com.cn/widget/qmd/2640510102/1522e446/1.png[/img][/url]