PDA

View Full Version : HOWTO: Nvidia drivers after hard drive install



robelanator
02-24-2003, 11:08 PM
I'm not quite sure where this belongs so I'm posting it here for now and the mods can move it around where they see fit.

Introduction:

If you're wondering about my system configuration and etc. you should check out my previous two threads:
One new user's comments (http://www.knoppix.net/forum/viewtopic.php?t=741)
Switch to Debian stable for KDE3.1 (http://www.knoppix.net/forum/viewtopic.php?t=804)

The following info is just a regurgitation of Nvidia's own help file on the subject but I've made it a bit easier to follow for a newbie (I hope) and have tailored the instructions for someone who has done a Knoppix hard drive install. You can find the original help file I used here: http://download.nvidia.com/XFree86_40/1.0-4191/README

It is assumed you're using the KDE Konsole and logged on as root when executing commands.

Step 1: Get the sources

Nvidia is kind enough to offer official unified kernel and X drivers so that you can take advantage of the hardware acceleration features of your TNT, GeForce, etc. Unfortunately, no .debs are offered as of yet so you'll have to compile the source yourself. I know this sounds threatening to linux newbies (I know it did to me) but it's actually quite pain free.

Some would suggest that you use apt-get to download the source files, but in my case this didn't work (no makefiles were included!). Instead, I'd recommend getting the latest driver builds here: http://www.nvidia.com/view.asp?IO=linux_display_archive

There are about 100 different variations of the same two files on this page, most of them for different RedHat installations. The files we need, however, are the GLX Tar File (should be named NVIDIA_GLX-[version number].tar.gz) and the Kernel Tar File (should be named NVIDIA_kernel-[version number].tar.gz).

For example, I downloaded the version 1.0-4191 drivers so the files would be NVIDIA_GLX-1.0-4191.tar.gz and NVIDIA_kernel-1.0-4191.tar.gz.

Download the two files to the /usr/src directory.

Step 2: Unpacking

Open up a shell using the KDE program Konsole (found in the K-Menu or on the taskbar by default) and navigate to the /usr/src directory with the command:


cd /usr/src

Next you want to unpack each of the files that were downloaded. To do this, type the following into the command line:


tar xvzf NVIDIA_GLX-[version number].tar.gz
then

tar xvzf NVIDIA_kernel-[version number].tar.gz

Using the example files I gave above, the exact commands would be:


tar xvzf NVIDIA_GLX-1.0-4191.tar.gz
then

tar xvzf NVIDIA_kernel-1.0-4191.tar.gz

Now the sources will be unpacked into subdirectories and ready to be compiled.

Keep that Konsole open, though, because we'll be using it for the rest of the installation.

Step 3: Setting the CC enviroment variable

This is where it gets interesting. I found, like many others, that my default version of gcc was 3.2 instead of 2.95 (which the kernel was compiled with). Why this makes a difference is a matter of technical mumbo jumbo but suffice it to say we have to change it back for this shell session. Don't worry, though, it's really easy. Just type in:


export CC=/usr/bin/gcc-2.95

Now when we run the make install on the next step we won't get any compiler warnings!

Step 4: make install

Move into the first subdirectory that was created back in Step 2 with the command:


cd /usr/src/NVIDIA_GLX-[version number]

Now just type:


make install

This will automatically compile and install the GLX module!

Move into the other directory we made with Step 2 with the command:


cd /usr/src/NVIDIA_kernel-[version number]

Now type:


make install

This will automatically compile and install the kernel module! We're not done yet, though...

Step 5: Editing configuration files

This is always my favorite part of working with linux :roll:

At the command line type in:


kate etc/X11/XF86Config-4

This should open up a nice friendly KDE text editor for us to work in. Look for the section called Section "Device" and then change the line that says Driver "nv" to instead read Driver "nvidia".

Okay. Now find the section called Section "Module". We want to remove the following two lines:

Load "dri"
Load "GLcore"

and add this line, if it's not already present:

Load "glx"

When you're done with that you can save the file and close kate. The Konsole command line should still be open, though.

Step 6: Final alterations

You'll probably need to edit one or two files more on your system before you get X to function correctly. Type:


kate /etc/modules.conf

Add the line following line to the file if it's not already present:

alias char-major-195 nvidia

Save and close the file. Then, back in the command shell, type:


kate /etc/modutils/aliases

Add that same line to this file as well if it's not already there:

alias char-major-195 nvidia

Save this file and close it.

You can now close the shell, shutdown X, and restart your system.

Voila! You're done!

Epilogue

This worked for me! Post any questions or corrections in this thread.

Hope this helps someone out there...

god
02-25-2003, 02:44 AM
you are a wonderful, wonderful man. I am planning on setting up the new drivers for myself this weekend. Now I have something to help me....

aay
02-25-2003, 03:22 AM
Robelanator,

Job well done! This is just the kind of thing that we need a knoppix.net - giving a well detailed solution to questions that commonly come up. I want to encourage others to follow your example. If enough people would post well written howto's, it would greatly aid the rest of the knoppix community. Some of you might think that things like this are well documented elsewhere, and this is true, but it's helpful for to have a single repository of information.

The best place to post this is in the Docs section. Yes you can edit those documents just click on the edit button at the bottom of the page. If people want to add their, howto's and then make an announcement about it in 'The Lounge', I think that would be great.

Robelantor, maybe we'll see if any feedback comes in and then you could create a section under the Knoppix docs and add this. Since it's turnned up as a commond question on the forums, I know that a lot of people would appreciate it. Again, good job.

god
02-25-2003, 03:39 AM
rob... quick question... does your card now support the TV out funtion with the new drivers?

robelanator
02-25-2003, 03:45 AM
The best place to post this is in the Docs section. Yes you can edit those documents just click on the edit button at the bottom of the page. If people want to add their, howto's and then make an announcement about it in 'The Lounge', I think that would be great.

As soon as a bit of feedback comes in on this I (or someone else) can look into adding this page to the Docs section. Thanks!

robelanator
02-25-2003, 03:53 AM
rob... quick question... does your card now support the TV out funtion with the new drivers?

Supposedly so... From the latest driver readme:

These drivers provide optimized hardware acceleration of OpenGL
applications via a direct-rendering X Server and support nearly all
NVIDIA graphics chips (please see APPENDIX A for a complete list of
supported chips). TwinView, TV-Out and flat panel displays are also
supported.

From the same file, here's how to configure it:

NVIDIA GPU-based video cards with a TV-Out (S-Video) connector can be
employed to use a television as another display device, just like a CRT
or digital flat panel. The TV can be used by itself, or (on appropriate
video cards) in conjunction with another display device in a TwinView
configuration.

If a TV is the only display device connected to your video card, it will
be used as the primary display when you boot your system (ie the console
will come up on the TV just as if it were a CRT). To use your TV with X,
there are a few parameters that you should pay special attention to in
your XF86Config file:

o The VertRefresh and HorizSync values in your monitor section;
please make sure these are appropriate for your television.
Values are generally:

HorizSync 30-50
VertRefresh 60

o The Modes in your screen section; the valid modes for your TV encoder
will be reported in a verbose XFree86.0.log file (generated with
`startx -- -logverbose 5`) when X is run on a TV. Some modes may
be limited to certain TV Standards; if that is the case, it will
be noted in the XFree86.0.log file. Generally, atleast 800x600 and
640x480 are supported.

o The "TVStandard" option should be added to your screen section; valid
values are:

"PAL-B" : used in Belgium, Denmark, Finland, Germany, Guinea,
Hong Kong, India, Indonesia, Italy, Malaysia, The
Netherlands, Norway, Portugal, Singapore, Spain,
Sweden, and Switzerland
"PAL-D" : used in China and North Korea
"PAL-G" : used in Denmark, Finland, Germany, Italy, Malaysia,
The Netherlands, Norway, Portugal, Spain, Sweden,
and Switzerland
"PAL-H" : used in Belgium
"PAL-I" : used in Hong Kong and The United Kingdom
"PAL-K1" : used in Guinea
"PAL-M" : used in Brazil
"PAL-N" : used in France, Paraguay, and Uruguay
"PAL-NC" : used in Argentina
"NTSC-J" : used in Japan
"NTSC-M" : used in Canada, Chile, Colombia, Costa Rica, Ecuador,
Haiti, Honduras, Mexico, Panama, Puerto Rico, South
Korea, Taiwan, United States of America, and Venezuela

The line in your XF86Config file should be something like:

Option "TVStandard" "NTSC-M"

If you don't specify a TVStandard, or you specify an invalid value,
the default "NTSC-M" will be used. Note: if your country is not in
the above list, select the country closest to your location.

o The "ConnectedMonitor" option can be used to tell X to use the TV for
display. This should only be needed if your TV is not detected by
the video card, or you use a CRT (or digital flat panel) as your
boot display, but want to redirect X to use the TV. The line in
your config file should be:

Option "ConnectedMonitor" "TV"

o The "TVOutFormat" option can be used to force SVIDEO or COMPOSITE
output. Without this option the driver autodetects the output format.
Unfortunately, it doesn't always do this correctly. The output format
can be forced with the options:

Option "TVOutFormat" "SVIDEO"

or

Option "TVOutFormat" "COMPOSITE"

I haven't tested this to see if it works (I've lost my little RCA adapter cable thingee) but I'd be interested to know whether or not it does if you try it.

god
02-25-2003, 04:03 AM
*eyes shift left*
*eyes shift right*
Psst--- the file is /etc/modutils/aliases
*fades into the darkness*

god
02-25-2003, 04:04 AM
we will find out about the card soon enough... kernel ready, LETS GO!!!!

god
02-25-2003, 04:11 AM
i ran make on the new kernel, followed the directions (even added a couple of my own--back up every file before editing it)
the screen is MUCH clearer, BUT

my usb Dell logitech wheelmouse does not work anymore. Any ideas what went wrong? what to fix?

robelanator
02-25-2003, 04:27 AM
Psst--- the file is /etc/modutils/aliases

Edited. Thanks!


my usb Dell logitech wheelmouse does not work anymore. Any ideas what went wrong? what to fix?

That is strange. I'm using a generic USB wheelmouse myself. Does the mouse work and the wheel is non-functional or is the whole damned thing not working?

It sounds like you might have accidentally deleted part of your XF86Config file, specifically Section "InputDevice".

Here's a copy of mine for reference:

Section "InputDevice"
Identifier "USB Mouse"
Driver "mouse"
Option "Device" "/dev/input/mice"
Option "SendCoreEvents" "true"
Option "Protocol" "IMPS/2"
Option "ZAxisMapping" "4 5"
Option "Buttons" "5"
EndSection

Check that out.

god
02-25-2003, 04:48 AM
rob, i dont think that was it... when i reboot, the lines that go down the screen show an error that my usb devices are not accepting new numbers....

where is the log of the start up saved? i can post a copy...

aay
02-25-2003, 04:55 AM
Glad to see good feeback on this post. I'm moving it over to Hdd Install which is really where it should go. Continue to post your results. I'm sure others will appreciate.

robelanator
02-25-2003, 05:24 AM
where is the log of the start up saved? i can post a copy...

the log is called /var/log/dmesg

god
02-25-2003, 05:47 AM
I found out that if I turn the computer off compleatly, and let it sit, then boot to linux i can use my USB devices... but ONLY if i power off for a bit...

robelanator
02-25-2003, 06:08 AM
I found out that if I turn the computer off compleatly, and let it sit, then boot to linux i can use my USB devices... but ONLY if i power off for a bit...

That is just plain strange...and you didn't have this problem until after you installed the Nvidia drivers?

god
02-25-2003, 06:21 AM
no sir... and i didnt get those errors on startup either...

robelanator
02-25-2003, 06:36 AM
no sir... and i didnt get those errors on startup either...

Would you mind posting a copy of the errors in question?

god
02-25-2003, 06:51 AM
nerp

rupert
02-25-2003, 07:11 AM
Hi,
mmh, why do I get this error?

#/usr/bin/gcc-2.95 -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts #-Wparentheses -Wpointer-arith -Wcast-qual -Wno-multichar -O -MD -D__KERNEL__ #-DMODULE -D_LOOSE_KERNEL_NAMES -DNTRM -D_GNU_SOURCE #-D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 #-DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=4191 -DNV_UNIX -DNV_LINUX #-DNV_INT64_OK -DNVCPU_X86 -I. -I/usr/src/linux/include -Wno-cast-qual nv.c
#In file included from nv.c:14:
#nv-linux.h:24: linux/modversions.h: No such file or directory
#make: *** [nv.o] Error 1

???sorry im debian noob ;)

robelanator
02-25-2003, 07:12 AM
usb.c: registered new driver usb_mouse
usbmouse.c: v1.6:USB HID Boot Protocol mouse driver
usb.c: registered new driver hiddev
usb.c: registered new driver hid
hid-core.c: v1.8.1 Andreas Gal, Vojtech Pavlik <vojtech@suse.cz>
hid-core.c: USB HID support drivers
mice: PS/2 mouse device common for all mice

Well, the kernel is definately finding the mouse and loading the driver. Doesn't make any sense as to why it would stop working after a warm reboot... anyone got any ideas?

god
02-25-2003, 07:14 AM
shoot... this one does not contain the errors... this is one efter the mouse works... next time i reboot and it doenst work i will save a copy.... then post later

robelanator
02-25-2003, 07:47 AM
Hi,
mmh, why do I get this error?

Looks like you don't have your kernel headers installed. I'm not sure why that would be if you've installed using a standard Knoppix 3.1 CD.

First check which kernel version you are using by typing the following within a shell:

cat /proc/version

THEN download the appropriate headers using apt-get. For example, I'm running the 2.4.20 kernel so I would type:

apt-get install kernel-headers-2.4.20

IF you get some kind of "Couldn't find package" error, then instead type:

apt-get install kernel-headers

This will give you a list of the available kernel header packages for download.

NOW you need to creat a symlink to where the Nvidia makefile is looking. For my example, I would type:

ln -s /usr/src/kernel-headers-2.4.20 /usr/src/linux

You after completing these steps you should be able to make install the Nvidia drivers.

robelanator
02-25-2003, 07:48 AM
shoot... this one does not contain the errors... this is one efter the mouse works... next time i reboot and it doenst work i will save a copy.... then post later

Groovy.

If you wouldn't mind, could you edit your previous post and get rid of all that text? This scrolling is killing me :wink:

rupert
02-25-2003, 08:46 AM
mmh, thats the problem, I´m using the knoppixKDE version with
KDE3.1 on it, im unable to find the right kernel headers :(

robelanator
02-25-2003, 08:56 AM
mmh, thats the problem, I´m using the knoppixKDE version with
KDE3.1 on it, im unable to find the right kernel headers :(

You should still be able to cat /proc/version as I said above to get your kernel version and then download the correct ones following the instructions I laid out.

If you get stuck on one of the steps, then post your problem here and I'm sure we can help you through it.

Good luck! The Nvidia drivers are definately worth the work. KDE is infinately cleaner-looking AND I can now run Unreal Tournament and Quake 3 :D

rupert
02-25-2003, 09:54 AM
thats my concrete problem,
the running kernel is 2.4.19-kkde,
and when i donwload all kernel headers,
there is no kernel-headers-2.4.19-kkde,
i tried to rename one to kernel-headers-2.4.19-kkde,
but it doens´t work :(

robelanator
02-25-2003, 05:08 PM
thats my concrete problem,
the running kernel is 2.4.19-kkde,
and when i donwload all kernel headers,
there is no kernel-headers-2.4.19-kkde,
i tried to rename one to kernel-headers-2.4.19-kkde,
but it doens´t work :(

Just use this:


apt-get install kernel-headers-2.4.19

In other words, less the -kkde at the end. This SHOULD work, though if it doesn't don't worry because you'll just get a compile error and no changes will be made.

god
02-28-2003, 08:07 PM
I have some news to report on the TV out option.

I have gotten the geforce4 ti 4200 i have to work with TV out, with a few problems... The only one I need help with is if i use the TV out, my monitor, a flat panel, turns off, and ONLY the TV shows a picture.

Here is a link to the Nvidia Readme :http://download.nvidia.com/XFree86_40/1.0-4191/README

and here is a copy of the relevent /etc/X11/XFreeConfig-4 file...( I am omitting the portions that are related to the fact that it is a knoppix install, i.e. the extra mice and such....and only showing what I BELIEVE is relevent....)




#added follows
Option "TwinView"
Option "ConnectedMonitor" "DFP,TV"
Option "SecondMonitorHorizSync" "30-50"
Option "SecondMonitorVertRefresh" "60"
Option "TwinViewOrientation" "Clone"
Option "TVStandard" "NTSC-M"
Option "TVOutFormat" "SVIDEO"
Option "MetaModes" "1024x768,800x600"
#above added

BooYa
04-22-2003, 04:00 AM
First check which kernel version you are using by typing the following within a shell:

cat /proc/version

THEN download the appropriate headers using apt-get. For example, I'm running the 2.4.20 kernel so I would type:

apt-get install kernel-headers-2.4.20

IF you get some kind of "Couldn't find package" error, then instead type:

apt-get install kernel-headers

This will give you a list of the available kernel header packages for download.


Hi, I am using knoppix 3.2, and Here is what I get:
uname -r = 2.4.20-xfs

apt-get install kernel-headers-2.4.20
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package kernel-headers-2.4.20

apt-get install kernel-headers
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package kernel-headers


Ideas what to try next?

panther
09-03-2003, 08:16 PM
I did the same thing that Superstoned did!

I just started the same script, and it downloaded teh "hdd" version,
and then it did all the apt-get downloading stuff, compiled it for me,
modified my Xfree86 config file and switched back to KDE!

THAT WAS AMAZING!!!!

And plus my sound card kept on giving me errors [SB Audigy] and after this script [My card is a ASUS GeForce FX 5600] THE SOUND started working too!

Definetly worth a try!

http://www.knoppix.net/forum/viewtopic.php?t=4016

just download it, put it in /usr/local/bin, the write in this code :


cdmod +x nvidia-install.sh (filename may varie)

and then CTRL+ALT+F1

then
nivida-install.sh

thats it! Let the script do its work!

AMAZING!

raduen
11-11-2003, 12:02 PM
I'm a Newbie....

I did try everything on this forum , i'm still getting errors.

last thing i did was NVIDIA_kernel-1.0-4191 compile or make...

NVIDIA_kernel-1.0-4191# make install
/usr/bin/gcc-2.95 -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wcast-qual -Wno-multichar -O -MD -D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=4191 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -I. -I/usr/src/linux/include -Wno-cast-qual nv.c
In file included from /usr/include/asm/semaphore.h:42,
from /usr/src/linux/include/linux/fs.h:205,
from /usr/src/linux/include/linux/capability.h:17,
from /usr/src/linux/include/linux/binfmts.h:5,
from /usr/src/linux/include/linux/sched.h:9,
from /usr/src/linux/include/linux/mm.h:4,
from /usr/src/linux/include/linux/slab.h:14,
from nv-linux.h:63,
from nv.c:14:
/usr/src/linux/include/linux/rwsem.h: In function `down_read_trylock':
/usr/src/linux/include/linux/rwsem.h:57: warning: implicit declaration of function `__down_read_trylock'
/usr/src/linux/include/linux/rwsem.h: In function `down_write_trylock':
/usr/src/linux/include/linux/rwsem.h:79: warning: implicit declaration of function `__down_write_trylock'
In file included from /usr/src/linux/include/linux/mm.h:4,
from /usr/src/linux/include/linux/slab.h:14,
from nv-linux.h:63,
from nv.c:14:
/usr/src/linux/include/linux/sched.h: At top level:
/usr/src/linux/include/linux/sched.h:280: parse error before `extern'
/usr/src/linux/include/linux/sched.h:280: warning: no semicolon at end of struct or union
In file included from /usr/src/linux/include/linux/mm.h:4,
from /usr/src/linux/include/linux/slab.h:14,
from nv-linux.h:63,
from nv.c:14:
/usr/src/linux/include/linux/sched.h: In function `mmdrop':
/usr/src/linux/include/linux/sched.h:837: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/sched.h: At top level:
/usr/src/linux/include/linux/sched.h:875: conflicting types for `kernel_thread'
/usr/include/asm/processor.h:436: previous declaration of `kernel_thread'
/usr/src/linux/include/linux/sched.h:1067: warning: This file contains more `{'s than `}'s.
In file included from /usr/src/linux/include/linux/slab.h:14,
from nv-linux.h:63,
from nv.c:14:
/usr/src/linux/include/linux/mm.h: In function `__vma_unlink':
/usr/src/linux/include/linux/mm.h:582: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/mm.h:583: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/mm.h:584: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/slab.h: At top level:
/usr/src/linux/include/linux/mm.h:711: warning: This file contains more `{'s than `}'s.
In file included from nv-linux.h:63,
from nv.c:14:
/usr/src/linux/include/linux/slab.h:81: warning: This file contains more `{'s than `}'s.
In file included from nv.c:14:
nv-linux.h:382: warning: This file contains more `{'s than `}'s.
nv.c: In function `nv_get_phys_address':
nv.c:2233: invalid use of undefined type `struct mm_struct'
nv.c:2235: dereferencing pointer to incomplete type
nv.c:2218: warning: `pg_dir' might be used uninitialized in this function
make: *** [nv.o] Error 1

I allso tried a newer version file: NVIDIA_kernel-1.0-4363

this is the uotput:
/usr/bin/gcc-2.95 -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wcast-qual -Wno-multichar -O -MD -D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=4363 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -I. -I/usr/src/linux/include -Wno-cast-qual nv.c
In file included from nv.c:14:
nv-linux.h:167: #error "Couldn't determine number of arguments expected by remap_page_range!"
make: *** [nv.o] Error 1

Please help....

A. Jorge Garcia
11-17-2003, 12:14 AM
OOO, this is good. I'll have to try this later this week when I have time to play....

You see, I just got into this hdinstall world and my kids love bzflag, so I apt-got it (apt-get update and apt-get bzflag bzflag-server) as per the http://www.bzflag.org site. Now bzflag works ok, but not with all the acceleration I was getting with the nvidia drivers on the Morphix CD. So I'll have to give this a try!

Thanx

alert5
11-17-2003, 10:42 PM
robelanator,
Your procedure worked perfectly.
Thanks

A. Jorge Garcia
11-18-2003, 12:11 PM
OK, I followed this procedure to the letter and did not get the nvidia splash screen and now bzflag gives me the error "cannot open window - exiting" when I try to open it from a Konsole (which used to work, albeit without graphics acceleration...). I even ran NVChooser.sh before starting to make sure I was getting the right files for my Vanta card (BTW: they were the same files listed in this howto).

Everything seems to work fine for steps 1-4, but I think there's a problem with step 5 or 6. The first time I tried this procedure I added the line alias char-major-195 nvidia as per step 6. However, the line alias char_major-196 nvidia as already there. Upon reboot I got all kinds of char-major errors and then it defaulted to vesa. The next time I tried this procedure I added alias char-major-195 nvidia and commented out alias char_major-196 nvidia and everything boots ok, but no splash and no bz. The last trial I deleted alias char_major-196 nvidia and added alias char_major-195 nvidia with the same results.

What am I doing wrong? Please help!

TIA,

Paradox
12-14-2003, 08:09 PM
I just got my NVidia setup working, so I thought I;d share:

The newer NVidia drivers are packaged in an auto-run binary, instead of as source files.

They install just fine with two quick things I had to do:

*apt-get install the correct kernel-headers for your version
*export CC=/usr/bin/gcc-2.95

Then run the nvidia script, modify 3 lines in XF86Config-4 like they tell you to, and presto!

rickenbacherus
12-17-2003, 04:10 AM
Kano (http://www.kano.mipooh.net) has created yet more scripts to make life easy for us to install a kernel which also includes the forcedeth driver as well as acpi support. If you have onboard ethernet w/ an nvidia mobo then this is for you. No more nvnet.

Additionally there are scripts to install nvidia graphics drivers and make all necessary changes to config files for you. Simply install the kernel according to the instructions provided and run the nvidia install script after. It works.

nrj
12-18-2003, 10:44 AM
I have tried a variety of things to make this work, however, I am still stuck on something. I looked at Kanos' script and it starts out with an URL call. How does one apt-get the kernel-source with a broken NIC? Do you specify the Knoppix disk as the place for apt to look? Where does it look? I get a page full of errors complaining that apt-get doesn't find any sources because the network is unreachable. Man, I thought I had the nVidia kludge under control, but I still don't get this part. I keep missing easy things, but some things are at least looking more intuitive.

Stephen
12-18-2003, 03:20 PM
I have tried a variety of things to make this work, however, I am still stuck on something. I looked at Kanos' script and it starts out with an URL call. How does one apt-get the kernel-source with a broken NIC? Do you specify the Knoppix disk as the place for apt to look? Where does it look? I get a page full of errors complaining that apt-get doesn't find any sources because the network is unreachable. Man, I thought I had the nVidia kludge under control, but I still don't get this part. I keep missing easy things, but some things are at least looking more intuitive.

You do not need the kernel source you have the kernel headers on the Knoppix install. You just need to download the the drivers you need in your other OS and mount the partition and copy the file(s) and then compile.

rinswind
12-31-2003, 12:42 AM
On 22-dec-2003 NVIDIA released new drivers for linux.

They can be found here: www.nvidia.com/object/linux_display_archive.html
The sources from this driver are not directy aviable on this link any more. However if you do need the driver sources they can be found on the ftp server from NVIDIA. ftp://download.nvidia.com/XFree86/Linux-x86/1.0-5328/
the 1.0-5328 part is ofcourse your version number and could change in the future.

I Almost forgot, if you are in need off the headers from your kernel you could find them here: http://developer.linuxtag.net/knoppix/i386/. When you are a lover from good old fashioned handiwork you can get the sources here: http://developer.linuxtag.net/knoppix/sources/

The kernel version will show when you type

cat /proc/version on the commandline or in the console.

rickenbacherus
12-31-2003, 01:45 AM
I have tried a variety of things to make this work, however, I am still stuck on something. I looked at Kanos' script and it starts out with an URL call. How does one apt-get the kernel-source with a broken NIC? Do you specify the Knoppix disk as the place for apt to look? Where does it look? I get a page full of errors complaining that apt-get doesn't find any sources because the network is unreachable. Man, I thought I had the nVidia kludge under control, but I still don't get this part. I keep missing easy things, but some things are at least looking more intuitive.

Like Stephen said you could download the drivers and/or kernel and save them to a partition that's accessible by Linux. You could also get Kanotix (http://debian.tu-bs.de/knoppix/kanotix/) which has the forcedeth driver already installed. Of course I realize that you need a network connection from somewhere to do any of this. If none of these solutions work for you let me know.

sambolambo
08-16-2004, 12:09 AM
Hi robelanator,

I'm a noob to Linux and have been skeptical for years of the OS just because of the seemingly impossible driver installations for Usb modems. If I can get this running then i might consider actually installing Debian on a Hard Drive again.

You suggested using a symlink to install the NVIDIA driver any ideas how to do a similar "make install" on a live version of knoppix for Speedtouch Usb drivers?
What would I have to symlink and where?

the errors i've been getting when trying to "make install"
are
/usr/bin/install: cannot create regular file '/usr/local/sbin/modem_run': Read-only file system

which I understand is normal cause I'm using the Live knoppix off the CD.
But I really want to get this working without having to install to the hardrive.

I was using the install procedures found at :
http://www.knoppix.net/forum/viewtopic.php?p=55063

and my drivers where downloaded on my windows formated HD which suprisingly automounted when I booted from the knoppix CD.
I set the read and write permissions on that HD drive but "make install" which is part of the "speedtouchconf.sh" seems to want to install to the CD by default.

I successfully Configured the Software, Built the SpeedTouch Driver, but could not install obviously due to the my using LIVE knoppix.

Can you or anybody else help me please?

My willingness to use linux hangs in the balance.

Thanks
Sam

gootz
09-24-2004, 04:39 PM
Hi,

thanks for wiriting us this great Howto. Everything worked fine until i restarted the computer and XFree couldnt start up. It said "No Screen(s) found".
Do you have an idea how to fix this problem?

(Knppix 3.4, Kernel 2.4.26, nvidia drivers v1.0-4191, nVidia Geforce 2 MX)

Thanks,
Götz

shah
09-25-2004, 01:53 AM
Have you edit /etc/X11/XF86Config-4?
change "nv" to "nvidia" in Section "Device"
comment out or delete Load "GLcore" and Load "dri" in Section "Module".

:D :D :D :D

WimG
10-04-2004, 03:41 PM
Thanks for writing the howto, but I can't get it to work with the 2.6.7 kernel, I used the
NVIDIA-Linux-x86-1.0-5336-pkg1.run
I installed the 2.6.7.2 kernel header with synaptic made a symlink
I edited the /etc/X11/XF86Config-4
I closed x went into the console and made the symlink
ln -s /usr/src/kernel-headers-2.6.7-1 /usr/src/linux
I also did
export CC=/usr/bin/gcc-2.95
then
./NVIDIA-Linux-x86-1.0-5336-pkg1.run
It wanted to install kernel headers(i think from their site)
It could no precompiled kernel(or something like that)) found.
It also complained still about the gcc compiler (Also when done ln -s /usr/src/kernel-headers-2.6.7-1 /usr/src/linux or not)

Whatever I tried several other possibility's to get the driver installed including new
reinstallations It really drives me nuts.
:cry:

shah
10-04-2004, 03:47 PM
http://www.knoppix.net/forum/viewtopic.php?t=11619&highlight=nvidia
:D :D

WimG
10-04-2004, 06:18 PM
No doesn't work Tried the whole thing with offcourse change where is written 2.6.6 to
2.6.7 etc etc, really everything seems to work fine, compiling etc, but when I restart
It say s can't load NVIDIA module and get a nice loggin prompt.
There must be something different when using the Knoppix3.4 knoppix26 and hd install.

shah
10-05-2004, 06:35 AM
Since you already compile your kernel, your kernel header should be there.
Get a new nvidia driver from: http://download.nvidia.com/XFree86/Linux-x86/1.0-6111/NVIDIA-Linux-x86-1.0-6111-pkg1.run

Then get out from kde to command line screen and run:
export CC=/usr/bin/gcc-2.95
sh NVIDIA-Linux-x86-1.0-6111-pkg1.run

or you could try kano's script:
http://kanotix.com/files/install-kernel-source-vanilla.sh
http://kanotix.com/files/install-nvidia-6111-debian.sh
Run install-kernel-source-vanilla.sh first, follow by install-nvidia-6111-debian.sh.
:D :D

WimG
10-05-2004, 06:22 PM
No didn't work eather then tried kanotix script after a new install.
It hopefully started with vanilla script executing downloading installing and ended with:
cp: cannot stat 'kernel-headers-2.6.7/include' :Unknown file or map
finished
Needlles to say that the 6111 script didn't work after it als.
Maybe when I find time I will try Kanotix still, to give it a try thanks for the links.

WimG
10-05-2004, 06:23 PM
No didn't work eather then tried kanotix script after a new install.
It hopefully started with vanilla script executing downloading installing and ended with:
cp: cannot stat 'kernel-headers-2.6.7/include' :Unknown file or map
finished
Needlles to say that the 6111 script didn't work after it also.
Maybe when I find time I will try Kanotix still, to give it a try thanks for the links.

Oeps double post :oops:

WimG
10-06-2004, 10:10 PM
So I tried Kanotix and yes worked directly, still wondering why it doesn't work on the knoppix 3.4 anyway thanks a lot for the answers :P