After I made the BIG mistake of doing a Dist-Upgrade, and stomping all over my NVidia Video Card Drivers, installed into the kernel, through a source compile, I took a "step-by-step" someone had created, and I used to "initially" get them running, doctored it up a little, added clues to getting your drivers back, after the fact, etc...
If this can be "polished" a little better, and maybe added somewhere, so that maybe others can benefit from this HELL I went through, it might make someone's life a little easier Question
Code:
This process was created by Naventus, in the Knoppix Forum "Hdd Install", under the topic of
"Guide to Installing NVIDIA Drivers under 2.6.6", I cleaned up some commands, like having to
remove a symlink, when you can just create a symlink with the "-f", or force, option... I also
added a little more for "future" usage, like checking what gcc's symlink is previously, so that
you can point it back to its original version after completing the process, and since I made the mistake of doing a Dist-Upgrade, how to get back your drivers, still using this step-by-step...
Thanks to the helpful posts of Miilltek, Shah, and Kelmo, I am proud to say that I have
successfully installed the NVIDIA drivers under 2.6.6. I am going to quickly put all the
instructions and some clarifications so that newbs like me can also make this work.
( authors addition: I have successfully installed NVidia, twice, once straight through this
process, completely, and the second, after doing the Dist-Upgrade mistake, using this same
step-by-step, from where I marked it )
I will use http://knoppix.net/forum/viewtopic.p...4f7083a3639b31
as the core of this guide. I will just fix up some typos and try to explain what's going on with
my limited knowledge of linux.
( Authors Note: lines beginning with "..." are comments from myself, do not enter them )
Fire up a ROOT Konsole. If you have a "normal" user Konsole, do the following: su
cd /usr/src
... Fire up your internet connection ... <--- this is a comment...
wget ftp://ftp.kernel.org/pub/linux/kerne...-2.6.6.tar.bz2
... You can either leave your internet connected, or drop it here ...
cp linux-2.6.6.tar.bz2 /usr/src
tar jxvf linux-2.6.6.tar.bz2
ln -sf linux-2.6.6 linux
cp /boot/config-2.6.6 linux/.config
cd linux/include
ln -s asm-i386 asm
cd .. (again, check to see if linux-2.6.6 is in the folder usr)
make oldconfig
patch -p1 <../knoppix-kernel26.patch
... (*) ...
cd /usr/bin
... Check which version gcc is pointing to... and use it after completion ...
... I am going to use the gcc-3.3 as an example, the below command would show:
... gcc -> gcc-3.3
... So, in that case, the "current" gcc version is 3.3 - remember this for after we finish
. the compiling
ls -la gcc
ln -sf gcc-2.95 gcc
cd /usr/src
make (this will compile your kernel, will take sometime to finish- on my 2.4 around 1 hour) ...
( authors note: on my 2.6, it went a little faster, but still takes some time )
***** If you accidently do a Dist-Upgrade, and your NVidia Drivers are "stomped" on, you can
just continue here, and not do the above steps... ( counted that you previously did all the
above steps before... i.e. you did all of this before, and then messed it all up with a
Dist-Upgrade, and had NVidia update on you. ) You will still need to do the following from above
though: ( goto above steps marked (*), and follow down... ( Exclude the "make" from above
though! ) ) )
*****
... If you didnt leave your internet connection still connected, connect it now ...
apt-get update
apt-get install nvidia-kernel-common nvidia-kernel-source
tar zxvf nvidia-kernel-source.tar.gz
cd modules/nvidia-kernel
debian/rules KSRC=/usr/src/linux-2.6.6 KVERS=2.6.6 kdist_image
cd ..
... Change the below .deb package to reflect the file you have, each "version" of the NVidia
... Drivers will create a specific file, with the "version" being changed in the file name
... Below is assuming you used NVidia Drivers 1.05336-6, I used the newer 1.06111-1 Drivers,
... and my .deb file was "nvidia-kernel-2.6.6_1.0.6111-1_i386.deb" - just as a side note...
dpkg -i nvidia-kernel-2.6.6_1.0.5336-6_i386.deb
apt-get install nvidia-glx
... If the above "apt-get install" or the one that installs the "nvidia-kernel" -common and
... -source packages, reports that they are already current, and you are trying to recover from
... an accidental Dist-Upgrade, you might want to change those "apt-get install" 's to the
... following: "apt-get --reinstall install" -=- you can never be "too" careful :)
... You no longer need a internet connection from this point on, you can drop it now ...
cd /usr/bin
... repoint the symlink for gcc back to what it was previously... See above, if the previous
... version was 3.3 you can use the below command exactly, if your version is 3.4, then use
... "gcc-3.4" instead
ln -sf gcc-3.3 gcc
... Now, some updating of files, to make the drivers installed above, "active"
Edit /etc/X11/XF86Config-4 :
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"
Hopefully I added just a miniscule amount of polish; I think most people will now be able to use
these instructions without having to play around too much/meet troubles.
On a side note, my glxgears fps jumped from 290 to 1560ish... how acceptable is 1560 for a
Geforce 2 MX200 PCI 32 MB card?
( as a side note from this author, my glxgears are running at 284 FPS, with a GeForce 4 MX440
AGP, now if we want to compare "five second" timings, which I think thats what your "15xx"
number is, I am around 2000 per 5 second timings )