Ubuntu Nvidia 显卡驱动安装

Ubuntu Nvidia 显卡驱动安装向导

  1. 使用组合键切换到命令行模式

    # ctrl + alt + f1
    
  2. 关闭图形化界面

    sudo service lightdm stop
    
  3. 下载显卡驱动

    wget http://files.deepcam.com/Public/Driver/Nvidia/NVIDIA-Linux-x86_64-384.111.run
    
  4. 安装显卡驱动

    sudo chmod +x NVIDIA-Linux-x86_64-384.111.run
    # 静默安装
    sudo ./NVIDIA-Linux-x86_64-384.111.run --accept-license --silent --no-nouveau-check --disable-nouveau --no-opengl-files 
    
  5. 启动图形化界面

    sudo service lightdm start
    
  6. 验证

    nvidia-smi
    
    Wed Jun 13 14:27:04 2018
    +-----------------------------------------------------------------------------+
    | NVIDIA-SMI 384.111                Driver Version: 384.111                   |
    |-------------------------------+----------------------+----------------------+
    | GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
    | Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
    |===============================+======================+======================|
    |   0  GeForce GTX 960     Off  | 00000000:01:00.0 Off |                  N/A |
    | N/A   51C    P0    N/A /  N/A |      0MiB /  4036MiB |      0%      Default |
    +-------------------------------+----------------------+----------------------+
    
    +-----------------------------------------------------------------------------+
    | Processes:                                                       GPU Memory |
    |  GPU       PID   Type   Process name                             Usage      |
    |=============================================================================|
    |  No running processes found                                                 |
    +-----------------------------------------------------------------------------+
    

你可能感兴趣的:(Linux)