LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-23-2002, 10:59 AM   #1
dpreed7
Member
 
Registered: Feb 2002
Posts: 34

Rep: Reputation: 15
linux installation


Hi I'm new to Linux and had to do a text install because I couldn't get the video configured during the installation. I eventually ended up using the xf86config utility to configure my XF86Config file to be able to start X. I thought I answered all the questions properly and my video (s3virge/dx) card was supported. When I went to start x though I got the error "execve failed for /etc/x11/x (errno 2). Can any one help. Thanks.
 
Old 02-23-2002, 04:53 PM   #2
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
/etc/x11/x is supposed to point to your X server. Do a ls -l /etc/x11/x and see where it points. It should point to the X server for the s3virge/dx chipset. If it doesn't, try running the xf86config program again. If that doesn't work, you're going to have to create the link yourself.

I got that info here . Scroll down to the section titled Re: X won't start .
 
Old 02-24-2002, 10:23 AM   #3
dpreed7
Member
 
Registered: Feb 2002
Posts: 34

Original Poster
Rep: Reputation: 15
Thanks Linux cool but I can't even find /etc/X11/X. When I drill down to the /etc/X11 directory there is no X listed. There is an xserver but I can't get into it. Also when I do a ls -l /etc/X11/X from just the / directory I get ls is an invalid command. If I drill down to the /etc/X11 directory and perform this command I get a not a valid directory. Therefore I don't really know where x points. Any other suggestions on how to get to X. I assume I haven't used the right commands or am not in the right directory when I perform them. I tried running the xf86config utility again to no avail. How do I create the link myself? Thanks for the help.
 
Old 02-24-2002, 10:23 AM   #4
dpreed7
Member
 
Registered: Feb 2002
Posts: 34

Original Poster
Rep: Reputation: 15
Thanks Linux cool but I can't even find /etc/X11/X. When I drill down to the /etc/X11 directory there is no X listed. There is an xserver but I can't get into it. Also when I do a ls -l /etc/X11/X from just the / directory I get ls is an invalid command. If I drill down to the /etc/X11 directory and perform this command I get a not a valid directory. Therefore I don't really know where x points. Any other suggestions on how to get to X. I assume I haven't used the right commands or am not in the right directory when I perform them. I tried running the xf86config utility again to no avail. How do I create the link myself? Thanks for the help.
 
Old 02-25-2002, 01:47 AM   #5
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
Try running ls -l /etc/X11 and see if it shows anything for X. You said that you found your xserver in the /etc/X11 folder. If you don't find X in there, you can create a new link. Like this:
Code:
ln -s /etc/X11/<xserver_name_here> /etc/X11/X
 
Old 02-27-2002, 07:41 AM   #6
dpreed7
Member
 
Registered: Feb 2002
Posts: 34

Original Poster
Rep: Reputation: 15
Hey Linuxcool thanks for the help but no luck so far. I tried the ls -l /etc/X11 to see if a file X is there. It isn't as far as I can tell. I tried the ln -s /etc/X11/XFree86_SVGA /etc/X11/X like you said to no avail. The error message I received was : execve for /etc/X11/X (errno 2)
giving up
Xinit: no such file or directory (errno 2) : unable to connect to server
Xinit: No such process (errno 3) : server error

Any other suggestions before I start from scratch again. One question I have is this "X" file is that another name for the XF86Configuration file? I see that in the /etc/X11 directory. Thanks for the help anyway and I'm not giving up.
 
Old 02-28-2002, 12:40 AM   #7
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
Where is your X server, XFree86_SVGA, located? Is it in the /etc/X11 or /usr/X11R6/bin directory?

The "X" file is not another name for the XF86Configuration file. "X" is a special file that is used to point to the actual X server.

What distro and version are you using?
 
Old 02-28-2002, 12:10 PM   #8
dpreed7
Member
 
Registered: Feb 2002
Posts: 34

Original Poster
Rep: Reputation: 15
Hi Lcool when I look in /etc/X11 all I see is a xserver/ directory or file. When I try changing into it I get a "Security Policy" response. When I go into /usr/X11R6/bin directory I don't see an "XFree86_SVGA" file. However, when I do rpm -qa | grep XFree I get these responses:
XFree86-libs
XFree86-server-common
XFREE86-4.1.0
XFree86-xfs
XFRee86_SVGA-3.3.6

As I understand it I have XFree86_SVGA installed somewhere correct. That's about all I can tell you Lcool. I certainly appreciate the help. I'm not sure what to do next. The "X" file points to the server. When and where does the XF86Config file come into play. How does one edit it. I can't even get into it. How do you view it? If I do cat XF86Config it doesn't really work. I assume I need to use a text editor. Will editing fix the problem?

Confused
 
Old 03-01-2002, 05:04 AM   #9
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
OK, my knowledge of X windows is limited, but let's try again.

It appears that you have an old version ( 3.3.6 ) and a new version ( 4.1.0 ) of X windows installed.

First, let's remove that link you created by running this command rm /etc/X11/X. Next, run this command ls /usr/X11R6/bin | less. Look for the following: X, XFree86, XF86_SVGA, and XFree86_SVGA. If you have never used the less command before, you can scroll through the listing by using the up and down arrow keys or the space bar and the letter ' B ' key or the page up and down keys. When you're finished looking, use the ' Q ' key to exit. See man page for less for more info. Let me know if you find any of those files.

You can change the XF86Config file by using the config program or a text editor. Use this to view the file: less <path_to_XF86Config> . I believe the XF86Config file is read by the X server program on start up. To find out where the XFree86_SVGA file is try running rpm -ql XFRee86_SVGA-3.3.6 | less. This will give you a listing of the files that were installed.
 
Old 03-03-2002, 12:30 PM   #10
dpreed7
Member
 
Registered: Feb 2002
Posts: 34

Original Poster
Rep: Reputation: 15
Hi Linuxcool we're struggling huh? I removed the link like you said by running the command rm /etc/X11/X. I next ran the command ls /usr/X11R6/bin | less. I found these files: X, XF86_SVGA , XFree86. I did not find XFree86_SVGA. When I went to run the command : rpm -ql XFree86_SVGA-3.3.6 | less I received the response that said "XFree86_SVGA-3.3.6 not installed. Hope that helps you solve this problem. While we're on the subject where is the "X" file. It seems like you're saying it's in the /etc/X11 directory and the /usr/X11R6/bin directory where the xservers are. Good luck and talk to you soon.
 
Old 03-04-2002, 03:54 AM   #11
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
I thought that the X file was in /etc/X11 because of the error message that you said you got. But the X file is in /usr/X11R6/bin. I have Caldera and Zipslack installed and they both have the X file in /usr/X11R6/bin. What distribution do you have?

I'm going to need some more info.

Let's see if /usr/X11R6/bin is in your path. Run this command echo $PATH and see if /usr/X11R6/bin is listed.

Run ls -l /usr/X11R6/bin/X and see what it points to. Look on the right side of the screen and you'll see something like this:
/usr/X11R6/bin/X -> XF86_SVGA.
Tell me what it points to.

You seem to have a new and an old X server installed. In your grep output you listed XFREE86-4.1.0 and XFRee86_SVGA-3.3.6 . Run this command ls /usr/X11R6/lib/modules/drivers and see if you get a list of drivers for various video chipsets like cirrus and s3virge.

When you run startx, at some point it will look for the X file. It will search the folders listed in your path list. If it finds it, it will try to run the X server that it is pointing to. If it can't find it or it is pointing to a nonexistent file, it will give you an error about not finding an X server.

Last edited by linuxcool; 03-04-2002 at 03:56 AM.
 
Old 03-05-2002, 11:07 AM   #12
dpreed7
Member
 
Registered: Feb 2002
Posts: 34

Original Poster
Rep: Reputation: 15
Hey Linuxcool in answer to your questions I have Mandrake 8.1. /usr/X11R6/bin is listed in my path and when I run ls -l /usr/X11R6/bin/X it points to Xwrapper. And finally when I run /usr/X11R6/lib/modules/drivers I get a list of stuff like: s3_drv.o
s3virge_drv.o
cirrus_drv.o
cirrus_alphine.o
chips_drv.o

So hope that info helps. It looks like my X file is pointing to Xwrapper which seems to be okay according to the books I've read. I'm still a little foggy on the process when you run startX. As far as I know startX looks for the X file which points towards the Xserver. Where does the XF86Config file come in during the process? We'll get this thing worked out. Lets hang in there.
 
Old 03-06-2002, 12:01 AM   #13
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
OK, that's good that /usr/X11R6/bin is in your path.

The existance of this directory ( /usr/X11R6/lib/modules/drivers ) and the list of drivers indicates that you have a new version of X window installed. The XF86_SVGA file says that you also have an old X window version installed.

When startx is run, it does some processing then it calls the xinit program. I believe that it's the xinit program that reads the XF86Config file.

On my Caldera system, my X file points to the XF86_SVGA file and not the Xwrapper file. Let's point your X file to an X server. Do:
ln -sf /usr/X11R6/bin/XF86_SVGA /usr/X11R6/bin/X
then
ls -l /usr/X11R6/bin/X
to make sure it's pointing to XF86_SVGA. Then run the X window configuration program. Next, run
ls -l /usr/X11R6/bin/X
to make sure it wasn't changed. Then run startx and see what happens.
 
Old 03-06-2002, 07:43 PM   #14
dpreed7
Member
 
Registered: Feb 2002
Posts: 34

Original Poster
Rep: Reputation: 15
Hi Linuxcool I pointed my X file to the XF86_SVGA server like you said. Then I went into the only X window configuration program I have, xf86config, and ran the program again. When I ran startx I got these responses:

config error: /etc/X11/XF86config:48
subsection "extmod"
module section keyword expected
xinit : interrupted system call(errno 4): unexpected signal 13

Then I went into the xf86config program and tried to change some things with the keyboard settings and got these responses when I ran startx:
config error:/etc/X11/XF86config:48
module section keyword expected
xinit: server error
So that's where we stand now. Does any of this make sense Linuxcool. I set my monitor for standard vga 600x400 with a verticle and horizontal rate of 50 hertz. Help!
 
Old 03-07-2002, 03:52 AM   #15
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
This part of the error message indicates that there is an error at line 48 in the XF86config file.

config error: /etc/X11/XF86config:48
subsection "extmod"
module section keyword expected


Go into your XF86config file and go to the line that should look like this:

SubSection "extmod"

and make that section look like this:

SubSection "extmod"
Option "omit xfree86-dga"
EndSubSection


That is from my XF86config file. Run the X config program again and then try running startx. If it doesn't work, try pointing the X file to the other X server ( XFree86 ). Run ln -sf /usr/X11R6/bin/XFree86 /usr/X11R6/bin/X. Then configure X and run startx.
 
  


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
Report your Linux installation and configuration success story to the Linux Tutorials t3gah Linux - Laptop and Netbook 2 04-23-2005 01:14 AM
Linux Installation before Windows Installation pragun Fedora 1 01-19-2005 12:27 AM
Installation doesn't recognize Red Hat Enterprise Linux ES installation cd bizkut Red Hat 2 08-15-2004 09:57 AM
linux installation - please help thesoccerking Linux - Software 11 04-23-2002 02:16 PM
Linux Installation JanderII Linux - Software 5 10-27-2001 03:18 AM


All times are GMT -5. The time now is 10:48 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration