<div dir="ltr">Hi John and everyone,<br>Thanks for this post, I am also looking for the solution too.<br>I am deploying a lab with Edubuntu LTSP in a school, we have W2K3 domain setup already, I have tried likewise on normal ubuntu, it joins the domain and everything is ok, but it seems that I don't have luck with Edubuntu LTSP, I am working on this and next step will be "how to map their home drive when they log on to the lab?". <br>
Thanks for your help.<br>Ta.<br><br><br><div class="gmail_quote">On Mon, Sep 1, 2008 at 7:21 AM, john <span dir="ltr"><<a href="mailto:lists.john@gmail.com">lists.john@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi all,<br>
<br>
I am two days away from the start of school and the problem I<br>
described before still applies to me. If I can't figure this out I'll<br>
have to put off my upgrade to 8.04 (or 8.10 perhaps) until December.<br>
I'd really appreciate any help.<br>
<br>
This issue is I want to run some scripts that up until now have been<br>
called by /etc/profile. This has worked for me up through Edubuntu<br>
7.04 The scripts use the system variables $HOME and $USER to map NFS<br>
shares to users desktops. I understand from oli and others that the<br>
image generated by 8.04 doesn't reference /etc/profile when users log<br>
in.<br>
<br>
When I tried calling these scripts from<br>
/etc/X11/Xsession.d per Ollies suggestion the scripts didn't seem to<br>
run, and in fact after accepting my credentials X just sent me back to<br>
the login screen, perhaps my syntax was incorrect. But I couldn't<br>
find any debug information in the logs to trouble shoot the issue.<br>
Where do I find more debug info?<br>
<br>
francois suggestion about putting the lines in<br>
/opt/ltsp/i386/etc/profile and then updating the image didn't work<br>
either.<br>
<br>
Below is the what I placed in my file called /etc/X11/Xsession.d/85-SetupHome:<br>
<br>
<br>
#!/bin/sh<br>
#<br>
# SetupHome.sh<br>
# Clean up from previous session<br>
#<br>
# Sweep all files from $HOME and $HOME/Desktop to $HOME/Desktop/ZDrive<br>
# (ignores directories).<br>
# Makes Desktop and ZDrive dir entries if needed.<br>
#<br>
<br>
# Name of desktop itself<br>
dt=$HOME/Desktop<br>
if [ ! -e $dt ]<br>
then<br>
mkdir $dt<br>
fi<br>
<br>
# Name of ZDrive on Desktop<br>
zd=$dt/ZDrive<br>
<br>
# Storage server, and pre-built index of students on the server<br>
server=/mnt/ALLSTUDENTS<br>
index=$server/index.students<br>
<br>
# Make sure username is all lower case<br>
user=`echo $USER | tr A-Z a-z`<br>
<br>
# Zdrive does not exist, go figure it out<br>
if [ ! -e $zd ]<br>
then<br>
<br>
# Search file server for this user's directory<br>
if grep "/$user"'$' $index > /tmp/us$$<br>
then<br>
store=$server/`cat /tmp/us$$`<br>
else<br>
# N.B., must fix for y3k compatibility<br>
store=$server/2*/$user<br>
fi<br>
rm -f /tmp/us$$<br>
<br>
# Teachers, for instance, won't have storage on student fileserver<br>
if [ -e $store ]<br>
then<br>
ln -s $store $zd<br>
else<br>
# No ZDrive available for this user, just quietly leave<br>
exit 0<br>
fi<br>
fi<br>
<br>
# If the user created files in the home directory, move them down<br>
# to the Desktop<br>
for src in "$HOME" "$dt"<br>
do<br>
# Walk entries in this dir<br>
cd $src<br>
for x in *<br>
do<br>
# Only process *files* in this dir<br>
if [ -f "$x" ]<br>
then<br>
# Calculate default destination<br>
dest="$zd/$x"<br>
<br>
# Oops, already there, concatenate an index number<br>
if [ -e "$dest" ]<br>
then<br>
# Start with <foo>_0, and count up until an opening is found<br>
count=0<br>
dest2="$zd/$count""_$x"<br>
while [ -e "$dest2" ]<br>
do<br>
count=`expr $count + 1`<br>
dest2="$zd/$count""_$x"<br>
done<br>
cp "$x" "$dest2" && rm -f "$x"<br>
else<br>
cp "$x" "$dest" && rm -f "$x"<br>
fi<br>
fi<br>
done<br>
done<br>
<br>
<br>
exit 0<br>
<br>
<br>
<br>
On Thu, Aug 28, 2008 at 8:27 AM, Oliver Grawert <<a href="mailto:ogra@ubuntu.com">ogra@ubuntu.com</a>> wrote:<br>
> hi,<br>
> On Do, 2008-08-28 at 08:03 -0700, john wrote:<br>
>> Hi all,<br>
>><br>
>> I was wondering where I can put scripts that I want to run when a user<br>
>> logs on to a thin client. I used to put them in /etc/profile but that<br>
>> doesn't seem to work under Hardy. It seems like LDM is somehow<br>
>> by-passing the stuff I put there. Can someone help me out?<br>
> ldm is executing /etc/X11/Xsession by default ... (like gdm or kdm do)<br>
> one option would be to put stuff into /etc/X11/Xsession.d, another is to<br>
> use the xdg autostart mechanism in /etc/xdg/autostart<br>
><br>
> ciao<br>
> oli<br>
><br>
> --<br>
> edubuntu-users mailing list<br>
> <a href="mailto:edubuntu-users@lists.ubuntu.com">edubuntu-users@lists.ubuntu.com</a><br>
> Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/edubuntu-users" target="_blank">https://lists.ubuntu.com/mailman/listinfo/edubuntu-users</a><br>
><br>
><br>
<font color="#888888"><br>
--<br>
edubuntu-users mailing list<br>
<a href="mailto:edubuntu-users@lists.ubuntu.com">edubuntu-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/edubuntu-users" target="_blank">https://lists.ubuntu.com/mailman/listinfo/edubuntu-users</a><br>
</font></blockquote></div><br></div>