View Single Post
Old 10-18-02, 03:25 AM   #3
Registered User
Join Date: Oct 2002
Location: Detroit area
Posts: 13
Send a message via Yahoo to lucianpoe
Talking ANY RedHat8.0 release works

I figured it out.

I have ALL the headers / RPMS/ everything else you ever need. Untill I tried this, everything else was to no avail.

#0) make sure you boot using the RedHat kernel you intend to boot from in the future using the new NVIDIA drivers; if you only have 1 kernel to choose from at boot time, don't worry about this step;

- i.e., I have both the 2.4.17 kernel (for i386 architecture) and the 2.4.18-17.8.0 kernel (for i686 architecture); I'd have to boot using the 2.4.18-17.8.0 kernel (for i686) if this is where I want to use my NVIDIA drivers.

#1) run this command (and all the subsequent commands) in a terminal window (prefferably Gnome, although KDE has been reported to work also):
rpm -qa | grep NV
- this will find any previously installed NVidia drivers;
- if there are none, good; Skip to step#2;
- if there are, then run this:
rpm -e NVIDIA_GLX-1.0-3123
rpm -e NVIDIA_kernel-1.0-3123
- this will remove any existing NVIDIA drivers; this way you will have no problems later on;

#2) cd /usr/src/redhat/RPMS/ , then
cd /i386 (where i386 is the architecture of your CPU as recognized by RedHat8.0)
- make sure there are no files starting with "NVIDIA" ; if there are, erase all of them using rm -f NVIDIA*;

#3) download the SOURCE rpms of both GLX and kernel NVidia files (NVIDIA_GLX-1.0-3123.src.rpm, and NVIDIA_kernel-1.0-3123.src.rpm) off NVidia's web site (you will find the GLX source file at the top of the page, and the kernel source at the bottom); make sure you know where the files where saved on your PC.

#4) move into the directory where you saved the source files (using the cd myDownloads command, where myDownloads is the name of the directory you saved the source files);

#5) build the rpm packages for your specific kernel; this is done by using
rpmbuild --rebuild NVIDIA_kernel-1.0-3123.src.rpm;
rpmbuild --rebuild NVIDIA_GLX-1.0-3123.src.rpm
- the freshly built rpms will be automatically saved under /usr/src/redhat/RPMS/ix86/, where ix86 is the architecture recognized by your rpm package;

- if you read carefully the output on the screen generated by the last rpmbuild command, towards the end you will see a line saying something like "saved in /usr/src/redhat/RPMS/i386" - this is where your generated rpms have been saved ;

#6) cd to the directory where the rpms have been saved; you should only have two (2) NVIDIA rpm files; once there, run these commands, in this order:
rpm -ivh NVIDIA_kernel-1.0-3123.*
rpm -ivh NVIDIA_GLX-1.0-3123.*

- at this point, you should get no errors;

#7) cd /etc/X11/ ;
- use the ls -l command to have the contents of the directory listed; the display settings file name should look like this: XF86Config or XF86Config-4;

-backup the existing file first:
cp XF86Config XF86Config.backup

- use pico XF86Config to either remove or comment out (add # at the beginning of each line) the entire "dri" section (typically found at the bottom of the file);

- in the "Display" section, replace the existing driver (tipically vesa) with "nvidia";

- Don't forget to SAVE the changes.

This is what my XF86Config file looks like at the end:

# XFree86 4 configuration modified by me on 10-17-2002
# The following section has been removed from the bottom of the file;
# uncomment it and reboot to have the Xserver reconfigure
# using a default "safe" video driver;
#Section "DRI"
# Group 0
# Mode 0666

Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "DevInputMice" "AlwaysCore"

Section "Files"
# RgbPath is the location of the RGB database. Note, this is the name of the
# file minus the extension (like ".txt" or ".db"). There is normally
# no need to change the default.
# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Red Hat 6.0 and later now use a font server independent of
# the X server to render fonts.
RgbPath "/usr/X11R6/lib/X11/rgb"
FontPath "unix/:7100"

Section "Module"
Load "dbe"
Load "extmod"
Load "fbdevhw"
Load "glx"
Load "record"
Load "freetype"
Load "type1"

Section "InputDevice"
# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
# Option "Xleds" "1 2 3"
# To disable the XKEYBOARD extension, uncomment XkbDisable.
# Option "XkbDisable"
# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults). For example, for a non-U.S.
# keyboard, you will probably want to use:
# Option "XkbModel" "pc102"
# If you have a US Microsoft Natural keyboard, you can use:
# Option "XkbModel" "microsoft"
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
# Option "XkbLayout" "de"
# or:
# Option "XkbLayout" "de"
# Option "XkbVariant" "nodeadkeys"
# If you'd like to switch the positions of your capslock and
# control keys, use:
# Option "XkbOptions" "ctrl:swapcaps"
# Or if you just want both to be control, use:
# Option "XkbOptions" "ctrl:nocaps"
Identifier "Keyboard0"
Driver "keyboard"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "PS/2"
Option "Device" "/dev/psaux"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "no"

Section "InputDevice"
# If the normal CorePointer mouse is not a USB mouse then
# this input device can be used in AlwaysCore mode to let you
# also use USB mice at the same time.
Identifier "DevInputMice"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "no"

Section "Monitor"
Identifier "Monitor0"
VendorName "KDS"
ModelName "Radius 5x"
HorizSync 31.5 - 48.5
VertRefresh 40.0 - 70.0
ModeLine "1400x1050" 129.0 1400 1464 1656 1960 1050 1051 1054 1100 +hsync +vsync
ModeLine "1400x1050" 151.0 1400 1464 1656 1960 1050 1051 1054 1100 +hsync +vsync
ModeLine "1400x1050" 162.0 1400 1464 1656 1960 1050 1051 1054 1100 +hsync +vsync
ModeLine "1400x1050" 184.0 1400 1464 1656 1960 1050 1051 1054 1100 +hsync +vsync
Option "dpms"

Section "Device"
Identifier "Videocard0"
Driver "nvidia" # this replaced 'Driver "vesa"' in my case;
VendorName "Gainward"
BoardName "Gainward nVidia GeForce 4 Ti4600"

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Modes "1024x768"
SubSection "Display"
Depth 16
Modes "1024x768" "800x600" "640x480"
SubSection "Display"
Depth 24
Modes "1024x768" "800x600" "640x480"
SubSection "Display"
Depth 32
Modes "1024x768" "800x600" "640x480"


#8) reboot.

After all servers have been started, you should see the nVidia logo prior to the Xserver start-up.

Happy gaming!

Last edited by lucianpoe; 10-18-02 at 10:46 PM.
lucianpoe is offline   Reply With Quote