Kubuntu - debian noobie - nVidia graphics driver question

I've built a new pc based on an EPoX 9NPA nForce 4 Ultra motherboard and an XFX GF 6600GT 256MB graphics card. I had quite a time getting a graphics display, got it going using the generic vesa driver. When trying to install nVidia's driver, I've learned the linux kernal is built with gcc 3.4, but when I try to install gcc (isn't bundled with Kubuntu), apt-get wants to install 4.0. Man page says apt-get install gcc=3.4, but when I try that, I get a message that he can't find it in the sources list. What to do?

The other approach would be to install gcc 4.0, recompile the kernel, and build the nvidia stuff, but I'd really like to start with a kernel .config file that matches my system. Is there a way to generate one?

/dennis

Comments

Re: Kubuntu - debian noobie - nVidia graphics driver questi

Sure thing, glad to be of assistance.

Re: Kubuntu - debian noobie - nVidia graphics driver questi

Dave,

Turns out I didn't have the complete set of kernel headers installed. Once I got the linux-headers-2.6.12-9 and linux-headers-2.6.12-9-amd64-generic as well as linux-source-2.6.12 the NVIDIA script ran, built, and then I installed the driver. Works! I'll pound on it for awhile, see if it locks up or goes unstable, or anything, but for now, he's up! Thanks a bunch for helping me along.

/dennis

Re: Kubuntu - debian noobie - nVidia graphics driver questi

I guess it'd be the orig which is just 2.6.12, and the diff which is the diff between 2.6.12 and 2.6.12-9 ? I think.

Re: Kubuntu - debian noobie - nVidia graphics driver questi

Hi Dave,

I really appreciate your help, and I hope I don't wear out your patience ;-) I'm a bit confused by Debian, but I'll get there.

The page link you gave informed me of the exact version of the kernel I've got with the amd64-generic: 2.6.12-9.23. Cool so far. Down at the page bottom I see all these:

Source Package: linux-source-2.6.12, Download: [dsc] [linux-source-2.6.12_2.6.12.orig.tar.gz] [linux-source-2.6.12_2.6.12-9.23.diff.gz]

Should I get just the linux-source-2.6.12, or the ...orig.tar.gz and the diff.gz, or all three? What would I do with the diff.gz? Unpack all into the same directory?

Best,

/dennis

Re: Kubuntu - debian noobie - nVidia graphics driver questi

Interesting, sounds like you may have misconfigured your Kernel when you did make xconfig....or make menu config.

You can get the Kernel sources for your generic Kernel here:
http://packages.ubuntu.org.cn/breezy/base/linux-image-2.6.12-9-amd64-generic

You can find the links to the source tarballs at the bottom of the page.

Kernel source should reside in /usr/src

Good Luck.

Re: Kubuntu - debian noobie - nVidia graphics driver questi

Celebrated too soon. Kubuntu/Ubuntu apt sources do not seem to have a copy of the kernel sources for the kernel built into the version I installed. uname says: 2.6.12-9-amd64-generic, but the kernel sources I see in the apt repository is linux-source-2.6.12, and the version details say 2.6.12-10.24.

I gave up on that, downloaded the updated sources, tried to recompile the kernel, and got kernel panic.

Not sure where to go from here.

Any ideas?

/dennis

Re: Kubuntu - debian noobie - nVidia graphics driver questi

Ahhhhhh. Yes, that works. Many thanks, guys.

/dennis

Re: Kubuntu - debian noobie - nVidia graphics driver questi

[quote="Anonymous"]? I just checked again to make sure what I thought I read in man agp-get was actually there, and it is. Here's a clip: Install <snip> If a hyphen is appended to the package name (with no intervening space), the identified package will be re‐moved if it is installed...... A specific version of a package can be selected for installation by following the package name with an equals and the version of the package to select. This will cause that version to be located and selected for install. </snip> But I'll try it anyway; like I say, it couldn't hurt. I appreciate the post. I'll give the procedure a try this evening after work.[/quote] That's talking about something different - appending a - (apt-get install gcc- would remove the gcc package). gcc 3.4 is named gcc-3.4 (that is, it doesn't end with a hyphen) so installing gcc-3.4 will install it, not remove it.

Re: Kubuntu - debian noobie - nVidia graphics driver questi

If you want to just install 3.4 you should do:
apt-get install gcc-3.4

That's gcc-3.4 (dash) not gcc=3.4 (equals)

It's really easy to build the nvidia stuff but you need the proper kernel headers. I'd just apt-get install kernel-source-X.X.X to match the Kernel you are running. Then the nvidia build should work.

I've done this a million times. Post again if it isn't clear and I'll try to clarify.

Re: Kubuntu - debian noobie - nVidia graphics driver questi

Hi Dave,

Thanks for the post. I'll try the hyphen, it couldn't hurt, since the package isn't installed at the moment anyway. The proof is in the pudding, right? I just checked again to make sure what I thought I read in man agp-get was actually there, and it is. Here's a clip:

Install
<snip>
If a hyphen is appended to the package name (with no intervening space), the identified package will be re‐moved if it is installed...... A specific version of a package can be selected for installation by following the package name with an equals and the version of the package to select. This will cause that version to be located and selected for install.
</snip>

But I'll try it anyway; like I say, it couldn't hurt.

I appreciate the post. I'll give the procedure a try this evening after work.