Fedora 17 and the nvidia geforce display driver
Posted 07-13-2012 at 05:27 PM by subvertigo
This is how I installed the nvidia driver in Fedora 17 for 64 bit x86 without using a 3rd party repository. My experience will not work with all configurations.
1. Download a compatible 64 bit x86 display driver from http://www.nvidia.com/object/linux_a...y_archive.html (32 bit x86 display drivers are at http://www.nvidia.com/object/linux_display_archive.html)
2. Install the kernel-devel and gcc packages.
3. Create the file /etc/modprobe.d/blacklist-nouveau.conf and include the following text:
4. Create the SELinux context for the new file: chcon -u system_u -t modules_conf_t /etc/modprobe.d/blacklist-nouveau.conf
5. Edit the file /etc/sysconfig/grub so the third line reads as (bold typeface indicates what was added):
6. Commit the grub2 change: grub2-mkconfig -o /boot/grub2/grub.cfg
7. Reboot, noting that the next instruction occurs at the grub2 shell, before Linux loads.
8. At the grub2 menu, press the e key on Fedora to edit boot options.
9. Append 3 to the linux line, i.e.
10. Press F10 to boot.
11. Log in as root
12. Navigate to the folder with the nvidia installer, and make it executable: chmod +x NVIDIA*.run
13. Run the installer: ./NVIDIA*.run
14. Switch the to the graphical runlevel: systemctl isolate graphical.target
Notes:
1. Download a compatible 64 bit x86 display driver from http://www.nvidia.com/object/linux_a...y_archive.html (32 bit x86 display drivers are at http://www.nvidia.com/object/linux_display_archive.html)
2. Install the kernel-devel and gcc packages.
3. Create the file /etc/modprobe.d/blacklist-nouveau.conf and include the following text:
Code:
# stop autoloading of nouveau blacklist nouveau # stop dependencies from loading nouveau install nouveau /bin/false
5. Edit the file /etc/sysconfig/grub so the third line reads as (bold typeface indicates what was added):
Code:
GRUB_CMDLINE_LINUX="rd.md=0 rd.lvm=0 rd.dm=0 SYSFONT=True KEYTABLE=us rd.luks=0 LANG=en_US.UTF-8 rhgb quiet rd.driver.blacklist=nouveau"
7. Reboot, noting that the next instruction occurs at the grub2 shell, before Linux loads.
8. At the grub2 menu, press the e key on Fedora to edit boot options.
9. Append 3 to the linux line, i.e.
Code:
linux /vmlinuz-3.4.4-5.fc17.x86_64 root=UUID=d5c6ea34-488e-464a-8f5c-0205e0a4f2e8 ro rd.md=0 rd.lvm=0 rd.dm=0 SYSFONT=True KEYTABLE=us rd.luks=0 LANG=en_US.UTF-8 rhgb quiet rd.driver.blacklist=nouveau 3
11. Log in as root
12. Navigate to the folder with the nvidia installer, and make it executable: chmod +x NVIDIA*.run
13. Run the installer: ./NVIDIA*.run
14. Switch the to the graphical runlevel: systemctl isolate graphical.target
Notes:
- The dracut command line manual lists the rd.driver.* options that can be given at boot. This is useful when LiveCDs do not work properly, like when Fedora 17 PPC doesn't automatically load pata_macio.
- The fourth line in the blacklist-nouveau.conf is required since graphical.target (also known as runlevel5.target) will load modules that depend on nouveau. Here is a link to the modprobe.conf manual for the conf file, and the SysVinit to Systemd Cheatsheet for the various runlevels of systemd.
- The addition of the 3 is a kernel boot parameter similar to S (part of Init options).
- w3m can be used to search and download the proprietary NVIDIA driver as long as you use Google, not NVIDIA's site, to find it.
Total Comments 0