PDA

View Full Version : Howto install nvidia driver with kernel 2.6.5



Gozar
06-04-2004, 02:26 PM
All this is done as root!
All this is done in a console (Not in a xterm. Press CTRL+ALT+F2 to get to a console login)

Get kernel source:
wget http://developer.linuxtag.net/knoppix/i386/kernel-image-2.6.5_10.00.Custom_i386.deb
install kernel source with:
dpkg -i kernel-image-2.6.5_10.00.Custom_i386.deb
cd to /usr/src:
cd /usr/src
Unpack source:
tar xjvf kernel kernel-source-2.6.5.tar.bz2
install kernel headers:
apt-get install kernel-headers-2.6.5-1
Remove symlink:
rm linux
Make symlink to the new kernel:
ln -s kernel-source-2.6.5 linux
cd to linux:
cd linux
Make kernel tree cleen:
make mrproper
Copy knoppix kernel config:
cp /boot/config-2.6.5 ./.config
knoppix was compiled wit gcc-2.95 so w'll use that to compile the kernel:
export CC=gcc-2.95
Compile the kernel:
make
(Wait a long time)
Download Nvidia driver:
wget http://download.nvidia.com/XFree86/Linux-x86/1.0-5336/NVIDIA-Linux-x86-1.0-5336-pkg1.run
Stop Xwindows system:
/etc/init.d/kdm stop
Nvidia drivere can't find the kernel source on my system so type this:
export SYSSRC=/usr/src/linux
Start the nvidia installation:
sh NVIDIA-Linux-x86-1.0-5336-pkg1.run

Accept the licence.
Chooce no to download precompiled modules, cause there are no precompiled modules for knoppix kernel at this time
Select yes to try to compile the nvidia module.

Now you should have compiled the nvidia module.

You have to edit the file /etc/X11/XF86Config-4 file with an editor
Find the line: Secton "Modules"
Comment out
Load "GLcore"
Load "dri"
So it looks like this:
# Load "GLcore"
# Load "dri"

Find the section "Device"
Change the line: Driver "nv"
to: Driver "nvidia"

open the file /etc/modutils/aliases with a text editor
append this line at the buttom of the file:
alias char-major-195 nvidia

You are done.
Now start Xwindows with:
/etc/kdm start

If you see a nice nvidia splash screen All went well.

Edidet mrproper to make mrproper, my fault sorry!

Yakumo
06-11-2004, 12:46 AM
any idea where the 2.6.6 knoppix kernel source would be? it's not made it onto http://developer.linuxtag.net/knoppix/i386/

and when i tried this after 'dpkg -i kernel-image-2.6.5_10.00.Custom_i386.deb' completed i didn't have any .tar.bz2's in /usr/src/ so couldn't continue ?

Da_Brain
06-11-2004, 02:28 PM
I have run into the same issues as you have written below. For the life of me I don't know why installing a video driver is so convoluted! I have tried and read and read and read this and other install procedures and I have yet to find one refined, tested setup instructions that works for me! I have been trying for months with no success and it surely isn't a lack of my effort or not reading.

Is there anyone out there that can do a similar write up of a step by step procedure that works with the latest knoppix ver?

It would be so much appreciated if it was verified and that it actually works!

I would volunteer to help anyone that has this knowledge to test it out.

I know there are many many ppl that are just as frusted as I am.

Some one PLEASE Help us!--)))))



I need something that works and written for non linux non-savy users.

Again, I have read the Nvida Instructions, printed them out (latest IA-32 5336 Drivers), the above instructions and many others and yet here I sit months later and still no success.

Man I wish I could get it right! For those of you that have! Far Out! For those like me that haven't, what a drag!




any idea where the 2.6.6 knoppix kernel source would be? it's not made it onto http://developer.linuxtag.net/knoppix/i386/

and when i tried this after 'dpkg -i kernel-image-2.6.5_10.00.Custom_i386.deb' completed i didn't have any .tar.bz2's in /usr/src/ so couldn't continue ?

Gozar
06-13-2004, 08:03 PM
Try getting the kernel source from here:
http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2

untar it with tar xjvf linux-2.6.6.tar.bz2 -C /usr/src

Then try follow the steps in the guide.

Sincerley
Gozar