How to install VGA - GTX 1060 on Fedora with Secure Boot enabled?
In this post, I would like to introduce solution to install VGA drivers for 1060 on Fedora with enabled
Step 1: Determine vga installed on the motherboard.
On terminal, use the following command to see avaialble installed VGA.
Step 2: Download nvidia driver from Nvidia Official Website
In this post, I would like to pick the latest stable version
510.68.02 which was released on April 26, 2022. After your downloading finished, remember to make the file
chmod +x NVIDIA-Linux-x86_64-510.68.02.run, and copy it to
$HOME/Software/VGA-1060-key, you will need to execute this file each time your update your kernels.
Step 3: Generate new pair
Your directory tree should look like:
Step 4: Enroll new public key with
You need to run this command to import your new public key with
mokutil, this program will ask you a password for enrolling, which then be asked in the next reboot.
Step 5: Make
Each time you update your kernel, you need to go boots OS with
level 3 and run this script
Step 5: Install package dependencies & update OS
This step ensure you got the lastest kernel & all dependent packages.
sudo dnf install kernel-devel kernel-headers gcc make dkms acpid libglvnd-glx libglvnd-opengl libglvnd-devel pkgconfig; sudo dnf update;
Step 6: Disable
- Create or edit
/etc/default/grubAppend following flag to the end of
Step 7: Update grub2 config & generate new
grub2-mkconfig -o /boot/grub2/grub.cfg; ## Backup old initramfs nouveau image ## mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r)-with-nouveau.img; ## Generate new initramfs image ## dracut /boot/initramfs-$(uname -r).img $(uname -r);
Step 8: Boots OS on
level 3 and execute the
Boots OS on
level 3 and reboot
After login, go to
VGA-1060-key directory and execute
install.sh. At this step, just keep accepting and the driver will be installed.
After installing vga driver, you will need reboot OS on
level 5 - graphical
Next time, if you update your kernel, you can run this step (
Step 8) again, it should be fine. In addition, you should encrypt your
it’s not a good practice leave it unencrypted. You can check this guide Mã hóa và giải mã file trên linux sử dụng GPG
- Fedora 35/34/33 NVIDIA [495.46 / 470.94 / 390.144 / 340.108] Drivers Install Guide, JR, 2021, December 13, https://www.if-not-true-then-false.com/2015/fedora-nvidia-guide/
- How to install nvidia driver with secure boot enabled?, Zanna, 2018, June 25, https://askubuntu.com/questions/1023036/how-to-install-nvidia-driver-with-secure-boot-enabled