Install NVIDIA Driver for Linux on CentOS 7 And Solve X Desktop Problem
Nov 04, 2020 | 1016 views
Follow this guide: Install proper drivers for Graphic cards
Important: Issue caused X server when install nvidia driver
" Most important, what resolved the issue, is at the bottom of that first URL: Use the correct nvidia_driver_xx.run file, INCLUDING the flag --no-opengl-files (and select no when prompted whether you want an nvidia generated xorg.conf file)"
Installing Problem "You appear to be running an X server; please exit X before installing." and its solution
## stop gdm service and init 3
261 systemctl status gdm
262 systemctl stop gdm
263 init 3
264 sh NVIDIA-Linux-x86_64-390.116.run
265 nvidia-smi
Reference:
- "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."
Regenerate nividia driver
yum install dkms
# 418.87.00 driver version is found in /usr/src/nvidia-
dkms install -m nvidia -v 418.87.00
- Lost nvidia driver module and recompile from source: refer to for ubuntu and for centos
Problem: X desktop has problem
Solution:
- Enter BIOS setting and set OnBoard in Miscellenous Configuration
- DO NOT USE nvidia-xconfig and delete /etc/X11/xorg.conf ("The real question is why you want to create a conf file if it is working fine without one? What problem are you trying to solve?"[link])