Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror
×
User Journal

Journal planckscale's Journal: nvidia drivers on linux

Only after finding the the instructions below, was I able to get the drivers running okay (with an additional twist at the end -see below). The thread can be found here: http://www.knoppix.net/forum/viewtopic.php?t=10329
but I'll go ahead and include them anyway in case someone else finds their way to my thread. Thanks kelmo!!

wget ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.5.tar.bz2
cp linux-2.6.5.tar.bz2 /usr/src
tar jxvf linux-2.6.5.tar.bz2
rm -f linux
ln -s linux-2.6.5 linux
cp /boot/config-2.6.5 linux/.config
cd linux/include
ln -s asm-i386 asm
cd ..
make oldconfig
patch -p1 ../knoppix-kernel26.patch
make include/linux/version.h (bug in cleaning process of linux-2.6.5)
cd /usr/bin
rm -f gcc (the kernel image was compiled with gcc-2.95 but symlink is to gcc-3.3)
ln -s gcc-2.95 gcc
cd /usr/src
apt-get update
apt-get install nvidia-kernel-common nvidia-kernel-source
tar zxvf nvidia-kernel-source
cd modules/nvidia-kernel
debian/rules KSRC=/usr/src/linux-2.6.5 KVERS=2.6.5 kdist_image
cd ..
dpkg -i nvidia-kernel-2.6.5_1.0.5336-9_i386.deb
apt-get install nvidia-glx
cd /usrbin
rm -f gcc
ln -s gcc-3.3 gcc

Thats the building and installation procedure done, now to let xserver know what driver to use. Edit /etc/X11/XF86Config-4 with your fav text editor and make the following mods:-

Drivers Section
Replace "nv" with "nvidia"

Modules Section
Remove or comment out lines including "dri" and "GLCore"
Ensure there is a line with Load "glx"

After running, this install, I tried to run
# kdm
but the server failed to start. The logs weren't specific, but it said "nvidia" not found, failed to start server.

I then went back to the console and ran
# export CC=/usr/bin/gcc-2.95
# sh NVIDIA-Linux-x86-1.0-5336-pkg1.run

Edited /etc/X11/XF86Config-4 - made necessary changes

The installer finished sucessfully and I finally now have the nvidia drivers running.Yay!! Still the Postal2 demo won't install, I get a greyed-out "Begin Install" button, but oh well I can try to find a different OpenGL game to try.

I got sick of the nvidia logo so I
added this line to the device section of XF86config-4:-

Option "NoLogo" "true"

Stellar rays prove fibbing never pays. Embezzlement is another matter.

Working...