nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   Nvidia Drivers (http://www.nvnews.net/vbulletin/showthread.php?t=80963)

CheeseburgerII 11-22-06 11:15 AM

Nvidia Drivers
 
Hello guys I have just picked up Ubuntu from my friend and wanted to give it a try. I downloaded the Linux drivers off the nVidia site, but I am having the hardest time trying to install them. I was wondering if you guys could walk me through it. When I type in the command

sh NVIDIA-Linux-x86-1.0-9629-pkg1.run command a blue screen comes up, but with an error that says :

"ERROR: You appear to be running an X server; please exit X before
installing. For further details, please see the section INSTALLING
THE NVIDIA DRIVER in the README available on the Linux driver
download page at www.nvidia.com."

I looked at the Readme, but it was to confusing. It's my first time using Linux and my friend is no help to me. I have no clue how to exit the X server and have been searching for a long time. I tried ctrl + alt + F1 - F6 but still no luck. I am using Ubuntu 6.10. Linux Display Drivers Version 1.0-9629.

Thank you guys.

DanST 11-22-06 11:32 AM

Re: Nvidia Drivers
 
So... Here what youy should do:

1. Press Alt+Ctrl+F1
2. Enter root login and password.
3. Then print this in command line:
[root@localhost ~]# ps -A | grep kdm
then when you see two lines with:
"number" then some letters...
"number (other)" then some other letters...
[root@localhost ~]#

then print:
[root@localhost ~]# kill -s KILL "number(the 1st)"
you'll close KDM, but you'll not see that.

Then print:

[root@localhost ~]# ps -A | grep X
"number" letters - YOU'LL SEE IT
[root@localhost ~]# kill -s KILL "number (that was on the previous line)"

then

[root@localhost ~]# cd (directory where nvidia-installer is situated)
[root@localhost ~]# sh NV*
now go on...

DanST 11-22-06 11:36 AM

Re: Nvidia Drivers
 
Also I've got a problem too)))

So. Here my install log:

- General Part:
-> Kernel module load error: insmod: error inserting './usr/src/nv/nvidia.ko':
-1 Invalid module format

- My "uname -a"
Linux localhost 2.6.12-12mdk #1 Fri Sep 9 18:15:22 CEST 2005 i686 Intel(R) Celeron(R) CPU 1.70GHz unknown GNU/Linux
- Error in logs:
ERROR: Unable to load the kernel module 'nvidia.ko'. This happens most
frequently when this kernel module was built against the wrong or
improperly configured kernel sources, with a version of gcc that differs
from the one used to build the target kernel, or if a driver such as
rivafb/nvidiafb is present and prevents the NVIDIA kernel module from
obtaining ownership of the NVIDIA graphics device(s).

Please see the log entries 'Kernel module load error' and 'Kernel
messages' at the end of the file '/var/log/nvidia-installer.log' for
more information.
-> Kernel module load error: insmod: error inserting './usr/src/nv/nvidia.ko':
-1 Invalid module format


PLEASE NOTE THE LAST LINE!!!

pe1chl 11-22-06 12:19 PM

Re: Nvidia Drivers
 
Quote:

Originally Posted by CheeseburgerII
sh NVIDIA-Linux-x86-1.0-9629-pkg1.run command a blue screen comes up, but with an error that says :

"ERROR: You appear to be running an X server; please exit X before
installing. For further details, please see the section INSTALLING
THE NVIDIA DRIVER in the README available on the Linux driver
download page at www.nvidia.com."

I looked at the Readme, but it was to confusing. It's my first time using Linux and my friend is no help to me. I have no clue how to exit the X server and have been searching for a long time. I tried ctrl + alt + F1 - F6 but still no luck. I am using Ubuntu 6.10. Linux Display Drivers Version 1.0-9629.

Thank you guys.

You should try reading that file (mentioned in the error message).
It is unfortunate that the message does not tell you the full path of the file.
It is: http://download.nvidia.com/XFree86/L...DME/index.html
Or on your own system: /usr/share/doc/NVIDIA_GLX-1.0/README.txt

To exit from X, you type: init 3

zander 11-22-06 12:47 PM

Re: Nvidia Drivers
 
Please post the complete /var/log/nvidia-installer.log file.

DanST 11-23-06 02:18 AM

Re: Nvidia Drivers
 
1 Attachment(s)
Excuse me... I've forgotten.

joffe 11-23-06 03:16 AM

Re: Nvidia Drivers
 
Or...
Code:

Ctrl+Alt+F1
first login as your ordinary user then
Code:

sudo /etc/init.d/gdm stop
this will effectively shut down the respawning gdm, or X session.
Now you'll be able to install the driver (make sure you have the relevant kernel header files). When the install has finished and xorg.conf is edited to load the nvidia module, just run
Code:

sudo /etc/init.d/gdm start

pe1chl 11-23-06 04:41 AM

Re: Nvidia Drivers
 
Quote:

Originally Posted by joffe
Or...
Code:

Ctrl+Alt+F1
first login as your ordinary user then
Code:

sudo /etc/init.d/gdm stop
this will effectively shut down the respawning gdm, or X session.
Now you'll be able to install the driver (make sure you have the relevant kernel header files). When the install has finished and xorg.conf is edited to load the nvidia module, just run
Code:

sudo /etc/init.d/gdm start

IMHO the above is overly complex and system-specific. And you will need to login as root to install the driver anyway.
Just Ctrl-Alt-F1 to the first screen, login as root, and type:
init 3
The init system will do exactly what is required to stop X on the given system.
Then install the driver. Test it by typing:
X
see if you get a grey stippled screen with mouse cursor. When it crashes back to textmode or gives a bad picture you have issues to solve.
When it is OK, do Ctrl-Alt-Backspace to get back to textmode.
Now you can start the graphic mode by:
init 5
(you can also do a reboot)

joffe 11-23-06 05:27 AM

Re: Nvidia Drivers
 
Since he wanted to try Ubuntu, that is the most common way to do it. Also, when using sudo you only have to supply your password once if you install the driver within 15 minutes or so.

Cambo 11-23-06 05:42 AM

Re: Nvidia Drivers
 
@pe1chl: Doing an 'init 3' or even 'telinit 3' doesn't do anything on Ubuntu, hence the other method that has been described :/

Of course, if you are using KDE, you need to change 'gdm' to 'kdm', and so on for other window managers....



Cambo

pe1chl 11-23-06 11:13 AM

Re: Nvidia Drivers
 
Quote:

Originally Posted by Cambo
@pe1chl: Doing an 'init 3' or even 'telinit 3' doesn't do anything on Ubuntu

Terrible! Now I see on other forums that they have chosen to break the standard.

When Linux is ever to break through as a desktop operating system that can be maintained by non-specialists, this is not the way to go :-(
Having a standards base that is invariant between distributions and can be relied on when distributing applications and drivers, and when writing installation docs, is an absolute requirement.

netllama 11-23-06 12:28 PM

Re: Nvidia Drivers
 
Ubuntu (and Debian too, I believe) requires you to stop gdm to shutdown X:
/etc/init.d/gdm stop


All times are GMT -5. The time now is 08:41 AM.

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