Il 16/01/2013 12:19, [email protected] ha scritto:
If I understand well, it could be /opt/ltsp/<arch>/usr/share/ldm/rc.d/

Just because I just read the manual here https://sourceforge.net/projects/ltsp/files/Docs-Admin-Guide/LTSPManual.pdf/download (Chapter 21, RC scripts).

Hope this can help.



On 01/16/2013 11:48 AM, antonello facchetti wrote:
I'm renewing a class labwith edubuntu 12.04.
It is a wireless network (no time to explain why, but it has to be wireless), therefore with less performances than a cables one(at least I was not able to get the same performances). So, thinking about the management of users, with / home on a centralized nfs server, I get slowness issue (example: 25 students simultaneously opening openoffice writer, and getting stuck on the splash screen of openoffice) .

I thought I'd tackle the problem by minimizing networking and trying to do as much as possibie locally, trying a sort of "roaming" solution.
This is my solution.
I mount the homes from the server on a directory called /server in the local clients.
Each time a user logs in, immediately after thelogin, I execute a:
rsync -avq exclude = '. *' /server/$USER /home/
that copies from the server the user's documents (only documents and not the hidden configuration files). Then the user works locally without affecting the network.
At logoff I launch the opposite command:
rsync -avq exclude = '*.' /home/$USER /server/
to synchronize all work in the server.

Before, the lab had ubuntu 10.04 (gnome) clients, and the solution was to put the two commands in the scripts /etc/gdm/PostLogin/Default and /etc/gdm/PostSession/Default. It worked quite well. Although the drawback was that you had to "closesession", as the script did not start with "stop system."

Now the laboratory has new machines wth Edubuntu 12.10. There is a possibility to choose Unity, Kde, Xfce. So the positioning of the commands in /etc/gdm is no longer possible (there's no /etc/gdm directory anyway). Where should I then put the two rsync commands in order to have them always executed with any desktop environment the user chooses?

TIA
Antonello



thank you,
this is not a ltsp lab, but a "traditional" lab with nfs-server for /homes

But your suggestions made me think that placing the rsync in /etc/rc.local could work for the login (the manual says that "S scripts are executed after the user has logged in, but before the X session is run." and the last command in /etc/rc5.d is @99rc.local. The problem would be only at logout as I can't find any hook-program as rc.local for the case.

Antonello


--
edubuntu-users mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/edubuntu-users

Reply via email to