Installing video card drivers

Asked by Name Withheld on 2011-05-14

So I went to the NVIDIA website, found that they had a driver for my graphics card for linux! so I downloaded it, made it an executable and put it in Konsole after it loaded or extracted or whatever it gave me this: http://blobs.ge.tt/48O2xl9/NVIDIA.png?tick=1&sig=-S-wYAAGgQW-PirNHjPbjdkmfA8swOMEvuE

I think it is a permission problem but I don't know

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu nvidia-graphics-drivers Edit question
Assignee:
No assignee Edit question
Last query:
2011-05-14
Last reply:
2011-05-15
Ricardo Gra├ža (devius) said : #1

You have to run the installer program as the root user, since it needs to install some files to a few system folders which can't be written to by regular users. One way to do this is to open a terminal (you seem to be running KDE, so that would be Konsole), go to the folder where the installer is and run it with the "sudo" command preceding it like so:

sudo ./nvidia-installer-thingy.sh

Replace "nvidia-installer-thingy.sh" by the actual filename of the installer.

Unless you have a specific reason to install the driver obtained directly from Nvidia's website, it is preferable to get the proprietary Nvidia driver working by installing the package nvidia-current. The best way to do this is in Additional Drivers. (To open that on Ubuntu 11.04, click on the power icon on the upper-right corner of the screen, click System Settings, then go to Hardware > Additional Drivers. On previous versions of Ubuntu, or in the Ubuntu Classic interface, you can access it using the menus at System > Administration > Additional Drivers.) If it's not shown in Additional Drivers, you can try installing the package manually and see what happens.

On the other hand, if you want/need the specific version you got from the Nvidia website, or you otherwise insist on using it, then you should be able to get it to install by running the installer as root, as it is saying you need to do. To do that, prefix the command you used to launch the installer with "sudo " (without the quotes, but with the space). See https://help.ubuntu.com/community/RootSudo for details about running programs as root. When you run it as root, you should no longer get that error, though it's possible that it will tell you that you can't have X11 running while you're installing it (or something similar). If you end up deciding to install using this installer (in spite of the generally better option of installing the proprietary Nvidia drivers using the Ubuntu package), and you experience this problem, and you do not know how to solve it, then please post a reply about that.

OK so about all this, I am actually running Kubuntu for Eliah to know, but the additional drivers thing you were talking about, When I opened it the only NVIDIA thing I saw there was "experimental 3D graphics for NVIDIA" or something like that... I don't remember exactly what it said.

So also Eliah I assume your talking about the command that Devius gave me when you say to launch the installer correctly with the link? also how would I re-open X11 afterward? and which one of those many options should I press when I try to end the proses? (hang up suspend ect.)

and FYI the NVIDIA installer is a .run file, and I think that if NVIDIA is nice enough to care about all the linux people out there in the world we should at least thank them by using what the provide. (Also I am hoping this will solve a lot of my lag issues with Kubuntu)

Oh and I am assuming that there is a password for the root user? would that be the same as my own?
+ if I install this will I screw my drivers for XP? cuz I don't want to do that... (duh)

Changes in what video drivers are installed, and how they are configured, in your Ubuntu system will have no effect on anything in your Windows system. Similarly, changes made to your video drivers in your Windows system will have no effect in your Ubuntu system.

If you see an option to enable an "experimental" driver for Nvidia in Additional Drivers, but you're not currently using the proprietary Nvidia drivers, that suggests that you're current using the traditional free open source Nvidia driver (provided by package xserver-xorg-video-nv). The driver that Additional Drivers is offering is a new free open source driver called Nouveau (provided by package xserver-xorg-video-nouveau). There is a very good chance that the Nouveau driver will do what you want. I recommend trying it first, before the proprietary driver. One of the advantages of using free open source drivers is that they can be fully supported by the community, so most bugs tend to be fixed quickly.

But if you decide you do want to use the proprietary driver, the best way to install it is to install the package nvidia-current. You can install that package in the Ubuntu Software Center. It's possible that the driver you install that way will not work. Only in that case do I recommend you attempt to install the driver using nvidia-installer (as you've been attempting).

By default, the root user in an Ubuntu/Kubuntu system does not have a password. I don't mean that you can log in as root without a password. I mean that, not having a password at all (not even the blank password), it is impossible to log in as root. Another way to say this (the more common and intuitive way this is expressed) is that, by default, the root user account is disabled. It is strongly recommended to keep it this way.

Instead of logging in as root, you can run specific commands/programs/applications as root using sudo (for nongraphical programs) or gksu/gksudo (for graphical programs). Ubuntu is configured by default so that only administrators (members of the group called admin) are permitted to do this. You are probably an administrator on your system; if you are using the first account created, i.e., the one created when you installed Kubuntu, then unless you have removed yourself from the admin group (or some other administrative user on your system has done so), you are certainly an administrator. When a user is not permitted to run a command using sudo, they will be unable to run it no matter what password they enter. When a user *is* permitted to run a command using sudo (and, being an administrator, you are permitted to run any command using sudo), that user's password is the password that must be entered.

So, you will enter your password. But that doesn't mean that root has a password which is the same as yours, even though it may seem that way. (Sometimes it is important to make this distinction--for example, a default installation of openSUSE has an enabled root account whose password is the same as the password of the administrative non-root user created during installation, and this makes an openSUSE system work differently from an Ubuntu system, in that when one of the two passwords is changed in openSUSE, the other is not automatically changed to match it. In Ubuntu, when you change your password, that new password will be the password you use when running sudo/gksu/gksudo as well.)

You might not have to quit X11 to run nvidia-installer successfully. I recommend you try running it with sudo, with X11 running, and see what happens. However, if it requires that X11 not be running, then rather than actually quitting X11, I recommend you restart your computer and hold down Shift while it's booting, to make GRUB2 display a detailed boot menu. Then select recovery mode (for the latest linux kernel version, i.e., the one nearest the top). A whole bunch of text will scroll up the screen, and then you'll get the Recovery Menu. Scroll down with the down arrow key until you get to:

        root Drop to root shell prompt

Choose that (i.e., press enter while it's selected). Now X11 is not running, and you are in effect logged in as root. You can now run nvidia-installer. (You don't need sudo, since you're running it from a root shell, so it will automatically be run as root.)

By the way, when your question has Answered as its status but you still need an answer (like in this case, where you requested more information), I recommend you click the "I Still Need an Answer" button when posting, rather than the "Just Add a Comment" button. That way, the status of your question goes back from Answered to Open, and people will know that you're asking for more information. The "Just Add a Comment" button is good for when you don't want or need to change the status of the question.

Ok I know I do stuff how I think I ought to.... I don't get on Kubuntu a whole lot.

I am still reading your previous post so I am putting this as a comment

Wow thank you I will do that.

Oh and FYI Kubuntu has a blue screen when you select your recovery mode... crazy about blue, dad thought it was a "BLUE SCREEN"...

And I will post problem solved if I do this...

Can you help with this problem?

Provide an answer of your own, or ask Name Withheld for more information if necessary.

To post a message you must log in.