Back

Automatic XPDE in Mandrake 9.1 LTSP

      Whats so special about xpde in ltsp? multiuser! many X window users accessing the server at the same time, you know? thats what linux was made for before M$ considered doing such a thing, and it works great too! 8)

      Of course, I will not run any script when creating new users, so I made the system set up their setup script automagically for them IF they choose to enter XPDE for the first time! overriding xpdes own INSTALL instructions ;)

      Ok download its binaries xpde-0.3.0-20030315.tar.gz, uncompress and install

# tar -zxvf xpde-0.4.0-20030730.tar.gz
# cd xpde-0.4.0
# ./install.sh

      then put the sources within the xpde/src dir

# cd ..
# mkdir /opt/xpde/src/
# mv xpde-0.4.0 /opt/xpde/src/

      edit this file

/opt/xpde/src/xpde-0.4.0/setup.sh

      edit it so it should only contain this

#!/bin/sh
echo "Remember you must execute this program as user, not as root!!!";
cp -r  /opt/xpde/src/xpde-0.4.0/defaultdesktop ~/.xpde


      create a new XPde GDM session

# joe /etc/X11/gdm/Sessions/XPde

      and it should contain this text

#!/bin/bash
exec /etc/X11/xdm/Xsession XPde

      After you save that file, you must type this:

# chmod a+x /etc/X11/gdm/Sessions/XPde

      that script is now "executable", next go to open the file

# joe /etc/X11/Xsession

      look for this part

if [ -n "$DESKTOP" ]; then
    case $DESKTOP in
        failsafe)
        xsetroot -cursor_name left_ptr
        exec $SSH_AGENT xvt -geometry 80x24-0-0
        exec $SSH_AGENT xterm -geometry 80x24-0-0
        exec $SSH_AGENT twm
        ;;
        default)
        ;;
        *)
        exec $SSH_AGENT /bin/sh -c "$(/usr/sbin/chksession -x=$DESKTOP)"
        ;;
    esac
fi


      add this part

        XPde)
        if [ ! -f "~/.xpde" ] ; then sh /opt/xpde/src/xpde-0.4.0/setup.sh ; fi
        export LD_LIBRARY_PATH=/opt/xpde/bin
        exec $SSH_AGENT /opt/xpde/bin/XPde &
        exec $SSH_AGENT /opt/xpde/bin/XPwm
        ;;

      so that it will end up looking like this

if [ -n "$DESKTOP" ]; then
    case $DESKTOP in
        XPde)
        if [ ! -f "~/.xpde" ] ; then sh /opt/xpde/src/xpde-0.4.0/setup.sh ; fi
        export LD_LIBRARY_PATH=/opt/xpde/bin
        exec $SSH_AGENT /opt/xpde/bin/XPde &
        exec $SSH_AGENT /opt/xpde/bin/XPwm
        ;;
        failsafe)
        xsetroot -cursor_name left_ptr
        exec $SSH_AGENT xvt -geometry 80x24-0-0
        exec $SSH_AGENT xterm -geometry 80x24-0-0
        exec $SSH_AGENT twm
        ;;
        default)
        ;;
        *)
        exec $SSH_AGENT /bin/sh -c "$(/usr/sbin/chksession -x=$DESKTOP)"
        ;;
    esac
fi


      save, close and open this file

# joe /usr/share/config/kdm/kdmrc

      add this

,XPde

      to the end of thise line (note that you have the names of the window managers you have installed, so its not necesarilly this line)

SessionTypes=KDE,GNOME,Enlightenment,BlackBox,XFce,IceWM,failsafe,default


      Save, and log in with your favourite display manager, and thats it, every time a new user is created, he will NOT have .xpde in his home, directory but once he logs in for the first time, everything will be perfectly well set up 8)

      Btw, I have yet to figure out how to disable XPDEs "turn off" button, so that it only says "log off" and just get the user back to GDM login screen as it should. If you know how to do it, email me at cucnews at yahoo dot com. Thanks!

      btw, I renamed

/sbin/shutdown

      and at least keeps regular users from turning the computer off ;)

      Back
Hosted by www.Geocities.ws

1