On Tue, 2003-10-07 at 02:31, Amit vyas wrote:
> GDM has problems LTSP package could use KDM as default ar provide with
> additional scripts that could handle this.
> I am not able to switch to KDM, and still rebooting the server for it to
> start fresh sessions.
> My server gets very slow after sometime.
> My gdm is set to respond 100 sessions.
I'm using gdm-2.4.1.3-5.1 on several servers, and in general I am not
having problems. I did change the "Default" PreSession and PostSession
scripts a bit; maybe these changes will help. Compare these scripts to
what you're using now and copy the interesting bits into your own
scripts.
/etc/X11/gdm/PreSession/Default
#!/bin/bash
# This script will be run during login, before the session is started.
# Note that any setup should come before the sessreg command as
# that must be 'exec'ed for the pid to be correct (sessreg uses the
# parent pid)
#
# Note that output goes into the .xsession-errors file for easy
# debugging
#
PATH=/usr/bin/X11:/usr/X11R6/bin:/opt/X11R6/bin:$PATH
if command -v sessreg > /dev/null 2>&1; then
# First, shorten display names by trimming out the domain
DOMAIN=`dnsdomainname`
DISPLAY=`echo $DISPLAY | sed -e "s/\.$DOMAIN//"`
REMOTE_HOST=`echo $REMOTE_HOST | sed -e "s/\.$DOMAIN//"`
exec sessreg -a -w /var/log/wtmp \
-u /var/run/utmp \
-x "$X_SERVERS" \
-h "$REMOTE_HOST" \
-l $DISPLAY $USER
# this is not reached
fi
###############################
/etc/X11/gdm/PostSession/Default
#!/bin/sh
PATH=/usr/bin/X11:/usr/X11R6/bin:/opt/X11R6/bin:$PATH
if command -v sessreg > /dev/null 2>&1; then
# First, shorten display names by trimming out the domain
DOMAIN=`dnsdomainname`
DISPLAY=`echo $DISPLAY | sed -e "s/\.$DOMAIN//"`
REMOTE_HOST=`echo $REMOTE_HOST | sed -e "s/\.$DOMAIN//"`
sessreg -d -w /var/log/wtmp \
-u /var/run/utmp \
-x "$X_SERVERS" \
-h "$REMOTE_HOST" \
-l $DISPLAY $USER
fi
# Shut down the oaf daemon
oafdpids=`ps -aef | grep ^$USER | grep oafd | cut -c10-15`
kill -1 $oafdpids
exit 0
--
David Johnston <[EMAIL PROTECTED]>
Little Bald Consulting, LLC
gdm-2.4.1.3-5.1
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_____________________________________________________________________
Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto:
https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help, try #ltsp channel on irc.freenode.net