View Full Version : How do I re-install nvidia driver from terminal?
bwallum
October 6th, 2007, 07:03 AM
Hello
I've blown up my gui. I need to re-install my nvidia driver but I am having to do that from the terminal. How do I do that?
Rgds
Bob
the_mechanical
October 6th, 2007, 07:22 AM
Download the driver to /root (or do it with an USB stick or something), then log in as root and do a sh Nvidia....
The installation itself should be self-explaining.
Tip:
Leave the driver on /root, maybe you need it more often ;-) (at least i do=
ViRMiN
October 6th, 2007, 07:25 AM
sudo apt-get --reinstall install <package name>
replace <package name> as appropriate
bwallum
October 6th, 2007, 07:36 AM
Thanks, how do I download the driver from a terminal?
Lord Illidan
October 6th, 2007, 07:42 AM
Is there a reason you can't install them from apt-get?
ViRMiN
October 6th, 2007, 07:45 AM
I'd stick to using the repo's if possible. I've never had to download it from NVidia's website...
MaX
October 6th, 2007, 07:46 AM
I'd use Envy if I where you...
bwallum
October 6th, 2007, 07:48 AM
Thanks again. The code worked, I tried it using 'nvidia-glx-new'. The terminal reported that it had reinstalled the driver. However my gui remains messed up and unusable.
What I would like to do is find out which driver the system is currently using.
Then I want to reinstall the driver (as per your code)
Can you help with that bit too?
I do appreciate you sticking with this issue.
Bob
Lord Illidan
October 6th, 2007, 07:48 AM
sudo apt-get install nvidia-glx-new should work..
EDIT : Ok, I was late on this one.
Can you go over your
/etc/X11/xorg.conf?
Use sudo nano /etc/X11/xorg.confThen, navigate to the section, somewhat half down the file where it says something like this. Your Mileage Will Vary.
Section "Device"
Identifier "nVidia Corporation G72M [GeForce Go 7400]"
Driver "nvidia"
Busid "PCI:1:0:0"
Option "AddARGBVisuals" "True"
Option "AddARGBGLXVisuals" "True"
Option "NoLogo" "True"
Option "NvAGP" "1"
EndSectionIf the Driver part is not "nvidia", change it to "nvidia". If your gui is still messed up, see if you can change it to vesa or nv.
Edit : Don't copy/paste everything over there, just change the driver part. However, please do tell what is in there first.
bwallum
October 6th, 2007, 07:49 AM
how do I get Envy? (I can only use the terminal)
bwallum
October 6th, 2007, 07:55 AM
I think ViRMiN's forced re-install has done that. I tried your code and it said ' nvidia-glx-new is already the newest version'. does this mean that this driver is installed on the system. How can I be sure that the system is using this driver?
bwallum
October 6th, 2007, 07:58 AM
I'm with you. I have used Envy in Fiesty but Gutsy appears to have much easier nvidia support. I have removed Envy. What is the name of the nvidia driver prior to 'nvidia-glx-new'? Perhaps i could try to install an earlier version.
ViRMiN
October 6th, 2007, 08:02 AM
Would nvidia-glx-new install the restricted modules? Try:
sudo apt-get install linux-restricted-modules-2.6.22-13-generic
luisromangz
October 6th, 2007, 08:08 AM
You can just try switching to the nv or vesa drivers in xorg.conf, and then using the GUI to do all the package removal/reinstall thing.
bwallum
October 6th, 2007, 08:12 AM
I have (using nano for the first time!) discovered the following:-
Section "device"
Identifier "device1"
Boardname "vesa"
Busid "PCI:5:0:0"
Driver "vesa"
Screen1
I can change the driver to "nvidia". Before I do that should I change any of the other attributes? Is there a way to install the nvidia driver (which we know is somewhere on the system)?
Lord Illidan
October 6th, 2007, 08:14 AM
I have (using nano for the first time!) discovered the following:-
Section "device"
Identifier "device1"
Boardname "vesa"
Busid "PCI:5:0:0"
Driver "vesa"
Screen1
I can change the driver to "nvidia". Before I do that should I change any of the other attributes? Is there a way to install the nvidia driver (which we know is somewhere on the system)?
Just change "vesa" to "nvidia"..then we'll see what happens..
bwallum
October 6th, 2007, 08:19 AM
Your code worked however after some positive feedback I had to wait a while then got the following:
'Could not resolve gb.archive.ubuntu.com'
I think -13 is being held back at the moment (at least on the UK mirror)
ViRMiN
October 6th, 2007, 08:25 AM
Weird, I've got it installed on mine from the UK mirror... try changing to "Main Server" in "Software Sources"? If you've still no GUI, just edit /etc/apt/sources.list and take out the "gb." parts of the URL's, that should do it...
Lord Illidan
October 6th, 2007, 08:26 AM
The UK mirror (main server should work.
ViRMiN
October 6th, 2007, 08:27 AM
Should do, it did for me but, bwallum's still having issues with it for some reason? Hmm...
bwallum
October 6th, 2007, 09:07 AM
Bullseye! I have my desktop back and this message is coming from my Ubuntu machine!
Simply changing the "vesa" to "nvidia" in xorg.conf got me back to a useable system. I chose the open source driver when presented with a set up window. I know I will have to change this to run accelerated graphics and get 'wobbly windows' should I want that.
Thank you very much!
I have some other issues and will raise these under a different thread. They concern the kernel. To get the above to work had to fall back on the 2.6.20-16 kernel.
Thanks again
bwallum
October 6th, 2007, 10:23 AM
I can now confirm the UK server works. Problem is with nvidia accelerated graphics driver in kernel 2.6.22-13. The open source nvidia driver works fine. The accelarated nvidia driver offered by Restricted Pakages Manager throws up all sorts of problems. I got the KDE desktop (never knowingly downloaded KDE) on one occassion. then after updating and rebooting got Gnome back (as planned). Also networking was blocked at this time but recovered once Gnome came back.I am now trying to record a repeatable scenario to get the defects and check to see if the bug is recorded.
Many thanks again
Bob
bwallum
October 6th, 2007, 10:25 AM
All sorted now and thank you very much for your help. The response is really appreciated.
Kind Regards
Bob
ViRMiN
October 6th, 2007, 12:29 PM
Cool!
My onboard GeForce 6-series GPU works fine with the latest restricted-driver, no problems with it at all???
vassalle
October 6th, 2007, 12:52 PM
I'm having a somewhat related problem. Im using the Nvidia binaries for my Geforce 8 series card. It the past, every time there's a kernel upgrade, all I had to do was to change re-install the driver and it's all set.
However, the recent kernel upgrade, the one with a 13 at the end, it just doesn't work anymore. I'm battling with the bulletproofX as it resets my Xorg.conf to a 'safe mode' one - which doesn't help at all.
For the ones who are using the Nvidia driver from our repo, may I know what version is it? Is it the latest one?
One more thing, how do I boot straight to command prompt from Grub without using the recovery option - somehow recovery doesn't allow me to install the Nvidia driver. I think I need to install it via called telenit or something. (hopefully that made sense!)
Thanks in advance!
vBulletin® v3.8.0 Release Candidate 2, Copyright ©2000-2009, Jelsoft Enterprises Ltd.