服务器显卡驱动安装
主要参考的安装方式:以下操作在主机中,并非使用远程登录方式,未验证远程登录方式是否可行
需要:
显卡驱动的 *.run 文件
显卡驱动安装第一种方法:https://askubuntu.com/questions/149206/how-to-install-nvidia-run
As the error states, you are still running an X server. This error occurs when you try to install the Nvidia .run files while logged in.
Make sure you are logged out.Kill X server
- Hit
Ctrl+Alt+F1
and login using your credentials.
* kill your current X server session by typing
sudo service lightdm stop
orsudo lightdm stop
- Enter runlevel 3 by typing
sudo init 3
Install your *.run file.
you change to the directory where you have downloaded the file by typing for instance cd Downloads. If it is in another directory, go there. Check if you see the file when you type ls NVIDIA*
Make the file executable with chmod +x ./your-nvidia-file.run
Execute the file with
sudo ./your-nvidia-file.run
You might be required to reboot when the installation finishes. If not, run sudo service lightdm start or sudo start lightdm to start your X server again
第一种方法不行后的方法:https://askubuntu.com/questions/698730/installing-nvidia-driver-on-kubuntu-15-10x64-the-distribution-provided-pre-inst
The distribution-provided pre-install script failed! Continue installation anyway
- 由于已经杀了X-server ,还是不行的话,出现上述报错,这时候使用第二种方法,这种方法使用前需要先将以前的NVIDIA相关驱动删除
sudo apt-get purge nvidia*
- 对系统进行升级,并找到最新的NVIDIA驱动,通过:
sudo apt-get update
apt-cache search nvidia binary
- 依照版本,选择最新的驱动,依情况而定,并安装:
sudo apt-get install nvidia-375
- 最后,重启即可:
sudo reboot