Re: Urgent help request! was Re: how do you get something to run when a user logs on?
Hi, On Sun, 31 Aug 2008, john wrote: 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? I think you need to remove the exit 0; off the end as a start. I'll reply with more detail in a bit. Gavin -- edubuntu-users mailing list edubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/edubuntu-users
Re: how do you kill a user's old processes when they try to log back on
On Fri, 29 Aug 2008, Todd O'Bryan wrote: As a follow-on to this question, is the XRAMPERC variable that was available in Gutsy still available in Hardy? I added a setting to /var/lib/tftpboot/ltsp/i386/lts.conf, but users could still crash their terminals by going to a particularly graphics heavy website in Firefox. I'm not sure about XRAMPERC to be honest, but it's disappointing to hear firefox crashed a client as, if that's firefox v3, it should have the new code in it to reduce the stress it puts on the X server (which caused it to crash). Are you using firefox v3, yeah? Gavin -- edubuntu-users mailing list edubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/edubuntu-users
Re: how do you kill a user's old processes when they try to log back on
Todd O'Bryan kirjoitti: As a follow-on to this question, is the XRAMPERC variable that was available in Gutsy still available in Hardy? I added a setting to /var/lib/tftpboot/ltsp/i386/lts.conf, but users could still crash their terminals by going to a particularly graphics heavy website in Firefox. Friend of mine in here Finland told me, that this helped. $ sudo nano -w /usr/lib/firefox-3.0.1/firefox.sh exec env MOZ_DISABLE_IMAGE_OPTIMIZE=1 $LIBDIR/$APPNAME $@ He said, that now he can go to the this page and FF do not crash. They use HP t5xxx clients. http://doc.m0n0.ch/handbook-single/ Maybe you can try that, too. Best Regards Asmo Koskinen. -- edubuntu-users mailing list edubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/edubuntu-users
Re: how do you kill a user's old processes when they try to log back on
Asmo Koskinen kirjoitti: $ sudo nano -w /usr/lib/firefox-3.0.1/firefox.sh exec env MOZ_DISABLE_IMAGE_OPTIMIZE=1 $LIBDIR/$APPNAME $@ Last line is by default like this one: exec $LIBDIR/$APPNAME $@ Best Regards Asmo Koskinen. -- edubuntu-users mailing list edubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/edubuntu-users
Re: how do you kill a user's old processes when they try to log back on
I must say that the move from 7.04 to 8.04 has been very disappointing. I have 8 HP t5125 which are 400MHz 128MB ram machines. They ran perfectly under 7.04 avoiding heavy websites. Under 8.04 they are useless if the user starts multitasking , i.e. having an open office document open , email and a remote desktop session the machines just freeze. I have tried XRAMPERC to no avail. I actually ended up buying newer more expensive terminals. I have however also found ION 603 (http://www.tss.co.th/downloads/ION-A603%20Overview.pdf) which once you get the geode driver working has much better performance , I could launch almost all applications at once and watch a full screen movie. Only cost R1500 (+/- $200) . There is a serious increase in the thin clients requirements with 8.04. I don't believe it is just Firefox , I think there is some other cause , just don't know what. I feel it is the ram I think 8.04 really needs 256MB ram. I am waiting for a quite period so I can try going back to a redhat / fedora base , as I had much faster performance on that platform. I also miss teacher tool. Dean Gavin McCullagh wrote: On Fri, 29 Aug 2008, Todd O'Bryan wrote: As a follow-on to this question, is the XRAMPERC variable that was available in Gutsy still available in Hardy? I added a setting to /var/lib/tftpboot/ltsp/i386/lts.conf, but users could still crash their terminals by going to a particularly graphics heavy website in Firefox. I'm not sure about XRAMPERC to be honest, but it's disappointing to hear firefox crashed a client as, if that's firefox v3, it should have the new code in it to reduce the stress it puts on the X server (which caused it to crash). Are you using firefox v3, yeah? Gavin -- edubuntu-users mailing list edubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/edubuntu-users
Re: how do you kill a user's old processes when they try to log back on
I can guarantee that its not Ubuntu Hardy's fault... we run really old dell P II 500 mhz with 128MB Ram without any issues at all... server responds instantly to sessions and people can multitask nicely... There were many problems with Firefox 3 beta 5 (which came out as default with hardy) as well as hard drive thrashing with open office and that kind of thing... but if you upgrade to 8.0.1 (or is it 2 now) it should be fine If you miss teacher tool, take a look at italc... much more powerful and now has intra station messaging... works nicely to monitor thin terminals... David Van Assche On Mon, Sep 1, 2008 at 12:34 PM, Dean Mumby [EMAIL PROTECTED] wrote: I must say that the move from 7.04 to 8.04 has been very disappointing. I have 8 HP t5125 which are 400MHz 128MB ram machines. They ran perfectly under 7.04 avoiding heavy websites. Under 8.04 they are useless if the user starts multitasking , i.e. having an open office document open , email and a remote desktop session the machines just freeze. I have tried XRAMPERC to no avail. I actually ended up buying newer more expensive terminals. I have however also found ION 603 (http://www.tss.co.th/downloads/ION-A603%20Overview.pdf) which once you get the geode driver working has much better performance , I could launch almost all applications at once and watch a full screen movie. Only cost R1500 (+/- $200) . There is a serious increase in the thin clients requirements with 8.04. I don't believe it is just Firefox , I think there is some other cause , just don't know what. I feel it is the ram I think 8.04 really needs 256MB ram. I am waiting for a quite period so I can try going back to a redhat / fedora base , as I had much faster performance on that platform. I also miss teacher tool. Dean Gavin McCullagh wrote: On Fri, 29 Aug 2008, Todd O'Bryan wrote: As a follow-on to this question, is the XRAMPERC variable that was available in Gutsy still available in Hardy? I added a setting to /var/lib/tftpboot/ltsp/i386/lts.conf, but users could still crash their terminals by going to a particularly graphics heavy website in Firefox. I'm not sure about XRAMPERC to be honest, but it's disappointing to hear firefox crashed a client as, if that's firefox v3, it should have the new code in it to reduce the stress it puts on the X server (which caused it to crash). Are you using firefox v3, yeah? Gavin -- edubuntu-users mailing list edubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/edubuntu-users -- edubuntu-users mailing list edubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/edubuntu-users
Re: how do you kill a user's old processes when they try to log back on
On Mon, 2008-09-01 at 12:34 +0200, Dean Mumby wrote: I must say that the move from 7.04 to 8.04 has been very disappointing. I have 8 HP t5125 which are 400MHz 128MB ram machines. They ran perfectly under 7.04 avoiding heavy websites. Under 8.04 they are useless if the user starts multitasking , i.e. having an open office document open , email and a remote desktop session the machines just freeze. I have tried XRAMPERC to no avail. We haven't had students pounding on them yet, but version 8.04 on HP t5125 clients is working decently on the workbench, using LDM_DIRECTX=True, Firefox 3, Flash 10 beta, and the Openchrome driver. I miss the smooth youtube videos we had with the proprietary VIA video driver under Feisty (7.04), but don't miss the crashing Firefox sessions we had with libflashsupport. I actually ended up buying newer more expensive terminals. I have however also found ION 603 (http://www.tss.co.th/downloads/ION-A603%20Overview.pdf) which once you get the geode driver working has much better performance , I could launch almost all applications at once and watch a full screen movie. Only cost R1500 (+/- $200) . There is a serious increase in the thin clients requirements with 8.04. I don't believe it is just Firefox , I think there is some other cause , just don't know what. I feel it is the ram I think 8.04 really needs 256MB ram. One of the initial attractions of the thin client model was that we could extend the life of the network by upgrading server hardware, without needed to upgrade the clients. I'm beginning to doubt that model, fearing that these underpowered clients will be unusable sooner than expected. I am waiting for a quite period so I can try going back to a redhat / fedora base , as I had much faster performance on that platform. I also miss teacher tool. Dean Gavin McCullagh wrote: On Fri, 29 Aug 2008, Todd O'Bryan wrote: As a follow-on to this question, is the XRAMPERC variable that was available in Gutsy still available in Hardy? I added a setting to /var/lib/tftpboot/ltsp/i386/lts.conf, but users could still crash their terminals by going to a particularly graphics heavy website in Firefox. I'm not sure about XRAMPERC to be honest, but it's disappointing to hear firefox crashed a client as, if that's firefox v3, it should have the new code in it to reduce the stress it puts on the X server (which caused it to crash). Are you using firefox v3, yeah? Gavin -- edubuntu-users mailing list edubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/edubuntu-users
Re: Edu Day in Gran Canaria Desktop Summit
On Sun, 2008-08-31 at 16:55 +0200, AgustÃn Benito wrote: Hi all, we are beginning to plan activities for Gran Canaria Desktop Meeting: GUADEC+Akademy 2009. We are planning a big Edu Day with two different focus, an institutional one, where politicians and edu coordinators and specialist can meet to push forward software libre in schools, and a more technical meeting where developers can share their experiences. what do you think about this idea? Do you have any comment or suggestion? Who else can join us? We at Sugar Labs[1] would be interested in participating in the EDU day. After a fit-full start under the OLPC project, we are gaining traction on our own merit. thanks dfarning 1. http://sugarlabs.org/go/Main_Page -- edubuntu-users mailing list edubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/edubuntu-users
Re: Urgent help request! was Re: how do you get something to run when a user logs on?
Hi, as promised, a little more detail (I was a little busy earlier, sorry). On Sun, 31 Aug 2008, john wrote: 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 in. 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? Actually, what Ollie is doing is sending you down a path which is more consistent with regular (not thin client) desktops. This is probably for the best in general. As far as I know, /etc/profile only gets run when a shell such as bash gets started. Environment variables are then inherited by processes spawned by that shell. In the old LTSP case, the first thing which happens is the thin client connects via ssh to the server, which spawns a shell (bash) which in turn spawns gnome, etc. As a result, /etc/profile worked for setting things within thin clients. However, it probably didn't work for old LTSP and it wouldn't work on installed desktops which use GDM (the display manager) as those spawn gnome directly without starting a bash shell. The process is that /etc/X11/Xsession gets run and it in turn includes these lines: # use run-parts to source every file in the session directory; we source # instead of executing so that the variables and functions defined above # are available to the scripts, and so that they can pass variables to each # other SESSIONFILES=$(run-parts --list $SYSSESSIONDIR) if [ -n $SESSIONFILES ]; then set +e for SESSIONFILE in $SESSIONFILES; do . $SESSIONFILE done set -e fi which says something like for each file in /etc/X11/Xsession.d/, execute that code within this script. Because your script had an exit in it, that effectively put an early exit inside the script above which is why your script broke your login. francois suggestion about putting the lines in /opt/ltsp/i386/etc/profile and then updating the image didn't work either. I'm pretty sure this is incorrect. The Xsession runs on the server so the XSession scripts that get run are those of the server. As regards debugging, I suggest writing the output of commands and stuff into a file such as /tmp/xsession-$USER.txt. That way you can get an idea how things went and put in debug statements to see the value of certain variables at the time the script ran. Gavin -- edubuntu-users mailing list edubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/edubuntu-users
Re: how do you kill a user's old processes when they try to log back on
Actually, Firefox v3 has been pretty wonky for other reasons. It's really slow and does weird things, even on my desktop machine, so I had considered uninstalling it and going back to v2. On the other hand, it looks like from Asmo's email that the change to avoid stressing thin clients isn't on by default, so I'll try setting that and see if it helps any. That doesn't solve the problem with OpenOffice, though, which does the same kind of pixmap caching, with the same disastrous results, so XRAMPERC is kind of necessary until we get OO worked out, too. Todd On Mon, Sep 1, 2008 at 6:09 AM, Gavin McCullagh [EMAIL PROTECTED]wrote: On Fri, 29 Aug 2008, Todd O'Bryan wrote: As a follow-on to this question, is the XRAMPERC variable that was available in Gutsy still available in Hardy? I added a setting to /var/lib/tftpboot/ltsp/i386/lts.conf, but users could still crash their terminals by going to a particularly graphics heavy website in Firefox. I'm not sure about XRAMPERC to be honest, but it's disappointing to hear firefox crashed a client as, if that's firefox v3, it should have the new code in it to reduce the stress it puts on the X server (which caused it to crash). Are you using firefox v3, yeah? Gavin -- edubuntu-users mailing list edubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/edubuntu-users -- edubuntu-users mailing list edubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/edubuntu-users
Re: Urgent help request! was Re: how do you get something to run when a user logs on?
Thank you for the info, John. It is very helpful for a newbie. It is good when I am not alone with my idea. Thanks and I'll get back with the results. Vu Nguyen Powerthink Mebourne On Tue, Sep 2, 2008 at 3:59 AM, john [EMAIL PROTECTED] wrote: Hi Vu, 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 http://pam-mount.sourceforge.net/ 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. John On Sun, Aug 31, 2008 at 4:25 PM, Vu Nguyen [EMAIL PROTECTED] 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. Ta. On Mon, Sep 1, 2008 at 7:21 AM, john [EMAIL PROTECTED] 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 in. 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 either. Below is the what I placed in my file called /etc/X11/Xsession.d/85-SetupHome: #!/bin/sh # # 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 dt=$HOME/Desktop if [ ! -e $dt ] then mkdir $dt fi # Name of ZDrive on Desktop zd=$dt/ZDrive # Storage server, and pre-built index of students on the server server=/mnt/ALLSTUDENTS index=$server/index.students # 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 ] then # Search file server for this user's directory if grep /$user'$' $index /tmp/us$$ then store=$server/`cat /tmp/us$$` else # N.B., must fix for y3k compatibility store=$server/2*/$user fi rm -f /tmp/us$$ # Teachers, for instance, won't have storage on student fileserver if [ -e $store ] then ln -s $store $zd else # No ZDrive available for this user, just quietly leave exit 0 fi fi # If the user created files in the home directory, move them down # to the Desktop for src in $HOME $dt do # Walk entries in this dir cd $src for x in * do # Only process *files* in this dir if [ -f $x ] then # Calculate default destination dest=$zd/$x # Oops, already there, concatenate an index number if [ -e $dest ] then # Start with foo_0, and count up until an opening is found count=0 dest2=$zd/$count_$x while [ -e $dest2 ] do count=`expr $count + 1` dest2=$zd/$count_$x done cp $x $dest2 rm -f $x else cp $x $dest rm -f $x fi fi done done exit 0 On Thu, Aug 28, 2008 at 8:27 AM, Oliver Grawert [EMAIL PROTECTED] wrote: hi, On Do, 2008-08-28 at 08:03 -0700, john wrote: Hi all, I