On Thu, 2003-03-06 at 02:35, William Warren wrote:
> On Wed, Mar 05, 2003 at 08:51:04PM -0600, Bret Hughes wrote:
> > On Wed, 2003-03-05 at 16:05, William Warren wrote:

> 
> This only affects root. 
> 
> > ... also you might try startx > startlog.out 2>&1
> > and see if you can capture what is happening.
> 
> Here's the output: see also http://billhorne.homelinux.org/xfiles/ for the 
> full versions.
> 
> XFree86 Version 4.2.0 (Red Hat Linux release: 4.2.0-8) / X Window System
> (protocol Version 11, revision 0, vendor release 6600)
> Release Date: 23 January 2002
>       If the server is older than 6-12 months, or if your card is
>       newer than the above date, look for a newer version before
>       reporting problems.  (See http://www.XFree86.Org/)
> Build Operating System: Linux 2.4.17-0.13smp i686 [ELF] 
> Build Host: daffy.perf.redhat.com
>  
> Module Loader present
> Markers: (--) probed, (**) from config file, (==) default setting,
>          (++) from command line, (!!) notice, (II) informational,
>          (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
> (==) Log file: "/var/log/XFree86.0.log", Time: Thu Mar  6 03:03:48 2003
> (==) Using config file: "/etc/X11/XF86Config-4"
> xinit:  connection to X server lost. (I typed Cntl-Alt-Backspace)
> 
> 

is there a /root/.xinitrc file?

if so what is in it?

here is my thinking so far.

1.XF86Config-4 is ok and being used ( Others users are ok) this
eliminates console ownership issues and all that stuff.

2. X is starting but no programs are being run for some reason

in order to address #2 lets look at /root/.[xX]* files

cd /root
ls -al .[xX]*

here is mine

[EMAIL PROTECTED] root]# ls -al .[xX]*
-rw-------    1 root     root           53 Apr 21  2002 .xauth1R74zn
-rw-------    1 root     root           53 Jun  8  2002 .xauth89MEKN
-rw-------    1 root     root           53 Nov  6 14:09 .xauth8JSUHw
-rw-------    1 root     root           53 Jan  3  2002 .xauthaJAgE2
-rw-------    1 root     root           53 Feb 19 23:31 .xauthAngn4G
-rw-------    1 root     root           53 Feb  6 11:41 .xauthATs4yU
-rw-------    1 root     root           53 Nov 13 10:47 .xauthhGpsy5
-rw-------    1 root     root           53 Sep 20 13:45 .xauthibvdWR
-rw-------    1 root     root           53 Jan  8  2002 .xauthjBfK3q
-rw-------    1 root     root           53 Jan  7  2002 .xauthndYIHe
-rw-------    1 root     root          104 Feb 25 13:06 .Xauthority
-rw-------    1 root     root           53 Mar  6 09:19 .xauthPHIiKg
-rw-------    1 root     root           53 Apr 21  2002 .xauthtewrUo
-rw-------    1 root     root           53 Mar  4 19:58 .xauthuu8lvm
-rw-------    1 root     root           53 Jan 12 16:26 .xauthWpavTk
-rw-------    1 root     root           53 Apr 21  2002 .xauthWxACe8
-rw-r--r--    1 root     root         1126 Aug 23  1995 .Xresources
-rw-------    1 root     root         1215 Sep 19 01:30 .xsession-errors


we can ignore all the xauth stuff.  I have never run switchdesk as root
so it is using the system default stuff in /etc/X11/xinit

if you have a .Xclients or .xinitrc in /root what is in there,  rename
them to something else and try again.  Also lets take a look at
.xsession-errors.


ps may help too.

a snip from ps axfw.  (I started x from an xterm using startx -- :1) 


 \_ bash
 4111 pts/0    S      0:00  |   \_ /bin/sh /usr/bin/X11/startx -- :1
 4125 pts/0    S      0:00  |       \_ xinit /etc/X11/xinit/xinitrc --
/usr/X11R6/bin/X :1
 4126 ?        S<     0:02  |           \_ /usr/X11R6/bin/X :1
 4130 pts/0    S      0:00  |           \_ gnome-session
 4141 ?        S      0:00  |               \_ /usr/bin/ssh-agent
/home/bhughes/.Xclients-default


from this we see that xinit is started with the system default init file
/etc/X11/xinit/xinitrc. In there we see toward the end after a bunch of
keyboard setup stuff:

 
if [ -f $HOME/.Xclients ]; then
    exec $HOME/.Xclients
elif [ -f /etc/X11/xinit/Xclients ]; then
    exec /etc/X11/xinit/Xclients
else
       # failsafe settings.  Although we should never get here
       # (we provide fallbacks in Xclients as well) it can't hurt.
       xclock -geometry 100x100-5+5 &
       xterm -geometry 80x50-50+150 &
       if [ -x /usr/bin/netscape -a -f /usr/share/doc/HTML/index.html ];
then
               netscape /usr/share/doc/HTML/index.html &
       fi
       if [ -x /usr/X11R6/bin/fvwm2 ]; then
               exec fvwm2
       else
               exec twm
       fi
fi


If your system is similar, since you are not getting any client programs
started, my guess is that there is a blank file in /root/.Xclients
(likely) or the system Xclients (unlikely)

I think startx will call xinit with a user's ~/.xinitrc if it exists so
it would short circuit the Xclients stuff.

Try tracking your system in a similar manner until we get to where we
find the error.

HTH


Bret  



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to