LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 05-26-2005, 07:23 AM   #1
~vAvE(!)
LQ Newbie
 
Registered: May 2005
Distribution: Mandrake 10.2 (Mandriva)
Posts: 9

Rep: Reputation: 0
serious x-server problem


hi
i recently tried to install mandrake(vers. 10.2) additionly to windows.
it was working fine until setup asked me to configure my graphics
(i use flat panel and geforce 6800LE).
i went for obvious choice in the x-server selection (category Geforce 6800)
however, when i tried to test the settings, the background turned grey.
i still had a mouse pointer and could move it, but the computer didn't respond to anything anymore.
i finally switched it off after some time and reinstalled it, this time avoiding to test the graphic settings. the result was that setup didn't crash this time,
but when i tried to boot linux, the graphical naturally also started (i again got a blue screen and a mouse) and didn't respond.

i blindly tried some other x-server like vga which really didnt work (instead i got a screen with strange colours, but the computer still responded and went back to setup.
But i am able to start linux in console mode, so that is working.
i've never tried linux before, so i'm a real newbie, but i'm grateful for any help.
thanks anyway
 
Old 05-26-2005, 07:48 AM   #2
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Edit /etc/inittab file to boot into Full multiuser mode as indicated in the comments for your distro so that you boot into the command line login screen.

Now, you will have several virtual terminals (alt-F1 through alt-F6) you can switch between. Ignore the "open an x terminal" in the stuff below, since you are command line only just now.

You may have links or some other command line web browser installed if you can manage to get an internet connection if you need to web surf for the info you need.

If you need the nVidia driver, you want the Linux IA32 driver unless you are using a 64 bit CPU

# Compiling/installing kernel modules
You will need to have installed:
1. The developmental packages (compiler)
2. The kernel-source code that matches your running kernel
3. The module source or install code

Check out your system and look under the hood and see if you installed the stuff you need to do the job. Open an x terminal and type in this sequence of commands to see what kernel we are running and see if you have the kernel source installed:
Code:
[fancy@tinwhistle fancy]$ su -
Password:
[root@tinwhistle root]# uname -r
2.4.20-28.7
I am running kernel version 2.4.20-28.7. Do I have the proper source code?
Code:
[root@tinwhistle root]# cd /usr/src
[root@tinwhistle src]# ls -alc
total 3
drwxr-xr-x    4 root     root          136 Jun 12 14:53 .
drwxr-xr-x   16 root     root          424 Jun  4 12:04 ..
lrwxrwxrwx    1 root     root           14 Jun  4 12:11 linux-2.4 -> linux-2.4.20-28.7
drwxr-xr-x   16 root     root          584 Jun  4 12:11 linux-2.4.20-28.7
drwxr-xr-x    7 root     root          168 Jun  4 12:08 redhat
[root@tinwhistle src]#
I do have the same kernel version source code installed in the directory /usr/src/linux-2.4.20-28.7 and there is a symbolic link named linux-2.4 pointing to it.

If you don't see something similiar to this (but in color), you will need to install the kernel source.

NOTE: I noticed that Red Hat didn't make the symbolic link /usr/src/linux that all of the INSTALL files that I have read mentioned that I need. I may as well make one now to save editing the files in the source code every time I need to compile anything concerning the kernel. So, I'll make that link just now:
Code:
[root@tinwhistle src]# ln -s linux-2.4.20-28.7 linux         
[root@tinwhistle src]# ls -alc
total 3
drwxr-xr-x    4 root     root          160 Jun 12 15:46 .
drwxr-xr-x   16 root     root          424 Jun  4 12:04 ..
lrwxrwxrwx    1 root     root           14 Jun 12 15:46 linux -> linux-2.4.20-28.7
lrwxrwxrwx    1 root     root           14 Jun  4 12:11 linux-2.4 -> linux-2.4.20-28.7
drwxr-xr-x   16 root     root          584 Jun  4 12:11 linux-2.4.20-28.7
drwxr-xr-x    7 root     root          168 Jun  4 12:08 redhat
[root@tinwhistle src]#
Ah, there it is, so that's done.

Next, did I install the compiler?
Code:
[root@tinwhistle src]# gcc -v          
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-113)
[root@tinwhistle src]#
Yes, I have a compiler installed.

If you don't have those two things installed, you have to install them first off your install CD.

If they are installed, download the source and happy compiling. Make sure you carefully read the README and INSTALL files after extracting and before compiling/installing.

I don't know if you run xfree86 or xorg (newest x server). Can you find out? examine the files in /etc/X11 and see what config file you have. See section 3 of this guide for how to configure xorg.

I don't get a GUI/my resolution isn't what I want
# Configuring X
Linux Hardware Compatibility HOWTO - video cards
The Linux XFree86 HOWTO
Configuring XFree86 for a Non-Specific Linux Distribution

# Mandrake/Mandrivia links
Mandrake home page
Mandrake Users website (needs money to access now)
Software management configuration: Easy urpmi config for Mandrake
Software management: urpmi mini-HOWTO
Software management: All You Ever Wanted to Know About Urpmi But Never Dared Asking Before
You didn't install the developmental packages? As root, command:
urpmi gcc
An Introduction to the Midnight Commander. You can install it by commanding:
urpmi mc
Midnight Commander home page

Last edited by fancypiper; 05-26-2005 at 07:59 AM.
 
Old 05-27-2005, 06:59 AM   #3
~vAvE(!)
LQ Newbie
 
Registered: May 2005
Distribution: Mandrake 10.2 (Mandriva)
Posts: 9

Original Poster
Rep: Reputation: 0
well thx for your answer fancypiper.
i am using Xorg and i checked the kernel:
on uname -r it showed
2.6.11-6mdk
when i did the [ls -alc] however it showed


drwxr -xr -x 3 root root 4096 May 27 06:19 ./

drwxr -xr -x 12 root root 4096 May 27 06:19 ../

drwxr -xr -x 3 root root 4096 May 27 06:18 RPM/


is that normal? what do i have to do?
thanx anyway
 
Old 05-27-2005, 08:00 AM   #4
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
The kernel-source should be in /usr/src, not /root

Can you cd /usr/src, then ls?
Code:
Fri May 27 09:01 AM root@uilleann ~ # cd /usr/src
Fri May 27 09:01 AM root@uilleann /usr/src # ls -al
total 16
drwxr-xr-x   4 root root 4096 Apr 30 17:07 .
drwxr-xr-x  15 root root 4096 Apr 24 17:56 ..
lrwxrwxrwx   1 root root   24 Apr 30 17:07 linux -> linux-2.4.22-1.2199.nptl
lrwxrwxrwx   1 root root   24 Apr 24 19:49 linux-2.4 -> linux-2.4.22-1.2199.nptldrwxr-xr-x  16 root root 4096 Apr 24 19:49 linux-2.4.22-1.2199.nptl
drwxr-xr-x   7 root root 4096 Apr 24 18:05 redhat
Fri May 27 09:01 AM root@uilleann /usr/src #
If it isn't there, try:

urpmi kernel-sources (or is that kernel-source, one should be right).

Last edited by fancypiper; 05-27-2005 at 08:05 AM.
 
Old 05-27-2005, 11:32 AM   #5
~vAvE(!)
LQ Newbie
 
Registered: May 2005
Distribution: Mandrake 10.2 (Mandriva)
Posts: 9

Original Poster
Rep: Reputation: 0
oh sorry, i was in /src , but forgot to write
i tried it again, but the result is still the same
instead of some kernel - source code i get only this:


[root@localhost ~]# cd /usr/src
[root@localhost src]# ls -al
total 12
drwxr-xr-x 3 root root 4096 May 27 06:19 ./

drwxr-xr-x 12 root root 4096 May 27 06:19 ../

drwxr -xr-x 3 root root 4096 May 27 06:18 RPM/


Last edited by ~vAvE(!); 05-27-2005 at 11:47 AM.
 
Old 05-27-2005, 12:32 PM   #6
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
That means you will have to configure urpmi and command:

urpmi kernel-sources

If you haven't updated since the install, you can find the kernel-sources package somewhere on one of your install CDs.

It seems as if http://plf.zarb.org/~nanardon/urpmiweb.php has vanished from the web, though, so check out these:

urpmi mini-HOWTO

All You Ever Wanted to Know About Urpmi But Never Dared Asking Before

Last edited by fancypiper; 05-27-2005 at 12:39 PM.
 
Old 05-27-2005, 01:23 PM   #7
~vAvE(!)
LQ Newbie
 
Registered: May 2005
Distribution: Mandrake 10.2 (Mandriva)
Posts: 9

Original Poster
Rep: Reputation: 0
wow, great! ty!
i have the kernel-source now installed and its shown under /usr/src:

...
lrwxr-xr-x 8 root root 27 May 19:15 linux->linux-2.6.11-6mdk
//and the other lines, tell me if you need exact documentation!
....


when doing urpmi kernel source there were two versions of the kernel source,
i had to take the stripped one because of disk space...
plz tell me if this is alright, else i have to get some free space.
should i have a go at compiling now?
Thx again!!
 
Old 05-27-2005, 01:30 PM   #8
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Download the driver for your video card and jump through the hoops I posted in the first answer in order to install the driver.

Post the errors if you run into trouble.

Last edited by fancypiper; 05-27-2005 at 01:31 PM.
 
Old 05-27-2005, 04:04 PM   #9
~vAvE(!)
LQ Newbie
 
Registered: May 2005
Distribution: Mandrake 10.2 (Mandriva)
Posts: 9

Original Poster
Rep: Reputation: 0
alright, I download the drivers, but i have to compile the kernel source first. How do I do that?
 
Old 05-27-2005, 04:11 PM   #10
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
I don't think you will need to compile the kernel, I didn't when I installed my nvidia driver.

You need the kernel source code in order to have the proper files created to store the driver as the module. You already have that kernel installed and running, you just need to load a module after it installs/compiles, so you may have to add the command to /etc/rc.d/rc.local file. That should be covered in the INSTALL and README files of the driver package.
 
Old 05-28-2005, 04:50 AM   #11
~vAvE(!)
LQ Newbie
 
Registered: May 2005
Distribution: Mandrake 10.2 (Mandriva)
Posts: 9

Original Poster
Rep: Reputation: 0
i installed the driver, but got this Error:

ERROR: Unable to build the NVIDIA kernel module

is my kernel source alright? as i said, i had to use the stripped down version when doing urpmi
 
Old 05-28-2005, 04:52 AM   #12
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
If it quits with an error, you did not succeed in installing the module.......

From where did you get kernel-sources?

Compare the kernel-sources to the response to this command:

uname -r

How to get good answers with your questions about Linux

Last edited by fancypiper; 05-28-2005 at 04:56 AM.
 
Old 05-28-2005, 03:18 PM   #13
~vAvE(!)
LQ Newbie
 
Registered: May 2005
Distribution: Mandrake 10.2 (Mandriva)
Posts: 9

Original Poster
Rep: Reputation: 0
good question, *lol*
i just typed in urpmi kernel-source
and it worked... (maybe because i had installed the whole installation cd on my hard drive)
the version number of the source and the kernel are matching,
but i can try to reinstall the whole linux and try again

EDIT: Wait, what did you say about adding the command to /etc/rc.d/rc.local file?
i haven't done that yet, how should i do that exactly?

Last edited by ~vAvE(!); 05-28-2005 at 03:22 PM.
 
Old 05-28-2005, 04:17 PM   #14
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Hmm.. all the distros that I use call that package kernel-sources rather than kernel-source (except Gentoo which calls it gentoo-sources). Perhaps with Mandrivia they could possibly be different packages? I'm not sure how Mandrivia handles modules. Check their site and see how they do it.

Anyhooo, after you are successful in installing the module, most distros (if not all) will add it to the list of modules it should load at boot when you issue this command as root:

depmod -ae.

If that doesn't work, in my Fedoras distros, you would put the command:

modprobe <module name>

in the last boot up script that is run (/etc/rc.d/rc.local). Check the Linux Loadable Kernel Module HOWTO for better info than I can provide off-hand.

Also see:
man depmod
info depmod
man modprobe
info modprobe

Last edited by fancypiper; 05-28-2005 at 04:22 PM.
 
Old 05-31-2005, 12:32 PM   #15
~vAvE(!)
LQ Newbie
 
Registered: May 2005
Distribution: Mandrake 10.2 (Mandriva)
Posts: 9

Original Poster
Rep: Reputation: 0
wow, i made it! its working perfectly now!!
thx very much fancypiper!!!!

Last edited by ~vAvE(!); 06-02-2005 at 02:58 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with accessing other network server when connected from a dial-in server radatan71 Linux - Networking 0 11-22-2005 02:20 AM
can we configure a Linux server with mail server,file server and web server kumarx Linux - Newbie 5 09-09-2004 06:21 AM
postfix server installation, samba server problem eozdoganci Linux - Networking 0 06-04-2004 06:14 AM
irc server problem, cant join my own server..... BmxFace Linux - Networking 3 11-26-2003 08:51 AM
problem with my mail server and/or name server jfall Linux - Networking 1 10-14-2002 10:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 02:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration