zoukankan      html  css  js  c++  java
  • 【安装方法】在 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!

     

  • 相关阅读:
    CentOS 7.4 发布下载,安全稳定的Linux发行版
    PHP缓存机制详解
    用FastDFS一步步搭建文件管理系统
    linux中mv命令使用详解
    linux grep命令详解
    音频放大器的设计
    C#学习笔记(九)——集合、比较和转换
    Kinect学习笔记(五)——更专业的深度图
    C#学习笔记(八)——定义类的成员
    kinect学习笔记(四)——各种数据流
  • 原文地址:https://www.cnblogs.com/gpus/p/2544329.html
Copyright © 2011-2022 走看看