Urgent help request! was Re: how do you get something to run when a user logs on?
lists.john at gmail.com
Mon Sep 1 18:59:32 BST 2008
We use win2k3 for authentication as well via winbind. We used to host
student files on a windows server and I believe we used the pam_mount
module to mount the shares on a per user basis
Last year we moved the student files over to Linux and we are happy
with the results. Since we're in a mixed environment we can share
files with WindowsXP users via samba, with our LTSP clients via NFS
and even allow remote access via sftp.
I DO wish that /etc/profile would still work as it used to. I am sure
there are good reasons for moving to an image based approach (if
that's the right way to describe it) but I don't like the fact that it
breaks the way *nix has worked for 20 years or so.
On Sun, Aug 31, 2008 at 4:25 PM, Vu Nguyen <linuxnuke at gmail.com> wrote:
> Hi John and everyone,
> Thanks for this post, I am also looking for the solution too.
> 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?".
> Thanks for your help.
> On Mon, Sep 1, 2008 at 7:21 AM, john <lists.john at gmail.com> wrote:
>> Hi all,
>> I am two days away from the start of school and the problem I
>> described before still applies to me. If I can't figure this out I'll
>> have to put off my upgrade to 8.04 (or 8.10 perhaps) until December.
>> I'd really appreciate any help.
>> This issue is I want to run some scripts that up until now have been
>> called by /etc/profile. This has worked for me up through Edubuntu
>> 7.04 The scripts use the system variables $HOME and $USER to map NFS
>> shares to users desktops. I understand from oli and others that the
>> image generated by 8.04 doesn't reference /etc/profile when users log
>> When I tried calling these scripts from
>> /etc/X11/Xsession.d per Ollies suggestion the scripts didn't seem to
>> run, and in fact after accepting my credentials X just sent me back to
>> the login screen, perhaps my syntax was incorrect. But I couldn't
>> find any debug information in the logs to trouble shoot the issue.
>> Where do I find more debug info?
>> francois suggestion about putting the lines in
>> /opt/ltsp/i386/etc/profile and then updating the image didn't work
>> Below is the what I placed in my file called
>> # SetupHome.sh
>> # Clean up from previous session
>> # Sweep all files from $HOME and $HOME/Desktop to $HOME/Desktop/ZDrive
>> # (ignores directories).
>> # Makes Desktop and ZDrive dir entries if needed.
>> # Name of desktop itself
>> if [ ! -e $dt ]
>> mkdir $dt
>> # Name of ZDrive on Desktop
>> # Storage server, and pre-built index of students on the server
>> # Make sure username is all lower case
>> user=`echo $USER | tr A-Z a-z`
>> # Zdrive does not exist, go figure it out
>> if [ ! -e $zd ]
>> # Search file server for this user's directory
>> if grep "/$user"'$' $index > /tmp/us$$
>> store=$server/`cat /tmp/us$$`
>> # N.B., must fix for y3k compatibility
>> rm -f /tmp/us$$
>> # Teachers, for instance, won't have storage on student fileserver
>> if [ -e $store ]
>> ln -s $store $zd
>> # No ZDrive available for this user, just quietly leave
>> exit 0
>> # If the user created files in the home directory, move them down
>> # to the Desktop
>> for src in "$HOME" "$dt"
>> # Walk entries in this dir
>> cd $src
>> for x in *
>> # Only process *files* in this dir
>> if [ -f "$x" ]
>> # Calculate default destination
>> # Oops, already there, concatenate an index number
>> if [ -e "$dest" ]
>> # Start with <foo>_0, and count up until an opening is
>> while [ -e "$dest2" ]
>> count=`expr $count + 1`
>> cp "$x" "$dest2" && rm -f "$x"
>> cp "$x" "$dest" && rm -f "$x"
>> exit 0
>> On Thu, Aug 28, 2008 at 8:27 AM, Oliver Grawert <ogra at ubuntu.com> wrote:
>> > hi,
>> > On Do, 2008-08-28 at 08:03 -0700, john wrote:
>> >> Hi all,
>> >> I was wondering where I can put scripts that I want to run when a user
>> >> logs on to a thin client. I used to put them in /etc/profile but that
>> >> doesn't seem to work under Hardy. It seems like LDM is somehow
>> >> by-passing the stuff I put there. Can someone help me out?
>> > ldm is executing /etc/X11/Xsession by default ... (like gdm or kdm do)
>> > one option would be to put stuff into /etc/X11/Xsession.d, another is to
>> > use the xdg autostart mechanism in /etc/xdg/autostart
>> > ciao
>> > oli
>> > --
>> > edubuntu-users mailing list
>> > edubuntu-users at lists.ubuntu.com
>> > Modify settings or unsubscribe at:
>> > https://lists.ubuntu.com/mailman/listinfo/edubuntu-users
>> edubuntu-users mailing list
>> edubuntu-users at lists.ubuntu.com
>> Modify settings or unsubscribe at:
More information about the edubuntu-users