Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 24 Apr 2014, 07:19
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
How to install NVIDIA graphics drivers.
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 3 [42 Posts]   Goto page: 1, 2, 3 Next
Author Message
Pizzasgood


Joined: 04 May 2005
Posts: 6270
Location: Knoxville, TN, USA

PostPosted: Fri 06 Jan 2006, 21:49    Post subject:  How to install NVIDIA graphics drivers.  

How to install NVIDIA graphics drivers.

Okay, you have a couple options. I'd try MU and tempestuous's drivers first, because they are pre-compiled.
MU wrote:
there are pre-compiled nvidia-packages here:
http://dotpups.de/tests/nvidia/

So you need no compiler.
Follow the readmes.
These packages were made to be added to the 3D-wizard, but I had no time yet to do it, so we got no feedback yet from others, if they work.
For tempestous the one for the new old cards works.
Mark


Otherwise follow the method below to install the proprietary drivers. Note: I have not tested the following method with Puppy 2.xx, only 1.x.x. You should probably treat it as a harddrive install for Puppy 2.xx, since the root partition is now persistant. I'm not entirely sure if that will work though. Use at your own risk, I guess.
-------------------------------------------------------------------

Okay, before you do this, you will need to have xorg running. Go get that sorted out, then you can continue. Also, you need the development addon (usr_devx.sfs) to install the drivers.
usr_devx.sfs can be found here. Once downloaded, you should put it in one of two places:
  • The same directory as the pup001 (if you boot from CD/pendrive/option1-hd-install)
  • The / directory (if you have an option2-hd-install)
After downloading and placing it you should reboot the system (important!)



Okay, next you need to download the correct package from
http://www.nvidia.com/object/unix.html
I used this one and it worked fine.

Tjotser wrote:
You should use 7174 drivers for the "legacy" cards.
7174 Drivers


That file you just downloaded is a .run file. Kinda like a dotpup. You need to exit from X, then run
Code:
sh XXXXXXXXXX.run
where XXXXXXXXX.run is the package you just downloaded. Typing the first couple letters then pressing the tab key comes in handy here Wink

Okay, it should be running now. Just hit okay for everything. You can even read the license agreement if you're feeling masochistic.

When it gets to the part about updating the xorg.conf file, it should work. I didn't try it, so I don't know for sure. If it doesn't, it's easy to do by hand.
Open /etc/X11/xorg.conf (you might want to back it up first). Now, for the actual editing, I'll quote the readme
Quote:
Remove the line:

Driver "nv"
(or Driver "vesa")
(or Driver "fbdev")

and replace it with the line:

Driver "nvidia"

Remove the following lines:

Load "dri"
Load "GLCore"

In the "Module" section of the file, add this line (if it does not already
exist):

Load "glx"

There are numerous options that may be added to the X config file to tune the
NVIDIA X driver. Please see Appendix D for a complete list of these options.


Whether it did it automatically or you did it manually, it is now installed. Start X back up ("startx" will do the trick), and all will (hopefully) work.

Those who have an Option-2 Hard Drive Install should stop here.

If you don't have an option2-hd-install, it will only work until you reboot. There's stuff that isn't saved. Bummer. Fortunately for you, I've already figured out how to take care of this. But don't reboot until you finish the following instructions. Otherwise you will have to reinstall it to complete them.

First, you're going to have to make a directory to contain the files. I used /root/.nvidia and will use that in this example. You can use whatever you want. Just keep it somewhere that will not dissappear with each boot.

Okay, now we need to copy the needed files to that directory. The first one is /var/lib/nvidia/. Just go to /var/lib and drag the nvidia folder into the one you're putting them in.

Next on the list is /lib/modules/2.4.29/video/nvidia.o. This one is a file, not a directory. Actually, it's the 3D accelleration module, so it's very important Wink .

Okay, now to have it put them back with each boot, and initialize the driver. Go to the file /etc/rc.d/rc.local. This is where custom stuff that happens with each boot is stored. Now, add the following lines to it and save:
Code:
###NVIDIA setup stuff.
cp -R /root/.nvidia/nvidia /var/lib/
mkdir /lib/modules/2.4.29/video/
cp /root/.nvidia/nvidia.o /lib/modules/2.4.29/video/

/usr/sbin/ldconfig
/sbin/depmod -aq

Remember to alter any paths if you didn't use the ones I suggested.

Now, it should work. Reboot and see. If not, well, then we missed something. Post a complaint in this thread and we'll try to sort you out.



FYI, I have it working with a 64MB NVIDIA GeForce4 MX 4000. That's all I have to test with, and I don't have a standard xorg.conf file either. So your milage may vary. Not by much hopefully.

After it's all installed, you can go to /usr/share/doc/NVIDIA_GLX-1.0/ to find a manual with a bunch of information. The readme has a list of extra settings you can add to xorg.conf to alter the setup. One of them lets you skip the splash screen. You add
Code:
    Option      "NoLogo" "true"

to /etc/X11/xorg.conf in the Device section.

There's also a program that comes with it that can change the screen colors and such. It is called nvidia-settings.desktop and can be found in /usr/share/applications/.

_________________
Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib


Last edited by Pizzasgood on Wed 16 Aug 2006, 21:18; edited 11 times in total
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Fri 06 Jan 2006, 22:01    Post subject:  

/lib/modules/2.4.29/video/nvidia.o

That is the 3D -acelleration-module for the Kernel.
Without it, you should be able to run X, but just without 3D-acelleration.

The proprietary ATI-drivers should use a similar way for installation.

Fine HowTo, thank you Smile
Mark
Back to top
View user's profile Send private message Visit poster's website 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 10691
Location: Arizona USA

PostPosted: Sat 07 Jan 2006, 00:17    Post subject:  

Very nice, Pizza. Thanks. Smile
Back to top
View user's profile Send private message 
Guest
Guest


PostPosted: Sat 07 Jan 2006, 02:20    Post subject:  

As I remember an unpacked kernel source with .config file (for the currently running kernel) and have run make depmod is needed to build the kernel module, and of course the puppy build enviroment. Correct me if I'm wrong.
Back to top
Pizzasgood


Joined: 04 May 2005
Posts: 6270
Location: Knoxville, TN, USA

PostPosted: Sat 07 Jan 2006, 11:53    Post subject:  

You do need the developer addon (usr_devx.sfs), but I don't have kernal source and it worked just fine. Unless that's in the usr_devx.sfs file itself.

Unless you do need it, but it works halfway without it, in which case that would explain why I had no error messages.

_________________
Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib

Back to top
View user's profile Send private message Visit poster's website 
Guest
Guest


PostPosted: Sat 07 Jan 2006, 22:36    Post subject:  

I have the old Riva TNT and unfortunately nVidia doesn't want to support this anymore. Does anyone know where to find the 3D accelerelated Riva-TNT Linux driver?

Thanks
Back to top
BionicCommando


Joined: 19 Nov 2005
Posts: 21
Location: Devon,UK

PostPosted: Tue 07 Feb 2006, 20:13    Post subject:  

Pizzasgood

Firstly, my apologies since I'm quite new to Linux

I'm using Puppy 1.07 with ALSA, Xorg and an NVidia geforce mx400

I've followed your instructions
downloaded the nvidia installer
downloaded usr_devx.fs
rebooted puppy
then quit x
then sh xxxxxx.run
but..

..I'm having trouble getting the nvidia installer to do anything - it comes up with messages asking about 'ldconfig' and 'glibc'. I continue to hit enter twice and then the install just stops back at the # prompt. Also I noticed that the var/lib/nvidia folder you mention is not there either so obviously the install did stop.

Have I missed something to do with the usr_devx thing ( i assume that's what you meant by 'development add-on'). Please help!

Thanks
Back to top
View user's profile Send private message 
Pizzasgood


Joined: 04 May 2005
Posts: 6270
Location: Knoxville, TN, USA

PostPosted: Tue 07 Feb 2006, 20:53    Post subject:  

Maybe the usr_devx.fs isn't installed properly? Open a console and type
Code:
which g++

If it returns something (should be /usr/bin/g++) then it is. Otherwise it isn't.

usr_devx.fs needs to be in the same place as the pup001 file. If you have a harddrive install instead, I think it needs to be in /.

I think that't probably the problem. If I remember right, I once tried installing it in a total ramdisk (so it didn't mount usr_devx.fs) and got that same error.

_________________
Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib

Back to top
View user's profile Send private message Visit poster's website 
BionicCommando


Joined: 19 Nov 2005
Posts: 21
Location: Devon,UK

PostPosted: Thu 09 Feb 2006, 19:14    Post subject:  

Pizzas'

Me again!

OK. moved the user_dev.fs to appropriate folder, robooted, tested with 'which g++' in rxvt,which replied
'/usr/bin/g++'

so far so good!

now when I run the installer again
I get this..

No precompiled kernel interface was found to match your kernel; would you like the installer to attempt to download a kernel interface for your kernel from the NVIDIA ftp site (ftp://download.nvidia.com)?

I chose yes

then I get

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.

then..

Performing CC test with CC="cc".
gcc-version-check failed:


and..

Could not compile gcc-version-check.c. Please be sure you have your distribution's libc development package installed and that 'cc' is a valid C compiler name.


So I maybe getting out of my depth here. As you can imagine since I didn't even have the faintest clue about how to install and test for the user_devx.fs that I have never tried to compile anything before let alone a 'kernel interface'..

What should I do? Abandon this notion of ever installing a Linux driver for my gfx card? Maybe wait until someone finds an easier way of doing this or should I persist in being burden upon yourself until this nut is cracked...?


btw here is a copy of the log that it generated - don't know if it is of any help

Code:
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Thu Feb  9 22:19:52 2006

option status:
  license pre-accepted    : false
  update                  : false
  force update            : false
  expert                  : false
  uninstall               : false
  driver info             : false
  no precompiled interface: false
  no ncurses color        : false
  query latest driver ver : false
  OpenGL header files     : true
  no questions            : false
  silent                  : false
  no backup               : false
  kernel module only      : false
  sanity                  : false
  add this kernel         : false
  no runlevel check       : false
  no network              : false
  no ABI note             : false
  no RPMs                 : false
  force tls               : (not specified)
  force compat32 tls      : (not specified)
  X install prefix        : /usr/X11R6
  OpenGL install prefix   : /usr
  compat32 install prefix : (not specified)
  installer install prefix: /usr
  utility install prefix  : /usr
  kernel name             : (not specified)
  kernel include path     : (not specified)
  kernel source path      : (not specified)
  kernel output path      : (not specified)
  kernel install path     : (not specified)
  proc mount point        : /proc
  ui                      : (not specified)
  tmpdir                  : /tmp
  ftp mirror              : ftp://download.nvidia.com
  RPM file list           : (not specified)

Using: nvidia-installer ncurses user interface
WARNING: Skipping the runlevel check (the utility `runlevel` was not found).
-> 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 test with CC="cc".
-> gcc-version-check failed:
   
   
   Could not compile gcc-version-check.c.  Please be sure you have your distrib
   ution's libc development package installed and that 'cc' is a valid C compil
   er name.
   
   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: You do not appear to have libc header files installed on your system.
       Please install your distribution's libc development package.
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.


Thanks for your help anyway Pizzas'!

PS (going off topic) which is your fave Sonic game? Mine is Sonic 2. Worst Sonic = Sonic Adventure.

Discuss.
Back to top
View user's profile Send private message 
Pizzasgood


Joined: 04 May 2005
Posts: 6270
Location: Knoxville, TN, USA

PostPosted: Thu 09 Feb 2006, 20:36    Post subject:  

Strangely enough, the only Sega system I've ever had was a GameGear. My favorite games are Triple Trouble, Spinball (both versions), Sonic CD, and Sonic Battle (the GBA fighter, not SA2:B). I'm also a big fan of the comic made by Archie Comic Publications Inc. In fact, I tend to consider their rendition of Sonic as the true Sonic. Sonic is also my favorite superhero, followed by Spiderman, Batman, and Superman (not necissarily in that order).


Hmm... try "which cc" just to check. It should be in /usr/bin. If not, you should be able to symlink gcc to it (as it's only a symlink to gcc). Either way, this isn't a good sign. I don't recall ever installing anything else in mine, and it compiled everthing fine.....

If that doesn't work, we will be heading out of the waters I'm familiar with. That doesn't mean I'll stop trying, though!

_________________
Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib

Back to top
View user's profile Send private message Visit poster's website 
BionicCommando


Joined: 19 Nov 2005
Posts: 21
Location: Devon,UK

PostPosted: Fri 10 Feb 2006, 19:10    Post subject:  

Quote:
Hmm... try "which cc" just to check. It should be in /usr/bin.


indeed, its apparently in /usr/bin/cc ...
Back to top
View user's profile Send private message 
Pizzasgood


Joined: 04 May 2005
Posts: 6270
Location: Knoxville, TN, USA

PostPosted: Fri 10 Feb 2006, 22:05    Post subject:  

Quote:
ERROR: You do not appear to have libc header files installed on your system.
Please install your distribution's libc development package.

That must be the problem then. Unfortunately, I don't know which files those are other than /usr/lib/libc.so. So, if nothing else, see if you have that.

Is there any reason you can think of why you'd have missing files? Have you tried installing this from a fresh install (copy your pup001 file to another location/name to back it up)? Maybe something got messed up, and that way you could check.


If anyone else is following this thread that has ideas, now would be a good time to speak up. I have little experience with compiling stuff.

_________________
Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib

Back to top
View user's profile Send private message Visit poster's website 
alex_b


Joined: 15 Dec 2005
Posts: 25
Location: Townsville,QLD. Australia

PostPosted: Sat 11 Feb 2006, 04:41    Post subject: header files for NVidia Install  

Pizzasgood

The development files are used for compiling programs to work with libraries and are usually distributed under the same package name but including the word develop etc. They facilitate programs linking to the features of the required library and are separate to it. i.e the kernel header files are a separate install to the kernel binary and part of the source files (hence development package) The NVidia drivers must compile a module I am guessing, to request the header files.

Alex

_________________
"The significant problems we face cannot be solved at the same level of thinking we were at when we created them"
- Albert Einstein
Back to top
View user's profile Send private message 
Pizzasgood


Joined: 04 May 2005
Posts: 6270
Location: Knoxville, TN, USA

PostPosted: Sat 11 Feb 2006, 14:08    Post subject:  

Well, I knew that much. But when I installed my card, it gave me the same "compile your own" message, but for me it worked. So, the files that it needs should either already be in Puppy or else in the usr_devx.sfs addon. I'm going to do it again in a fresh install just to make sure that I'm not the one with a non-standard setup.
_________________
Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib

Back to top
View user's profile Send private message Visit poster's website 
Pizzasgood


Joined: 04 May 2005
Posts: 6270
Location: Knoxville, TN, USA

PostPosted: Sun 12 Feb 2006, 11:15    Post subject:  

Well, I was able to install it from a fresh pupfile, compiled and all. So, something must be wonky on BionicCommandow's end. I suggest trying it on a fresh file, just to rule out that possibility.
_________________
Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib

Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 3 [42 Posts]   Goto page: 1, 2, 3 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1141s ][ Queries: 12 (0.0066s) ][ GZIP on ]