这里分类和汇总了欣宸的全部原创(含配套源码):https://github.com/zq2599/blog_demos
sudo apt-get install openssh-server
sudo service ssh start
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bk
-修改/etc/apt/sources.list为以下内容:
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
sudo apt-get remove --purge nvidia*
sudo vi /etc/modprobe.d/blacklist-nouveau.conf
blacklist nouveau
options nouveau modeset=0
sudo update-initramfs -u
will@ubuntu-hp:~$ lsmod | grep nouveau
nouveau 1712128 4
mxm_wmi 16384 1 nouveau
i2c_algo_bit 16384 1 nouveau
ttm 106496 1 nouveau
drm_kms_helper 172032 1 nouveau
drm 401408 7 drm_kms_helper,ttm,nouveau
wmi 24576 4 hp_wmi,wmi_bmof,mxm_wmi,nouveau
video 45056 1 nouveau
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
ubuntu-drivers devices
sudo apt-get install nvidia-430 nvidia-settings nvidia-prime
sudo apt install nvidia-cuda-toolkit
will@ubuntu-hp:~$ nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2015 NVIDIA Corporation
Built on Tue_Aug_11_14:27:32_CDT_2015
Cuda compilation tools, release 7.5, V7.5.17
will@ubuntu-hp:~$ nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
```**加粗样式** - 执行<font color="blue">ls /usr/src/</font>,会看到名为nvidia-xxx的文件夹,如下图红框,我这里是<font color="red">nvidia-430.64</font>: ![在这里插入图片描述](http://img.saoniuhuo.com/images/202111/33921637587946918.jpg) - 执行命令: ```shell
sudo dkms install -m nvidia -v 430.64
sudo apt-get install linux-source
sudo apt-get install linux-headers-4.4.0-210-generic
版权说明 : 本文为转载文章, 版权归原作者所有 版权申明
原文链接 : https://blog.csdn.net/boling_cavalry/article/details/120633388
内容来源于网络,如有侵权,请联系作者删除!