This is a BASH script, which download NVIDIA installer, extract it, patch it and make new patched installer package. This is very quickly tested alpha version so if you have any problems please let me know or if this works as it should you can also let me know. I use here currently ARCH Linux Patches + my own patches. Currently this works with NVIDIA 340.108 / 418.113 / 435.21 drivers and latest 5.12, 5.11, 5.10 and 5.9 kernels.
This should work with any distribution. You just need install wget and patch packages.
Check video version of guide:
Download and Use inttf NVIDIA Patcher BASH Script
1. Change root user
su - # OR # sudo -i
2. Install Needed dependencies
## Fedora ## dnf install wget patch ## Debian / Ubuntu ## apt install wget patch
Then change back to normal user and run following commands as normal user!
3. Create new directory for inttf NVIDIA patcher
This is just a example, you can use any directory for this.
cd ~ mkdir NVIDIA cd NVIDIA
4. Download / Update inttf NVIDIA patcher
wget -O inttf-nvidia-patcher.sh https://nvidia.if-not-true-then-false.com/patcher/inttf-nvidia-patcher.sh
5. Make inttf NVIDIA patcher executable
chmod +x inttf-nvidia-patcher.sh
6. Download and patch your drivers
./inttf-nvidia-patcher.sh --- inttf NVIDIA patcher --- script usage: inttf-nvidia-patcher.sh [-h] [-v 340.108, 418.113 or 435.21]
Example: Get and patch NVIDIA 340.108 for kernel 5.12 / 5.11 / 5.10 / 5.9
./inttf-nvidia-patcher.sh -v 340.108
After successful run, you should have following content on your directory:
ls -la total 205524 drwxrwxr-x. 1 inttf inttf 286 Nov 23 02:34 . drwx------. 1 inttf inttf 624 Nov 23 01:53 .. -rwxrwxr-x. 1 inttf inttf 5947 Nov 23 02:08 inttf-nvidia-patcher.sh drwxrwxr-x. 1 inttf inttf 90 Nov 23 02:32 NVIDIA-390xx drwxrwxr-x. 1 inttf inttf 3192 Nov 23 02:33 NVIDIA-Linux-x86_64-340.108 -rwxrwxr-x. 1 inttf inttf 126660695 Nov 23 02:34 NVIDIA-Linux-x86_64-340.108-patched-kernel-5.11.run -rwxrwxr-x. 1 inttf inttf 83780873 Jun 4 19:25 NVIDIA-Linux-x86_64-340.108.run
This case use NVIDIA-Linux-x86_64-340.108-patched-kernel-5.11.run file when you install your drivers.