View Single Post
Old 10-19-02, 01:03 AM   #87
STEEL1
Registered User
 
Join Date: Oct 2002
Posts: 15
Default upgrading to kernel-2.4.18-17.8.0

Redhat auto updater will update your kernel to kernel-2.4.18-17.8.0
This will stop XServer since we compiled it using the older version of the kernel kernel-2.4.18-14


Instructions to get XServer working again for linux newbies or anyone else who cares:

Step 1> To get Xserver working again we have to recompile the NVIDIA_kernel-1.0-3123 on Linux kernel kernel-2.4.18-17.8.0.
Download the following files from NVidia's site if you deleted your initial file you downloaded before. (Note that the NVIDIA_kernel is the **src.rpm** rpm file and the NVIDIA_GLX is a **rpm**):
NVIDIA_kernel-1.0-3123.src.rpm
and
NVIDIA_GLX-1.0-3123.i386.rpm

Step 2> Open /etc/inittab file and change the following line. be carefull while changing this line. This will allow linux to reboot in text multiuser mode.
Change :
id:5:initdefault: to id:3:initdefault:

Step 3> rename the previosly compiled kernel to make a backup copy. In a terminal window.
"cd /usr/src/redhat/RPMS/i386"
"mv NVIDIA_kernel-1.0-3123.i386.rpm NVIDIA_kernel-1.0-3123.i386.rpm.old"

Step 4> upgrade your kernel to kernel-2.4.18-17.8.0 and kernel-source-2.4.18-17.8.0 and hwdata using the redhat downloader. Hope you still have other dependencies installed.

Step 5> Reboot and run linux in the new kernel. It will start in the command line mode. Login as root.

Step 6> remove the previously loaded GLX and kernel files in the right order as below.

rpm -e NVIDIA_GLX-1.0-3123
rpm -e NVIDIA_kernel-1.0-3123

Step 5> on command line do a "rpmbuild --rebuild NVIDIA_kernel-1.0-3123.src.rpm" to create drivers for the RH new kernel that we have now booted the system in. (This will again create the new binary RPM for the new kernel in "/usr/src/redhat/RPMS/i386/NVIDIA_kernel-1.0-3123.i386.rpm")

Step 6> Installed this new (NVIDIA_kernel-1.0-3123.i386.rpm)
"rpm -ivh /usr/src/redhat/RPMS/i386/NVIDIA_kernel-1.0-3123.i386.rpm"

Step 7> Install the GLX (NVIDIA_GLX-1.0-3123.i386.rpm)
"rpm -ivh NVIDIA_GLX-1.0-3123.i386.rpm"

Step 8> your Xconfig file should work from before and you dont have to change anything in there.
bnow do "startx" to start XServer.

Step 9> once XServer works fine Open /etc/inittab file and change the following line again. This will allow linux to reboot in GUI mode again.
Change :
id:3:initdefault: to id:5:initdefault:

Step 10> reboot agin to make sure everything is fine and have fun

STEEL
STEEL1 is offline   Reply With Quote