Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 09-29-03, 09:58 AM   #1
elanthis
Always Annoyed
 
Join Date: Oct 2002
Posts: 71
Lightbulb driver auto-update script

I've written a startup script for Red Hat systems that will automatically update your NVIDIA driver if a problem is detected with it.

The NVIDIA driver often becomes unusable when you install a new kernel or XFree86 packages from Red Hat updates, or source. This causes X to refuse to start, and requires some black magic that no user should ever need just to install a driver.

This script suffers from several problems, none of which *I'm* going to fix:
1) If you are running a kernel and don't have the headers/source for it, the script fails. This really can't be fixed by anyone other than the distros.
2) You can't (re)install the driver while X is running, even tho you can install new X packages while X is running. NVIDIA needs to fix this in their installer.
3) Every time the driver has to be reinstalled, the driver packages/source are redownloaded. NVIDIA's installer utility doesn't cache this download at all, they need to fix it in their installer utility.
4) This only works properly on Red Hat and Fedora Core systems. I know it works on RH9, it may or may not work on RH8.0 or earlier. Any hackers who want to make variants of this for other Linux OSs are free to do so.

To make this script perfected, the above needs to be taken care of, and NVIDIA needs to add this to their installer. ;-) (Note: their installer should also be 'fixed' to be runnable when X is running, since *requiring* a terminal to do anything is just stupid. A graphical installer wouldn't be bad either - they can do it for Windows, why not Linux? Ah well.)

Installation:
1) Make executable: chmod +x nvidia-driver
2) Put in init.d: cp nvidia-driver /etc/init.d/
3) Add to startup: /sbin/chkconfig --add nvidia-driver

(Note: these forums forced me to put a .txt extension on the file, remove that before installing.)

The script has no warranty; if it breaks your systems its your own damn fault for installing system scripts made by some unknown fool off the Internet. :P It does work for me on my Fedora Core box just fine, tho.
Attached Files
File Type: txt nvidia-driver.txt (1.8 KB, 217 views)
__________________
What?
elanthis is offline   Reply With Quote
Old 10-23-03, 12:35 PM   #2
elanthis
Always Annoyed
 
Join Date: Oct 2002
Posts: 71
Default

*bump* - this thing really works folks. i'd like at least a little feedback, in hopes the next NVIDIA driver release will include it or something similiar. Makes life a lot easier. ;-)
__________________
What?
elanthis is offline   Reply With Quote
Old 10-24-03, 04:29 AM   #3
LordMorgul
Electrical Engineer
 
LordMorgul's Avatar
 
Join Date: Dec 2002
Location: San Luis Obispo, CA
Posts: 872
Default

The download problem could be removed by using the .run installer file that contains the interface, with the following advanced options. I haven't added this to the script and used it yet, because I haven't needed to.

--ui=none --no-questions --accept-license -e --force-update -n

The use of all of them wouldn't be necessary but that is what I have used on the .run installer directly. The new version interface should only be downloaded if a newer version .run file is present on nvidia ftp.
__________________
"..the triumph of evil is for good men to do nothing." (Edmond Burke)
nVIDIA video driver RPMs for Fedora :: see yum repo at livna.org.
LordMorgul is offline   Reply With Quote
Old 10-24-03, 08:25 AM   #4
elanthis
Always Annoyed
 
Join Date: Oct 2002
Posts: 71
Default

rock, thanks, I'll see how that works in my script and post an update later.
__________________
What?
elanthis is offline   Reply With Quote
Reply


Thread Tools

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 On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Graphics driver installation problem (your comments will be highly appreciated) apuurboo NVIDIA GeForce 400/500 Series 0 06-16-12 07:35 AM
96.43.20 does still not support new X.Org ABI 11 - will an update be procuded? joerg.sigle NVIDIA Linux 2 05-27-12 12:09 AM
GeForce GTX 670 Doesn't Support 4-way SLI, Possible with Future Driver Update News Archived News Items 0 05-14-12 08:00 AM
Getting the proprietary nvidia driver to run with Debian 3.0 r0 (woody) Katchina404 NVIDIA Linux 9 01-12-03 08:49 AM
failing to initialize NV driver PsyShook NVIDIA Linux 10 09-19-02 12:41 PM

All times are GMT -5. The time now is 06:30 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.