Ubuntu安装显卡驱动

做一下记录吧…估计要经常用到,因为实验室越南姐姐说给她说一下如何安装的,写了英文版,不要喷我啊啊,我只是记录啊啊

1. lshw -numeric -C display
check the gpu’s type
2. download driver (.run file)
https://www.geforce.cn/drivers
3. If you have the previous driver, you should
delete the previous driver, else, ignore it.

sudo apt-get
remove –purge nvidia
*
4. Disable nouveau
(ref: https://linuxconfig.org/how-to-disable-nouveau-nvidia-driver-on-ubuntu-18-04-bionic-beaver-linux)
sudo bash -c “echo blacklist nouveau > /etc/modprobe.d/blacklist-nvidia-nouveau.conf”
sudo bash -c “echo options nouveau modeset=0 >>
/etc/modprobe.d/blacklist-nvidia-nouveau.conf”

$ cat/etc/modprobe.d/blacklist-nvidia-nouveau.conf
blacklist
nouveau

sudo update-initramfs –u
sudo reboot
5. Check nouveau run or not
lsmod
| grep nouveau
# not output is right
6. sudo telinit 3 #stop Visual interface
7. cd the .run directory
8. chmod a+x NVIDIA-Linux-x86_64-390.48.run

9. sudo /NVIDIA-Linux-x86_64-390.48.run
(or sudo sh ./NVIDIA-Linux-x86_64-390.48.run --no-opengl-files
)

reference:
https://blog.csdn.net/wf19930209/article/details/81877822

你可能感兴趣的:(linux,python)