LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 04-11-2008, 05:38 AM   #1
dannybuntu
Member
 
Registered: Nov 2006
Location: Manila, Philippines
Distribution: Kubuntu, Debian
Posts: 50

Rep: Reputation: Disabled
Anyone got Nvidia 3D Acceleration working on Lenny?


I haven't, if you have please share. Thanks
 
Old 04-11-2008, 07:03 AM   #2
Telemachos
Member
 
Registered: May 2007
Distribution: Debian
Posts: 754

Rep: Reputation: 60
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:

(1) aptitude install build-essential module-assistant
(2) module-assistant prepare

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.)
 
Old 04-11-2008, 08:51 AM   #3
utanja
Member
 
Registered: Apr 2004
Location: Europe:Salzburg Austria USA:Orlando,Florida;
Distribution: Debian
Posts: 643

Rep: Reputation: 32
Quote:
Originally Posted by dannybuntu View Post
I haven't, if you have please share. Thanks
Just use the NVIVIA proprietary drivers and download the appropriate headers for the stock kernel...

apt-get install linux-headers-$(uname -r)
sh NVIDIAxxxxxxxx.run

make sure you read the first few sticky's in the NVIDIA forums...

 
Old 04-11-2008, 11:08 AM   #4
war1025
Member
 
Registered: Jul 2006
Distribution: Debian: Squeeze AMD64
Posts: 318

Rep: Reputation: 32
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...
 
Old 04-11-2008, 01:12 PM   #5
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
just do the following:

1 - download the Nvidia propriatery drivers from nvidia.com

run the command uname -r and see what kernel you're using and where you see *, make sure you grab the same kernel.

sudo apt-get install linux-image-2.6.24-1-*
sudo apt-get install linux-headers-2.6.24-1-*
sudo apt-get install gcc

2 - reboot into the new kernel.


Then simply press "ctl + alt + f1"

Now type the following:

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.
 
Old 04-11-2008, 06:29 PM   #6
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
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
 
Old 04-11-2008, 06:32 PM   #7
Zaskar
Member
 
Registered: Feb 2004
Location: NY
Distribution: Debian (Testing)
Posts: 219

Rep: Reputation: 30
Quote:
Originally Posted by Junior Hacker View Post
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
 
Old 04-11-2008, 06:54 PM   #8
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Quote:
Originally Posted by Zaskar View Post
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.
 
Old 04-11-2008, 07:24 PM   #9
utanja
Member
 
Registered: Apr 2004
Location: Europe:Salzburg Austria USA:Orlando,Florida;
Distribution: Debian
Posts: 643

Rep: Reputation: 32
Quote:
Originally Posted by Zaskar View Post
Ignore that message, I know it says if the versions differ that it wont work, but it Lies
agreed....never stop my system....
 
Old 04-12-2008, 10:37 AM   #10
dannybuntu
Member
 
Registered: Nov 2006
Location: Manila, Philippines
Distribution: Kubuntu, Debian
Posts: 50

Original Poster
Rep: Reputation: Disabled
thanks all

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.
 
Old 04-12-2008, 05:07 PM   #11
dannybuntu
Member
 
Registered: Nov 2006
Location: Manila, Philippines
Distribution: Kubuntu, Debian
Posts: 50

Original Poster
Rep: Reputation: Disabled
Okay

Quote:
(1) aptitude install build-essential module-assistant
(2) module-assistant prepare
Is it normal for #1 to uninstall so many stuff?

Code:
bug-buddy{u} eog{u} esound{u} fast-user-switch-applet{u} file-roller{u} 
  gcalctool{u} gconf-editor{u} gdb{u} gdm{u} gedit{u} gedit-common{u} 
  gnome-backgrounds{u} gnome-cards-data{u} gnome-core{u} gnome-games{u} 
  gnome-games-data{u} gnome-keyring-manager{u} gnome-nettool{u} 
  gnome-system-tools{u} gnome-themes{u} gtk2-engines{u} 
  gtk2-engines-pixbuf{u} gtk2-engines-spherecrystal{u} gtkhtml3.8{u} 
  gucharmap{u} guile-1.6-libs{u} industrial-cursor-theme{u} 
  libdirectfb-0.9-25{u} libdjvulibre15{u} libdmx1{u} libecal1.2-6{u} 
  libedata-cal1.2-5{u} libedataserver1.2-7{u} libeel2-2.14{u} 
  libegroupwise1.2-10{u} libexchange-storage1.2-1{u} libflac7{u} 
  libgail17{u} libgksu1.2-0{u} libgksuui1.0-1{u} libgnomevfs2-bin{u} 
  libgpod0{u} libgtkhtml3.8-15{u} libgucharmap4{u} libguile-ltdl-1{u} 
  libiw28{u} libnautilus-burn3{u} libopal-2.2.0{u} libpci2{u} libpisync0{u} 
  libpoppler0c2{u} libpoppler0c2-glib{u} libpostproc0d{u} libpt-1.10.0{u} 
  libpt-plugins-alsa{u} libpt-plugins-v4l{u} libqthreads-12{u} 
  libtotem-plparser1{u} libwnck18{u} libxklavier10{u} liferea-xulrunner{u} 
  mkisofs{u} pmount{u} python-xdg{u} unzip{u} vino{u} zenity{u} zip{u} 
0 packages upgraded, 0 newly installed, 68 to remove and 1 not upgraded.
Need to get 0B of archives. After unpacking 174MB will be freed.

Last edited by dannybuntu; 04-12-2008 at 05:07 PM. Reason: wrong tags...
 
Old 04-12-2008, 06:45 PM   #12
Telemachos
Member
 
Registered: May 2007
Distribution: Debian
Posts: 754

Rep: Reputation: 60
Quote:
Originally Posted by dannybuntu View Post
Is it normal for #1 to uninstall so many stuff
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.
 
Old 04-12-2008, 10:13 PM   #13
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Quote:
Is it normal for #1 to uninstall so many stuff?
You should show everything including the command that produced this list. When was the last time you applied updates? Did you upgrade from Etch?
 
Old 04-13-2008, 06:28 AM   #14
Telemachos
Member
 
Registered: May 2007
Distribution: Debian
Posts: 754

Rep: Reputation: 60
Quote:
Originally Posted by Junior Hacker View Post
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).
 
Old 04-13-2008, 12:21 PM   #15
dannybuntu
Member
 
Registered: Nov 2006
Location: Manila, Philippines
Distribution: Kubuntu, Debian
Posts: 50

Original Poster
Rep: Reputation: Disabled
sorry for the late reply

Quote:
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.
I found this: http://www.nvnews.net/vbulletin/showthread.php?t=9887

Quote:
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.

Please also see http://www.nvnews.net/vbulletin/showthread.php?t=72490.
I proceeded with:

Quote:
daniel@debian:/var/log$ gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --disable-libmudflap --enable-targets=all --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.2.3 (Debian 4.2.3-2)
then:

Quote:
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
my gdm not working in lenny radiodee1 Debian 11 05-01-2009 07:39 PM
lenny +ipw3945 +amd64 not working cybrjackle Debian 5 08-05-2007 09:36 AM
NVidia driver missing libc on Lenny (2.6.21-2-amd64) krassi Debian 5 07-28-2007 11:08 AM
nvidia: Hardware acceleration without the official nvidia drivers? jaakkop Linux - Hardware 3 06-01-2006 07:44 AM
I've installed my NVIDIA drivers but my 3D acceleration is not working? Moses420ca Linux - Newbie 7 09-02-2003 12:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration