본문 바로가기

Develop/Linux

Install NVIDIA Graphic driver on fedora linux

At first check your driver and graphic card.


]$ nvidia-installer -v | grep version

]$ uname -a

]$ lspci |grep -E "VGA|3D"


Go to https://www.nvidia.com/Download/Find.aspx?lang=en-us and Download Driver

Go Download Path and add executable permission on the file

]$ chmod +x ./NVIDIA-Linux-*.run


And then update your packages and install you needed

]$ su -

]$ dnf update

]$ reboot

]$ dnf install kernel-devel kernel-headers gcc dkms acpid libglvnd-glx libglvnd-opengl libglvnd-devel pkgconfig


Add options about nouveau and make grub config files

]$ echo "blacklist nouveau" >> /etc/modprobe.d/blacklist.conf


# EDIT /etc/sysconfig/grub

# Append ‘rd.driver.blacklist=nouveau’ to end of GRUB_CMDLINE_LINUX="..."


]$ grub2-mkconfig -o /boot/grub2/grub.cfg

]$ grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg

]$ dnf remove xorg-x11-drv-nouveau


# EDIT /etc/dnf/dnf.conf

# Append exclude=xorg-x11* to end of file


]$ mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r)-nouveau.img

]$ dracut /boot/initramfs-$(uname -r).img $(uname -r) 


# Set the default target to multi-user


]$ systemctl set-default multi-user.target


]$ reboot


Install NVIDIA driver


# Go Download Path


]$ ./NVIDIA-Linux-*.run


# Execute the given steps.


# After install driver, set the default target to graphical


]$ systemctl set-default graphical.target


]$ reboot