Click to See Complete Forum and Search --> : Close X Server
X-KAM-X
07-23-2003, 08:17 AM
How anyone tell me how to close X Server?
When i login, i don't want to in the graphic mode anymore
where i can set back to the text mode?
Coz when i try to install the nvidia drivers, it needs me to install without the X Server running...
Can some one teach me??
thanks alot
mdwatts
07-23-2003, 08:26 AM
Change the default runlevel in /etc/inittab from 5 to 3.
X-KAM-X
07-23-2003, 09:01 AM
thanks!
I can go to the text mode now.
May i ask that, when i install the NVIDIA driver
it says fail because of the kernel-source haven't installed...
How can i installed the kernel-source??
or how to detect if i has installed or not...
GavinX
07-23-2003, 09:11 AM
Actually, you don't have to permanently change the default run level in order to install the nvidia drivers.
Follow this procedure
1. press ctrl-alt-tab-F1 together. this will take you to a login prompt
2. log in as root
3. issue the following command - init 3 this will change the run level to 3
4. cd to the directory where you saved the nvidia driver
5. sh NVIDIA-Linux-x86-1.0-4363.run or whichever driver you are using
6. follow the onscreen prompts
7. when installation is complete issue the following command init 5 this will take you back into the gui
8. edit your xconfig file according to instructions in the nvidia readme file.
voila
X-KAM-X
07-23-2003, 09:23 AM
I am installing
but when i follow the nvidia install step
it says it cannot find a nivida.o or using wrong kernel header something like that....too complicate to me...
and it said i haven't install the kernel source package...
so, what should i do now and how?
may you teach me? thanks !!
GavinX
07-23-2003, 09:43 AM
what distro are you using. you may need to search the distro's cd to find the kernel module.
X-KAM-X
07-23-2003, 09:47 AM
i am using RH9
usually will in which CD ??
after i found it, shall i just "cp" it into my comp??
into which directory??
GavinX
07-23-2003, 10:00 AM
i have not used red hat 9. however, if it's anything like red hat 8, i can tell you that it does not provide a good way to search for individual packaes. as a result, to find a module on the cd might be a bit of a task.
however, try this.
install the kernel development package from the cd using the red hat packaging system.
after you are finished this log in as root in an xterm issue the command updatedb then follow the nvidia install instructions again.
X-KAM-X
07-23-2003, 10:11 AM
It really turns me down....i cannot find the package install system or something like that...
and i only got the 3 download CD...
hmmm.......is there another easy or more clear way for me to archieve the task??
chucksaysword2
07-23-2003, 10:28 AM
http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/getting-started-guide/s1-updating-pkgs-cdrom.html
This should help you out. Don't mean to be rude or anything but you should really poke around before you post. Do a quick google.com/linux search or use the search feature here. If possible always look at your distro's documentation as it will explain how to do things the correct way for your distro. Remember, Linux is about solving problems yourself and no one has to help you, so help yourself! Good Luck! :D
mdwatts
07-23-2003, 11:27 AM
Originally posted by X-KAM-X
it says fail because of the kernel-source haven't installed...
How can i installed the kernel-source??
Search the JL forums for 'nvidia kernel-source' and you will find lots and lots of previous threads on the same subject that will tell you exactly what is required.
synecdoche
07-23-2003, 11:37 AM
How I installed the nvidia drivers in RH9 (also with a 3-cd install).
Download the file NVIDIA-Linux-whatever.run
Ctrl-Alt-F1 to exit X
root
root's password
init 3
root
root's password (if asked)
go to directory you downloaded the above file to and type
sh NVIDIA-Linux-whatever.run
After you go through this, you have to edit your /etc/X11/XF86Config file. I cannot remember the exact changes but I think you have to remove references to "dri" and "glcore" and then change the line that refers to "nv" so that it refers to "nvidia."
If this doesn't work.. When you installed RH did you select the Desktop or Workgroup install? If you selected Desktop it may be that it didn't install the kernel headers but you can do them manually by using RH's handy "add/Remove programs"-- just search around in your red hat menu for them, probably under system tools or somesuch.
When the program starts, just look around for the kernel headers and install them.
-dave
After you've done that, type
startx
at your prompt and bob should be your uncle.
(In case you are new, you don't need to type the $-- that just means it is
GavinX
07-23-2003, 01:04 PM
Originally posted by synecdoche
After you go through this, you have to edit your /etc/X11/XF86Config file. I cannot remember the exact changes but I think you have to remove references to "dri" and "glcore" and then change the line that refers to "nv" so that it refers to "nvidia."
that is quite correct synecdoche. he has to ensure that load ''glx'' is also there.
X-KAM-X
07-24-2003, 01:24 AM
Thanks for all the above ~~
I did search the threads before and follow the steps.
but i still cannot pass the header problems.
As i input the first cd and check, i have already install the kernel source
and when i type rpm -ra | grep kernel
it comes out
kernel-pcmcia-cs-3.1.31-13
kernel-2.4.20-8
kernel-source-2.4.20-8
and i also make a symbolic link in /usr/src
and when i sh nvidiadrivername
or sh nvidiadrivername --kernel-include-path=[/usr/include]
or i try to type with a slash or not
i try many ways....
but still, it says cannot find the kernel source or header...
What should i do now to qualified the install requirment??
psi42
07-24-2003, 01:33 AM
can you post the output of
ls /usr/src/linux
and also
ls /usr/src
~psi42
mdwatts
07-24-2003, 08:23 AM
Originally posted by X-KAM-X
kernel-2.4.20-8
kernel-source-2.4.20-8
and i also make a symbolic link in /usr/src
Besides what psi42 posted, did you install the correct kernel-source for your current running kernel version?
uname -r (tells you the running kernel version)
Ensure it is 2.4.20-8.
If it is and you still have problems, see if you have a ?? kernel-headers or kernel-includes rpm package on your distros cd's.
You can check to see what is installed that relates to 'kernel' with
rpm -qa | grep kernel
X-KAM-X
07-24-2003, 08:25 AM
ls /usr/src/linux
arch Documentation kernel README
configs drivers lib REPORTING-BUGS
COPYING fs MAINTAINERS Rules.make
COPYING.modules include Makefile scripts
CREDITS init mm tmp_include_depends
crypto ipc net
ls /usr/src/
debug linux linux-2.4 linux-2.4.20-8 redhat
linux and linux-2.4 is a symbolic link to linux-2.4.20-8
X-KAM-X
07-24-2003, 09:13 AM
My nvidia-installer.log:
-----------------------------------------
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 : false
no questions : false
silent : false
XFree86 install prefix : /usr/X11R6
OpenGL install prefix : /usr
Installer install prefix: /usr
kernel include path : usr/include/linux/
kernel install path : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /tmp
ftp site : ftp://download.nvidia.com
Using: nvidia-installer ncurses user interface
-> License accepted.
-> A precompiled kernel interface for kernel 'Red Hat Linux 9 updated to
2.4.20-8 UP Single Processor i686 Architecture' has been found.
executing: 'cd ./usr/src/nv; /usr/bin/ld -r -o nvidia.o precompiled-nv-linux
.o nv-kernel.o'...
-> Kernel module linked successfully.
ERROR: Unable to load the kernel module 'nvidia.o'. This is most likely
because the kernel module was built using the wrong kernel header files.
Please make sure you have installed the kernel header files for your
kernel; on Red Hat Linux systems, for example, be sure you have the
'kernel-source' rpm installed. If you know the correct kernel header
files are installed, you may specify the kernel include path with the
'--kernel-include-path' commandline option.
-> Kernel module load error: Warning: loading ./usr/src/nv/nvidia.o will taint
the kernel: non-GPL license - NVIDIA
See http://www.tux.org/lkml/#export-tainted for information about tainted
modules
./usr/src/nv/nvidia.o: init_module: No such device
Hint: insmod errors can be caused by incorrect module parameters, including
invalid IO or IRQ parameters.
You may find more information in syslog or the output from dmesg
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.
mdwatts
07-24-2003, 09:40 AM
Originally posted by X-KAM-X
ls /usr/src/
debug linux linux-2.4 linux-2.4.20-8 redhat
linux and linux-2.4 is a symbolic link to linux-2.4.20-8
The symlink is not correct.
As root
cd /usr/src
rm linux-2.4
ln -s linux-2.4.20-8 linux
and then try again.
X-KAM-X
07-24-2003, 09:57 AM
Originally posted by mdwatts
The symlink is not correct.
As root
cd /usr/src
rm linux-2.4
ln -s linux-2.4.20-8 linux
and then try again.
I already created the linux symbolic link.....
but still cannot success..
it still says cannot find nvidia.o, the kernel header wrong....
i refer to so many threads that posted before..
but cannot find a solution...
what shall i do next???
mdwatts
07-24-2003, 10:06 AM
Originally posted by X-KAM-X
I already created the linux symbolic link.....
but still cannot success..
As linux-2.4 or linux ??
It has to be
/usr/src/linux-2.4.20-8
with a symlink of
/usr/src/linux
and NOT
/usr/src/linux-2.4
X-KAM-X
07-24-2003, 10:17 AM
Originally posted by mdwatts
As linux-2.4 or linux ??
It has to be
/usr/src/linux-2.4.20-8
with a symlink of
/usr/src/linux
and NOT
/usr/src/linux-2.4
yes, /usr/src/linux and /usr/src/linux-2.4
both add......
mdwatts
07-24-2003, 12:05 PM
Is /usr/src/linux-2.4 a symlink?
If so, remove it as previously suggested.
As root
cd /usr/src
rm linux-2.4
Ensure
/usr/src/linux-2.4.20-8
contains the real kernel source and
/usr/src/linux
is a symlink from
/usr/src/linux-2.4.20-8
ls -al /usr/src/linux
should show it pointing to
/usr/src/linux-2.4.20-8
Try that and it should work.
And again... You shouldn't have /usr/src/linux-2.4
<edit>
i.e.
ls -al /usr/src
lrwxrwxrwx 1 root root 12 Sep 9 2002 linux -> linux-2.4.20-8
drwxr-xr-x 15 root root 1024 Sep 9 2002 linux-2.4.20-8
X-KAM-X
07-24-2003, 08:47 PM
Originally posted by mdwatts
Is /usr/src/linux-2.4 a symlink?
If so, remove it as previously suggested.
As root
cd /usr/src
rm linux-2.4
Ensure
/usr/src/linux-2.4.20-8
contains the real kernel source and
/usr/src/linux
is a symlink from
/usr/src/linux-2.4.20-8
ls -al /usr/src/linux
should show it pointing to
/usr/src/linux-2.4.20-8
Try that and it should work.
And again... You shouldn't have /usr/src/linux-2.4
<edit>
i.e.
ls -al /usr/src
lrwxrwxrwx 1 root root 12 Sep 9 2002 linux -> linux-2.4.20-8
drwxr-xr-x 15 root root 1024 Sep 9 2002 linux-2.4.20-8
OK, thanks!!
i will try it!
Coz i am on my summer job now, cannot work with my linux
so i need to go home and take a try.
reply you later.
X-KAM-X
07-25-2003, 07:22 AM
Sorry, mdwatts...the problem is still unsolve after i rm the linux-2.4 symbolic link....
It always say cannot find the nvidia.o and kernel header....
may i ask, shall i need to install the binutils ??
although it haven't ask me to....
mdwatts
07-25-2003, 07:43 AM
'binutils' should already be installed by default. Check though
rpm -q binutils
Are you sure you have a Nvidia based video card as we had another recent post on 'cannot find the nvidia.o' and it turned out to be the member had a ATI.
Does
uname -r
show you are using the 2.4.20-8 kernel version?
ls -al /usr/src
shows a symlink of
linux
pointing to the actual kernel source directory of
linux-2.4.20-8
??
Have you reviewed the Nvidia Linux driver readme to see what exactly is required and searched the JL forums for '<distro> nvidia kernel-source'?
X-KAM-X
07-25-2003, 08:46 AM
[root@localhost root]# rpm -q binutils
binutils-2.13.90.0.18-9
[root@localhost root]#
[root@localhost root]# uname -r
2.4.20-8
[root@localhost usr]# cd src
[root@localhost src]# ls -al
total 20
drwxr-xr-x 5 root root 4096 Jul 25 19:19 .
drwxr-xr-x 15 root root 4096 May 10 05:30 ..
drwxr-xr-x 2 root root 4096 Jan 25 07:52 debug
lrwxrwxrwx 1 root root 14 Jul 24 13:00 linux -> linux-2.4.20-8
drwxr-xr-x 16 root root 4096 May 10 07:20 linux-2.4.20-8
drwxr-xr-x 7 root root 4096 May 10 07:07 redhat
I am sure i am using GeForce2 Ti w/ 64mb
I search for the kernel source, header, and read the readme that provide by nvidia....
sigh.......what shall i do...??
mdwatts
07-25-2003, 01:23 PM
Are you still specifying options with the
sh nvidiadrivername
command?
If so, just execute
sh nvidiadrivername.run
as it will find /usr/src/linux by itself.
X-KAM-X
07-25-2003, 08:30 PM
Originally posted by mdwatts
Are you still specifying options with the
sh nvidiadrivername
command?
If so, just execute
sh nvidiadrivername.run
as it will find /usr/src/linux by itself.
I already tied it. I even try to point out the kernel path by many ways...wrong ways and right ways. ~.~
And it continue said cannot find nvidia.o and kernel header source....
And idea what's wrong?
plattypus1
07-26-2003, 03:04 AM
I noticed in your installer log that you were dl'ing a precompiled kernel module from the nVidia FTP site. Just to satisfy my curiosity, run the installer again and tell it NOT to go to the nVidia FTP site. It should build your own kernel module which should fix some of the problems you've been having... maybe. Just give it a try.
X-KAM-X
07-26-2003, 04:10 AM
Originally posted by plattypus1
I noticed in your installer log that you were dl'ing a precompiled kernel module from the nVidia FTP site. Just to satisfy my curiosity, run the installer again and tell it NOT to go to the nVidia FTP site. It should build your own kernel module which should fix some of the problems you've been having... maybe. Just give it a try.
how to force it not to go to FTP site...
coz in the readme file, it haven't provide any information about not to go to the FTP site..
it just tell that the installer will automaticly check for the FTP site and also automaticly search in the computer...
X-KAM-X
07-26-2003, 04:14 AM
And also, the installed already checked and found the precompile in my comp. Check it out under these lines:
Using: nvidia-installer ncurses user interface
-> License accepted.
-> A precompiled kernel interface for kernel 'Red Hat Linux 9 updated to
2.4.20-8 UP Single Processor i686 Architecture' has been found.
executing: 'cd ./usr/src/nv; /usr/bin/ld -r -o nvidia.o precompiled-nv-linux
.o nv-kernel.o'...
-> Kernel module linked successfully.
ERROR: Unable to load the kernel module 'nvidia.o'. This is most likely
because the kernel module was built using the wrong kernel header files.
Please make sure you have installed the kernel header files for your
kernel; on Red Hat Linux systems, for example, be sure you have the
'kernel-source' rpm installed. If you know the correct kernel header
files are installed, you may specify the kernel include path with the
'--kernel-include-path' commandline option.
-> Kernel module load error: Warning: loading ./usr/src/nv/nvidia.o will taint
the kernel: non-GPL license - NVIDIA
See http://www.tux.org/lkml/#export-tainted for information about tainted
modules
./usr/src/nv/nvidia.o: init_module: No such device
Hint: insmod errors can be caused by incorrect module parameters, including
invalid IO or IRQ parameters.
You may find more information in syslog or the output from dmesg
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.
--------------------------------
but the error is still around about the nvidia.o and kernel header...
i cannot figure out these...
mdwatts
07-26-2003, 07:21 AM
First as root, update the locate database
updatedb (will take a minute or two)
and then search for all instances of nvidia.o
locate nvidia.o
See what you have in your /lib/modules/<kernel version(s)> directories.
Also check for pre-existing Nvidia rpm packages.
rpm -qa | grep NVIDIA
X-KAM-X
07-26-2003, 11:11 AM
Originally posted by mdwatts
First as root, update the locate database
updatedb (will take a minute or two)
and then search for all instances of nvidia.o
locate nvidia.o
See what you have in your /lib/modules/<kernel version(s)> directories.
Also check for pre-existing Nvidia rpm packages.
rpm -qa | grep NVIDIA
Last login: Fri Jul 25 20:42:46 on tty1
[root@localhost root]# locate nvidia.o
[root@localhost root]#
updatedb already
Nothing happened when i try to locate nvidia.o
[root@localhost modules]# ls
2.4.20-8
[root@localhost modules]# cd 2.4.20-8
[root@localhost 2.4.20-8]# ls
build modules.generic_string modules.parportmap modules.usbmap
kernel modules.ieee1394map modules.pcimap
modules.dep modules.isapnpmap modules.pnpbiosmap
[root@localhost 2.4.20-8]#
[root@localhost 2.4.20-8]# rpm -qa | grep NVIDIA
[root@localhost 2.4.20-8]#
[root@localhost 2.4.20-8]# rpm -qa | grep nvidia
[root@localhost 2.4.20-8]#
both nothing happened...
mdwatts
07-26-2003, 12:36 PM
I was searching to see if there was a separate kernel-headers rpm package at
ftp://mirror.chpc.utah.edu/pub/distributions/ftp.redhat.com/pub/redhat/linux/9/en/os/i386/RedHat/RPMS
but couldn't find one.
So
uname -r
says 2.4.20-8
and
rpm -qa | grep kernel-source
shows kernel-source-2.4.20-8.i386.rpm ??
Try searching around Redhat's site (support/forums etc.) to see if they have specific instructions for installing the latest Nvidia drivers on Redhat 9.0 or search www.google.com/linux for ?? 'redhat 9.0 nvidia drivers' to see if you can find something that helps.
I'll be off to nvidia.com to look for something that may help.
mdwatts
07-26-2003, 12:39 PM
If all else fails, you could try installing the individual rpm packages using
rpm -Uvh packagename.rpm
ftp://download.nvidia.com/XFree86/Linux-x86/1.0-4363/NVIDIA_GLX-1.0-4363.ul1.i586.rpm
ftp://download.nvidia.com/XFree86/Linux-x86/1.0-4363/NVIDIA_kernel-1.0-4363.ul1.i586.rpm
X-KAM-X
07-26-2003, 01:42 PM
OK, i will try it tomorrow
coz it's mid night here.....^.^
thanks mdwatts!!
mdwatts
07-26-2003, 01:49 PM
See you in the morning.
Make sure you try my other suggestions about locating specific Redhat/Nvidia instructions and verify everything is correct as I posted above.