Urgent help request! was how do you get something to run when a user logs on?
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 /etc/X11/Xsession.d/85-SetupHome:
# 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 ]
# 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$$
# 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
# 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
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 found
while [ -e "$dest2" ]
count=`expr $count + 1`
cp "$x" "$dest2" && rm -f "$x"
cp "$x" "$dest" && rm -f "$x"
On Thu, Aug 28, 2008 at 8:27 AM, Oliver Grawert <firstname.lastname@example.org> wrote:
> 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
> edubuntu-users mailing list
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/edubuntu-users
edubuntu-users mailing list
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/edubuntu-users