<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
I have attempted numerous installs of LTSP 5.2.4.5, obtained from the
repo at<br>
<br>
<a class="moz-txt-link-freetext"
 href="http://www.dageek.co.uk/ltsp/x86_64/">http://www.dageek.co.uk/ltsp/x86_64/</a><br>
<br>
<br>
To summarize, two things seem to be a problem:<br>
<br>
1. ltsp will not read /var/lib/tftpboot/ltsp/i386/lts.conf from server
when the thin client boots. The only way to fix this problem is to copy
the lts.conf file to /opt/ltsp/i386/etc/lts.conf. That means that each
time this file is changed, we need to rerun ltsp-update-image.<br>
<br>
2. The reason this is a problem is that the ldm client on the TC seems
to<br>
be missing important environment variables. At the very least, we need
to <br>
include in lts.conf a line reading<br>
<br>
<pre>    LDM_XSESSION=gnome-session</pre>
<br>
Unless this line is present, ldm tries to start an X session, but
doesn't know which one to start. The result is that after the user
types their password, they get kicked back to the login prompt. (This
one is a separate issue that needs attention.)<br>
<br>
Finding these things out took about a day, and required adding debug
statements<br>
to the following scripts:<br>
/opt/ltsp/i386/usr/share/ldm/ldm-script<br>
/opt/ltsp/i386/usr/share/ldm/rc.d/S01-setup-xauth<br>
/opt/ltsp/i386/usr/share/ldm/rc.d/X95-run-x-session<br>
<br>
<br>
It is not straightforward to figure out how LTSP sets its critical
environment variables. The PDF administrator's guide is obsolete, in
terms of telling which scripts read the remote lts.conf. <br>
<br>
For example, /opt/ltsp/i386/usr/share/ltsp/ltsp_config first tries to
read /etc/lts.conf, then also looks for 
/var/cache/getltscfg-cluster/lts.conf<br>
<br>
<pre># Read in lts.conf entries.
if [ -f /etc/lts.conf ]; then
 eval $(getltscfg -a) || true
fi</pre>
<pre>if [ -f /var/cache/getltscfg-cluster/lts.conf ]; then
 eval $(getltscfg -a -c /var/cache/getltscfg-cluster/lts.conf) || true
fi</pre>
<br>
So maybe the question is, what is keeping ltsp_config from reading
lts.conf? <br>
<br>
I have been able to reproduce these results on Fedora 13 and 14. I did
a "from scratch" install of F14 on a laptop yesterday. In addition to
following the install instructions on the Wiki at<br>
<br>
<a href="https://fedorahosted.org/k12linux/wiki/InstallGuide"><span
 style="text-decoration: underline;">https://fedorahosted.org/k12linux/wiki/InstallGuide</span></a><br>
<br>
<br>
I also did the following:<br>
<br>
In the Firewall wizard set<br>
TFTP 69/udp<br>
Other ports: 177 udp xdmcp<br>
<br>
I have turned off SE linux, which always seems to mess up LTSP.<br>
<br>
The result is that now users can login, but that doesn't solve the
problem of why lts.conf isn't being read from the /var.... directory.<br>
<br>
<br>
One thing that is slowing me down is that on Fedora 14 I can't set a
password on the TC to allow me to login  as root on the TC. Usually,
this is as simple as going into the chroot and then typing 'passwd'.
However, when I try to run passwd I get:<br>
<br>
<pre>passwd: unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 is not authorized to change the password of root</pre>
<br>
My gut feeling is that this is an SE_Linux message, but I've disabled
SE_Linux.<br>
Does this message look familiar to anyone?<br>
<br>
<br>
Brian Fristensky<br>
<br>
P.S. For those wanting to try LSTP on Fedora 14 you must install it
from the repo listed above, and NOT the from the Fedora repo, which is
an old broken version. You also need to copy the files described in
comments 15 and 16 of bug 652896 at bugzilla.redhat.com.<br>
<br>
<br>
<br>
<br>
<br>
<br>
</body>
</html>