Re: FC2 upgrade-X problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2004-08-03 at 10:57, Ralph Jones wrote:
> Thanks for the reply, Graeme. Your problem looks much like mine:failure of 
> the X server to start when booting into runlevel 5. Specific symptoms:
> 
> When I try to boot the system into runlevel 5 (i.e. inittab contains 
> id:5:initdefault), the X server goes into a repetitive cycle of starting 
> and failing.
> 
> When I boot into runlevel 3 (id:3:initdefault), and then try to go to 
> runlevel 5 (i.e. init 5), the same thing happens.
> 
> When I boot into runlevel 3 and then command startx, the X server and Gnome 
> come right up.
> 
> When the X server tries to start up on a reboot, it fails to create the 
> xorg.conf file. Just on a hunch, I tried copying the old XF86Config file 
> into xorg.conf, but that didn't change anything.
> 
> rj

Hi Ralph, another thing to check is your /etc/X11/prefdm script. The
permissions are as follows:

-rwxr-xr-x    1 root root 1166 May  7 14:29 prefdm

This script gets run if the run level in inittab is set to 5. It then
starts up gdm, if you are running Gnome, and presents you with a
graphical login screen. My prefdm script follows:

[graeme@barney X11]$ cat prefdm
#!/bin/sh
 
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
 
 
# shut down any graphical boot that might exist
if [ -x /usr/bin/rhgb-client ]; then
    /usr/bin/rhgb-client -quit
fi
 
# We need to source this so that the login screens get translated
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
 
# Run preferred X display manager
preferred=
if [ -f /etc/sysconfig/desktop ]; then
        . /etc/sysconfig/desktop
        if [ "$DISPLAYMANAGER" = GNOME ]; then
                preferred=gdm
        elif [ "$DISPLAYMANAGER" = KDE ]; then
                preferred=kdm
        elif [ "$DISPLAYMANAGER" = XDM ]; then
                preferred=xdm
        fi
fi
 
if [ -z "$preferred" ]; then
        if which gdm >/dev/null 2>&1; then
                preferred=gdm
        elif which kdm >/dev/null 2>&1; then
                preferred=kdm
        elif which xdm >/dev/null 2>&1; then
                preferred=xdm
        fi
fi
 
if [ -n "$preferred" ] && which $preferred >/dev/null 2>&1; then
        exec `which $preferred` $* >/dev/null 2>&1
fi
 
if which gdm >/dev/null 2>&1; then
        exec `which gdm` $* >/dev/null 2>&1
elif which kdm >/dev/null 2>&1; then
        exec `which kdm` $* >/dev/null 2>&1
elif which xdm >/dev/null 2>&1; then
        exec `which xdm` $* >/dev/null 2>&1
fi
 
# catch all exit error
exit 1

Follow through from the prefdn script and check out your gdm etc. and
try and find at which point it all falls over if you are still having
problems.

HTH

--
----------------------------------------------------------------------
Kind regards, Graeme Nichols.
----------------------------------------------------------------------
Just type 'mv * /dev/null'.
----------------------------------------------------------------------

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux