Installing the NVIDIA-Linux-x86-1.0-5336-pkg1.run on KNOPPIX 3.3 hard disk install

By JackTrades ([email protected])

for those (newbies only) who try linux using knoppix...and have an Nvidia graphics adapter

ok, so you downloaded your driver, read the 'readme' file...ok..
copy your driver somewhere
now you exit X (login as different user, options=console login)

login as root and do as in readme : sh NVIDIA-Linux-x86-1.0-5336-pkg1
surprise : shit happens..you don't have the kernel sources installed
ok now you search help on the internet...about kernel sources, headers installing,
upgrading kernels, etc.
you could upgrade your kernel, and learn some stuff on the way, but being new to linux,
you could make mistakes, and get in more trouble, like you have your driver installed (FINALLY),but other things go wrong, like you can't access your CD-ROM, some programs don't work any more because you forget to check some things in the kernel before compiling...you can't access yor dos partition...etc
so, before upgrading kernel, you should take more time with linux, learn some things,read FAQ's, and so on.
let's get back to the driver installing problem;the answer is in the driver itself, (thanks to Nvidia)
all you have to do is run 'sh NVIDIA-Linux-x86-1.0-5336-pkg1.run --advanced-options' and you shoul see what i mean.
anyway do this :
copy your driver anywhere you like( i use /home in this example)
ok, open a console as root, 'cd /home' ,do 'sh NVIDIA-Linux-x86-1.0-5336-pkg1.run --add-this-kernel' ,and hit enter.
it will make a driver for your kernel;after it finishes, do 'ls' ,to see it in your /home dir
it will be called something like this : NVIDIA-Linux-x86-1.0-5336-pkg1-custom.run
ok, now logout, choose console login, log as root, and change to where the new file is :
'cd /home'
now do : 'sh NVIDIA-Linux-x86-1.0-5336-pkg1-custom.run' ,and hit enter
you've done it
now edit your XF86config-4 file,or what you use(check the readme for that)
'cd /etc/X11'
use any editor to change the "nv" to "nvidia" ,and delete or add '#' in front of the lines
Load "dri"
Load "GLcore"


In the readme it says :

change

Driver "nv"
(or Driver "vesa")

with

Driver "nvidia"

In the Module section, make sure you have:

Load "glx"

You should also remove the following lines:

Load "dri"
Load "GLcore"

you haven't read the whole readme, haven't you ?

<<<<<<<<Q: Can I add my own precompiled kernel interfaces to a .run file?

A: Yes, the "--add-this-kernel" .run file option will unpack the .run
file, build a precompiled kernel interface for the currently running
kernel, and repackage the .run file, appending "-custom" to the file
name. This may be useful, for example. if you administer multiple
Linux machines, each running the same kernel.>>>>>>>>>>>>

so you see, the answer was there...

now do 'startx' and see the nVIDIA logo appear.
now you can play with OpenGL apps, without upgrading your kernel and get in more problems
in the future do that to, without destroing it...by reading a lot of FAQ's.