KDE2 auto-start???

KDE2 auto-start???

Post by Andrew Davi » Fri, 17 Nov 2000 04:00:00



Installed KDE2 from rpm for RH6.2. System now boots to shell prompt. I have
to type startx to start KDE2. KDE1 used to start automatically. Below is my
current /etc/X11/xinit/Xclients which I believe starts the xserver
automatically. Any suggestions on how to make it start automatically for
KDE2?

#!/bin/bash
# (c) 1999, 2000 Red Hat, Inc.

# check to see if the user has a preferred desktop
PREFERRED=
if [ -f /etc/sysconfig/desktop ]; then
    if [ -n "`grep -i GNOME /etc/sysconfig/desktop`" ]; then
 PREFERRED=gnome-session
    elif [ -n "`grep -i KDE /etc/sysconfig/desktop`" ]; then
 PREFERRED=startkde
    elif [ -n "`grep -i AnotherLevel /etc/sysconfig/desktop`" ]; then
 PREFERRED=AnotherLevel
    fi
fi

if [ -n "$PREFERRED" -a "$PREFERRED" != "AnotherLevel" ] && \
 which $PREFERRED >/dev/null 2>&1; then
    PREFERRED=`which $PREFERRED`
    exec $PREFERRED
fi

# now if we can reach here, either they want AnotherLevel or there was
# no desktop file present and the PREFERRED variable is not set.

if [ -z "$PREFERRED" ]; then

    GSESSION=gnome-session
    STARTKDE=startkde

    # by default, we run GNOME.
    if which $GSESSION >/dev/null 2>&1; then
 exec `which $GSESSION`
    fi

    # if GNOME isn't installed, try KDE.
    if which $STARTKDE >/dev/null 2>&1; then
 exec `which $STARTKDE`
    fi
fi

# Last, try AnotherLevel

# these files are left sitting around by TheNextLevel.
rm -f $HOME/Xrootenv.0
rm -f /tmp/fvwmrc* 2>/dev/null

# First thing - check the user preferences
if [ -f $HOME/.wm_style ] ; then
    WMSTYLE=`cat $HOME/.wm_style`
    case "$WMSTYLE" in
 Afterstep | AfterStep)
 exec /usr/X11R6/bin/RunWM --AfterStep
 ;;
 WindowMaker | Windowmaker | WMaker |  wmaker)
 exec /usr/X11R6/bin/RunWM --WindowMaker
 ;;
 Fvwm95 | fvwm95)
 exec /usr/X11R6/bin/RunWM --Fvwm95
 ;;
 Mwm | MWM | Lesstif)
 exec /usr/X11R6/bin/RunWM --FvwmMWM
 ;;
    esac
fi

# Argh! Nothing good is installed. Fall back to fvwm2 (win95-style) or twm
/usr/X11R6/bin/RunWM --Fvwm95 || {
    # gosh, neither fvwm95 nor fvwm2 is available;
    # fall back to failsafe settings
    xclock -geometry 100x100-5+5 &
    xterm -geometry 80x50-50+150 &
    if [ -f /usr/bin/netscape -a -f /usr/doc/HTML/index.html ]; then
 netscape /usr/doc/HTML/index.html &
    fi
    if [ -f /usr/X11R6/bin/fvwm ]; then
 exec fvwm
    else
 exec twm
    fi

Quote:}

 
 
 

KDE2 auto-start???

Post by Thomas Overgaar » Sat, 18 Nov 2000 04:00:00



> Installed KDE2 from rpm for RH6.2. System now boots to shell prompt.

There's an error in the package. You need to be root and then edit
these files:
/etc/profile.d/kde.sh
/etc/profile.d/kde.csh

They set the $KDEDIR to /opt/kde2 but it should be /usr

Quote:> I have to type startx to start KDE2. KDE1 used to start automatically.

Thats because KDE is in your $PATH (/usr/bin). When starting in graphic
mode Linux tries to find KDE in /opt/kde2/bin which doesnt exist.

--
Thomas O.

This area is designed to become quite warm during normal operation.

 
 
 

KDE2 auto-start???

Post by Albert Wagne » Sat, 18 Nov 2000 04:00:00


Do you perhaps know how to do the same thing on a Slackware system?


> > Installed KDE2 from rpm for RH6.2. System now boots to shell prompt.

> There's an error in the package. You need to be root and then edit
> these files:
> /etc/profile.d/kde.sh
> /etc/profile.d/kde.csh

> They set the $KDEDIR to /opt/kde2 but it should be /usr

> > I have to type startx to start KDE2. KDE1 used to start automatically.

> Thats because KDE is in your $PATH (/usr/bin). When starting in graphic
> mode Linux tries to find KDE in /opt/kde2/bin which doesnt exist.

> --
> Thomas O.

> This area is designed to become quite warm during normal operation.

 
 
 

1. How can I auto-reboot a SUN, then auto-login, then auto-start a program?

My Sun (Solaris 2.6) server is running a program as a listener, when it
receives the "installation" command from remote user, it will call a
script which will automatically reboot the machine, then auto-login,
then automatically restart the listener to do the installation ...

Does anyone know how to implement this script,

Thanks a lot,

Hua.


2. capturing scrolling text from Linux terminals

3. How to auto-reboot a SUN, then auto-login, then auto-start a program?

4. Solaris S/A needed in Atlanta

5. auto start kde2?

6. Multia Firmware

7. Can't start KDE2: /opt/kde2//lib/libkdecore.so.3: undefined symbol: __ti8QUriDrag

8. TCSH : Time Alias

9. How to auto-start of HACMP

10. listener auto-start question for SUN Solaris

11. Auto-start Apache on Solaris 2.7

12. xfstt auto-start, and font configuration in KDE

13. How to get Apache to Auto-Start at Reboot?