Anyone got Nvidia 3D Acceleration working on Lenny?
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Yup. I have a custom kernel and headers, and for me it's as easy as this:
(1) Download latest NVidia driver
(2) As root, do sh NVidia<insert_long_driver_name_here>
That's it. The driver should walk you through the steps then. It will first look for a pre-made module for your kernel. For me, it doesn't find one, so it then offers to build one. I say yes, and it builds the kernel. Then it offers to write a new version of /etc/X11/xorg.conf and backup the old one. I say yes, and it does.
You should probably install build-essential and module-assistant first, if you don't have those or your kernel headers yet. So before my 1 and 2 above, maybe this:
The second step should cause module-assistant to get your kernel headers and any other tools you need for a proper build environment.
In my experience, it is as easy as that. (I used to do the Debian way with just module-assistant, but that was not going well for a while, so I switched. There are pros and cons to both methods, I think.)
Probably little need for me to reiterate what has already been said, but I have never had any luck downloading the Nvidia drivers through the debian repos, Downloading it from Nvidia's website and installing it as described works like a charm though. Sometimes things will break after a kernel upgrade, but usually all you need to do is reinstall either that driver or the newest version...
sudo /etc/init.d/gdm stop
sh /place/you/saved/NVIDIA_DRIVER
Then the menu for the nvidia installer should come up and you should be done. This should all take less than the time it took to reboot your PC into the new kernel. If you have questions or problems, please ask!
Please note you're upgrading your kernel and this can impact other things tied to your current kernel.
With Lenny, the Nvidia installer always produces an error regarding gcc version where the current version is newer than the 4.1 used for the kernel.
I shut down the installer and as root issue the command below and then try the Nvidia installer again. I'm pretty sure I still had to do this with the 2.6.24-1 kernel.
With Lenny, the Nvidia installer always produces an error regarding gcc version where the current version is newer than the 4.1 used for the kernel.
I shut down the installer and as root issue the command below and then try the Nvidia installer again. I'm pretty sure I still had to do this with the 2.6.24-1 kernel.
Code:
export CC=gcc-4.1
Ignore that message, I know it says if the versions differ that it wont work, but it Lies
Ignore that message, I know it says if the versions differ that it wont work, but it Lies
Maybe for you, it all depends on which version(s) are in your path. I've tried going ahead anyway and it did not run compiz-fusion, nor would I see the nvidia splash during boot-up.
You guys are great. Sorry for the delay in response. Went out awhile. I guess I have never done the nvidia way. I keep trying to do the Debian Way found at the all too familiar wiki. I also tried envy and automatix2. I always ended up with an unbootable system and not being able to go back to vesa and the generic driver. Anyway, thanks for all the replies. I am back on etch but I would probably try again one more time after more than 10 reinstalls.
Again, thanks!
Quote:
my amerikan friends call me tonya
i am female and i don't do windows and definitely don't do macs..
i fly a LearJet
An Austrian girl who uses Linux and flies a Learjet is so sexy. Ack sorry for the off topic. I can't help myself....
Last edited by dannybuntu; 04-12-2008 at 10:40 AM.
Yes, if you've been using apt-get up until now. Aptitude should offer you an option to say no and bail out. I'm assuming you did that. Enter this: aptitude keep-all You should be fine after that. Try the installation again, and the output should be more sane.
Last edited by Telemachos; 04-12-2008 at 06:51 PM.
You should show everything including the command that produced this list. When was the last time you applied updates? Did you upgrade from Etch?
It's true that more information generally helps, but I'm willing to bet my left arm that the reason he got that output is simple: He removed a piece (probably small) of the Gnome Desktop Environment meta-package, using apt-get or Synaptic, and now aptitude is telling him (correctly, given the way that it's written) that it needs to remove all of Gnome Desktop Environment. The aptitude keep-all command will fix the problem (which comes up constantly).
You should show everything including the command that produced this list. When was the last time you applied updates? Did you upgrade from Etch?
Agreed. I have both upgraded from Etch and done a clean install. This is my 12th attempt - a clean install from a downloaded Testing iso. So far the only thing I have added is pppoeconf. Please point me to the logs that you require.
Since there are many variations:
I would attempt to do the following steps, hopefully when I am able to come back I could show the results:
Code:
(1) aptitude install build-essential module-assistant
(2) module-assistant prepare
(3) Download latest NVidia driver
(4) As root, do sh NVidia<insert_long_driver_name_here>
Specs:
Quote:
2.6.22-3-686
Debian GNU/Linux lenny/sid \n \l
Running Gnome
Geforce 2 MX 400
Driver to be installed: NVIDIA-Linux-x86-96.43.05-pkg1.run
Thank you for the patient help, please bear with me as I am also experiencing Internet connectivity issues: ISP issues.
UPDATE: First Try Unsuccessful 04/14/08 2:08 AM
1. nvidia-installer log
Quote:
Using: nvidia-installer ncurses user interface
WARNING: Skipping the runlevel check (the utility `runlevel` failed to run).
-> License accepted.
-> No precompiled kernel interface was found to match your kernel; would you li
ke the installer to attempt to download a kernel interface for your kernel f
rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: Yes)
-> No matching precompiled kernel interface was found on the NVIDIA ftp site;
this means that the installer will need to compile a kernel interface for
your kernel.
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
-> The CC version check failed:
The compiler used to compile the kernel (gcc 4.1) does not exactly match the
current compiler (gcc 4.2). The Linux 2.6 kernel module loader rejects kern
el modules built with a version of gcc that does not exactly match that of t
he compiler used to build the running kernel.
If you know what you are doing and want to ignore the gcc version check, sel
ect "No" to continue installation. Otherwise, select "Yes" to abort install
ation, set the CC environment variable to the name of the compiler used to c
ompile your kernel, and restart installation. Abort now? (Answer: No)
ERROR: Unable to find the kernel source tree for the currently running kernel.
Please make sure you have installed the kernel source files for your
kernel and that they are properly configured; on Red Hat Linux systems,
for example, be sure you have the 'kernel-source' or 'kernel-devel' RPM
installed. If you know the correct kernel source files are installed,
you may specify the kernel source path with the '--kernel-source-path'
command line option.
ERROR: Installation has failed. Please see the file
'/var/log/nvidia-installer.log' for details. You may find suggestions
on fixing installation problems in the README available on the Linux
driver download page at www.nvidia.com.
If in doubt, please post the information bwkaz requested, i.e. information aobut the default system compiler and the target kernel. Here's an example:
# gcc -v
(...)
gcc version 4.2.3 20071123 (prerelease) (Debian 4.2.2-4)
# cat /proc/version
Linux version 2.6.23.9 (root@osprey) (gcc version 3.4.6 (Debian 3.4.6-6)) #3 PREEMPT Mon Dec 31 10:38:16 CET 2007
As you can see, the compiler versions don't match. In order to successfully build and install a kernel module for the above kernel, you'd need to do something along these lines (this applies to Debian GNU/Linux and Ubuntu systems, installation steps vary between distributions):
# apt-get install gcc-3.4
# CC=gcc-3.4 sh NVIDIA-linux-x86-169.07-pkg1.run
You may also need to install glibc and other development files; `apt-get install build-essential` achieves this on Debian GNU/Linux and derivatives.
daniel@debian:/var/log$ cat /proc/version
Linux version 2.6.22-3-686 (Debian 2.6.22-6) (maks@debian.org) (gcc version 4.1.3 20071019 (prerelease) (Debian 4.1.2-17)) #1 SMP Mon Nov 12 08:32:57 UTC 2007
then:
Quote:
sudo apt-get install gcc-4.1
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
cpp-4.1 cpp-4.3 gcc-4.1-base gcc-4.3 gcc-4.3-base gcc-4.3-multilib gfortran-4.3 gfortran-4.3-multilib lib64gcc1
lib64gfortran3 lib64gomp1 lib64stdc++6 libffi4 libgcc1 libgfortran3 libgomp1 libmudflap0 libmudflap0-dev libobjc2
libstdc++6
Suggested packages:
gcc-4.1-locales gcc-4.3-locales gcc-4.1-doc gcc-4.1-multilib gcc-4.3-doc libgcc1-dbg libgomp1-dbg libmudflap0-4.3-dbg
libmudflap0-4.3-dev lib64mudflap0 gfortran-4.3-doc libgfortran3-dbg
The following NEW packages will be installed:
cpp-4.1 gcc-4.1 gcc-4.1-base libmudflap0 libmudflap0-dev
The following packages will be upgraded:
cpp-4.3 gcc-4.3 gcc-4.3-base gcc-4.3-multilib gfortran-4.3 gfortran-4.3-multilib lib64gcc1 lib64gfortran3 lib64gomp1
lib64stdc++6 libffi4 libgcc1 libgfortran3 libgomp1 libobjc2 libstdc++6
16 upgraded, 5 newly installed, 0 to remove and 300 not upgraded.
Need to get 16.3MB of archives.
After this operation, 6828kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Quote:
then:
# CC=gcc-4.1 sh NVIDIA-Linux-x86-96.43.05-pkg1.run
This is the time I go to CTRL+ALT+F1
Last edited by dannybuntu; 04-13-2008 at 01:41 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.