Centos 7: Difference between revisions
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
== Installing NVIDIA drivers == | == Installing NVIDIA drivers == | ||
First run this to get video card version: | First run this to get video card version: | ||
[root@vov ~]# lspci | grep -i vga | grep -i nvidia | [root@vov ~]# lspci | grep -i vga | grep -i nvidia | ||
Line 10: | Line 9: | ||
When the file is done downloading, move it to the /root folder and fix perms. | When the file is done downloading, move it to the /root folder and fix perms. | ||
For me that command looked like: | For me that command looked like:(you will need to fix the paths in your) | ||
mv /home/mike/Downloads/NVIDIA-Linux-x86_64-367.44.run /root | mv /home/mike/Downloads/NVIDIA-Linux-x86_64-367.44.run /root | ||
chown root.root /root/NVIDIA-Linux-x86_64-367.44.run | chown root.root /root/NVIDIA-Linux-x86_64-367.44.run | ||
Line 19: | Line 18: | ||
yum install dkms glibc-devel.i686 libstdc++-devel.i686 | yum install dkms glibc-devel.i686 libstdc++-devel.i686 | ||
yum update | yum update | ||
Once that has been done, now we need to alter the kernel options. | |||
vim /etc/default/grub | |||
Find this line: | |||
GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=centos_vov/root rd.lvm.lv=centos_vov/swap rhgb quiet" | |||
And change it as follows: | |||
GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=centos_vov/root rd.lvm.lv=centos_vov/swap rhgb quiet '''''nomodeset rdblacklist=nouveau'''''" | |||
Once that edit is made you need to rebuild grub2. | |||
cp /boot/grub2/grub.cfg /root/grub.cfg | |||
grub2-mkconfig -o /boot/grub2/grub.cfg | |||
Now you need to reboot the system, to finish disabling nouveau. | |||
reboot |
Revision as of 05:50, 26 August 2016
Installing NVIDIA drivers
First run this to get video card version:
[root@vov ~]# lspci | grep -i vga | grep -i nvidia 01:00.0 VGA compatible controller: NVIDIA Corporation GK107 [GeForce GT 640] (rev a1)
After you know what card you have go to this site and download the driver for your version of linux. Make sure you choose 64bit linux as os.
http://www.nvidia.com/Download/index.aspx?lang=en-us
When the file is done downloading, move it to the /root folder and fix perms.
For me that command looked like:(you will need to fix the paths in your)
mv /home/mike/Downloads/NVIDIA-Linux-x86_64-367.44.run /root chown root.root /root/NVIDIA-Linux-x86_64-367.44.run chmod +x /root/NVIDIA-Linux-x86_64-367.44.run
Now after this you gotta do some stuff in yum.
yum install epel-release -y yum install dkms glibc-devel.i686 libstdc++-devel.i686 yum update
Once that has been done, now we need to alter the kernel options.
vim /etc/default/grub
Find this line:
GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=centos_vov/root rd.lvm.lv=centos_vov/swap rhgb quiet"
And change it as follows:
GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=centos_vov/root rd.lvm.lv=centos_vov/swap rhgb quiet nomodeset rdblacklist=nouveau"
Once that edit is made you need to rebuild grub2.
cp /boot/grub2/grub.cfg /root/grub.cfg grub2-mkconfig -o /boot/grub2/grub.cfg
Now you need to reboot the system, to finish disabling nouveau.
reboot