daya wrote:
Hi, all
I have tried to install ltsp in lenny, using ltsp-build-client and as
instructed in http://wiki.debian.org/LTSP/Howto, the upper one. It
installed successfully. But X is not started in client. ldm was not
installed in the server. So I installed it , again it doesn't work.
Does ldm in lenny is not functional.
Oops - just remembered. The actual ldm script doesn't seem to get
installed either, I had a copy of it kicking around, and have attached
it. Save it into /opt/ltsp/i386/usr/lib/ltsp/screen.d/
After that, you should get a login - local devices don't seem to work,
as installing ldm causes ltspfsd to be removed. I think LTSP in Debian
(Lenny) at the moment seems to be in a bit of a state of flux!
Anyway, hope this helps.
David
#!/bin/sh
# Depend on the ldm package
#
# Copyright 2005, Canonical Ltd.
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation; either version 2, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
A
# PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License with your
# Debian GNU system, in /usr/share/common-licenses/GPL. If not, write to the
# Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
#
# Load ltsp config defaults
#
. /usr/lib/ltsp/ltsp_config
#
# Compute tty and displaynum
#
TTY=$(tty)
TTYNUM=${TTY#/dev/tty}
DISPLAYNUM=$((${TTYNUM} - 1))
#
# limit ram percentage. By default, behaviour is no limit.
# Use this to stop firefox crashing sites with pathalogically large images,
# etc.
#
X_RAMPERC=${X_RAMPERC:-100}
if [ ${X_RAMPERC} -lt 100 ]; then
XMEM=0
while read TYPE VALUE UNITS; do
case ${TYPE} in
MemFree:|SwapFree:)
XMEM=$((${XMEM} + ${VALUE}))
;;
esac
done < /proc/meminfo
XMEM=$((${XMEM} * ${X_RAMPERC} / 100))
ulimit -m ${XMEM}
fi
while :; do
#
# Server scalability. If there exists a /usr/lib/ltsp/get_hosts file, then
# use it to populate the LDM_SERVER environment variable.
#
if [ -z "${LDM_SERVER}" ]; then
if [ -x /usr/lib/ltsp/get_hosts ]; then
LDM_SERVER=$(/usr/lib/ltsp/get_hosts)
else
LDM_SERVER=${SERVER}
fi
fi
export LDM_SERVER
#
# Loop though each of the hosts, and get their ldminfo
#
if [ -n "${LDM_SERVER}" ]; then
test ! -d /var/run/ldm && mkdir -p /var/run/ldm
for SRV in $LDM_SERVER ; do
nc $SRV 9571 > /var/run/ldm/$SRV
done
fi
ldm vt${TTYNUM} :${DISPLAYNUM}
# Clean up from some buggy video drivers that need two kills
XPROC=$(pgrep -f ":${DISPLAYNUM}")
while [ -n "${XPROC}" ]; do
kill $XPROC
sleep 1
XPROC=$(pgrep -f ":${DISPLAYNUM}")
done
rm -f /root/.Xauthority
rm -f /tmp/.X11-unix/X${DISPLAYNUM}
rm -f /tmp/.X${DISPLAYNUM}-lock
done
begin:vcard
fn:G David Sword
n:Sword;G David
org:William Sword Ltd
adr:Blairlinn;;Groveside Bakeries;Cumbernauld;;G67 2TX;Scotland, UK
email;internet:[EMAIL PROTECTED]
title:Joint Managing Director
tel;work:01236 725094
tel;fax:01236 730472
x-mozilla-html:FALSE
url:http://www.williamsword.co.uk
version:2.1
end:vcard
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_____________________________________________________________________
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