Ubuntu16.04 安装Nvidia显卡

参考:这个哥们写的最好

sudo service lightdm stop
sudo apt-get remove --purge nvidia*
sudo vim /etc/modprobe.d/blacklist.conf

blacklist vga16fb
blacklist nouveau
blacklist rivafb
blacklist nvidiafb
blacklist rivatv

sudo gedit /etc/modprobe.d/blacklist-nouveau.conf 
#添加数据
blacklist nouveau
blacklist lbm-nouveau
options nouveau modeset=0
alias nouveau off
alias lbm-nouveau off
sudo update-initramfs -u

sudo chmod +x NVIDIA-Linux-x86_64-390.77.run
sudo ./NVIDIA-Linux-x86_64-390.77.run

安装过程选项(步骤有很多 给出必要提示 其他选项一般都是选择OK)
The distribution-provided pre-install script failed! Are you sure you want to continue? 选择 yes 继续。
Would you like to register the kernel module souces with DKMS? This will allow DKMS to automatically build a new module, if you install a different kernel later? 选择 No 继续。
Would you like to run the nvidia-xconfigutility to automatically update your x configuration so that the NVIDIA x driver will be used when you restart x? Any pre-existing x confile will be backed up. 选择 Yes 继续
modprobe nvidia
nvidia-smi

Leave a Reply

Your email address will not be published. Required fields are marked *