Deepfreeze on Linux
April 3, 2009 - 13:07Working at a college here in the DF and our laboratories are open source (Ubuntu). We had a problem with the configuration, as the students went out icons, wallpaper and changed sank drivel on the machines, then with a simple use of rsync I solved it.
The first thing you have to do is make all appropriate settings in the home (wallpaper, icons, shortcuts, themes, etc.), then perform a synchronization of the folder / home / user-configured for a folder where users have not Access:
# Rsync-azv / home / student / mnt
In my case the user is a student and was chosen as the mnt folder.
Then edit the file / etc / init.d / bootmysc (in the case of Ubuntu, if you use Fedora's / etc / rc.local).
# Nano / etc / init.d / bootmysc
Add at end of file the following commands:
(Replace the "student" for your server to be restored)
Explaining: everything a student or low he is saving changes or changing in your user folder, then just delete your user folder and pick it up again using rsync, you could use the "cp" too, but I thought rsync faster.
NOTE: If you later want to make any changes on the home will have to synchronize it back to the folder that was saved, for example, changed the wallpaper and then:
# Rsync-azv / home / student / mnt
A hug to everyone and until next time!
Published by Wesley Linux Live Birth
Tags: deep freeze , Linux







6 Responses to "Deepfreeze on Linux"
Oops ... cool, was looking for something for a long time. Just one thing, in 9.04 the / etc / init.d / bootmysc there .. any suggestions?
Abrazoz
By Anderson Dutra on May 5, 2009
Very interesting that your article. Congratulations.
I am a layman in some linux and would like a few explanations are possible:
I'm installing linux 3.0 Educational and putting a root user (administrator) and another student user. To make these steps mentioned I have to be logged in as root? It's because as a student I just can not do much.
What I want is to restore the desktop Linux every boot, as well as Deep Freeze makes on windows Xp.
Thank you for your attention
By Luiz Gustavo on July 29, 2010
Responding to his friend Anderson,
I also could not make the tutorial work the first time since the file does not exist bootmysc, with the correct name is i instead of y: bootmisc, or better:
/ Etc / init.d / bootmisc, to be exact.
Then I used the correct file, ran chubby.
It's amazing what you can do with very few commands in the linux world!
By Andrew Chapman on September 10, 2010
Here I do all the necessary settings, I copy it to / etc / skel / and then just create a script to delete the user folder and the system will copy what is in / etc / skel directory to the user. In the folder / etc/X11 / is a file called Xreset inside and just add rm $ HOME will be removed and the current user's folder when you log off or restart the system ...
By tonyfrasouza on April 12, 2011
a very good tip I got a lSala access the internet and used deep freezer but I choose ubuntu because it is faster at startup, I would like to know if you like every time I turn off the machine the browser history were erased as password and pages accessed because users often forget to open and modify others. grateful for the help.
By carlos eduardo on April 27, 2011
Hello Guys!
Very good post this, but when you put it into practice I came across the problem that a friend told Anderson.
Gave an original way by putting the commands in rc.local rm and rsync, but then I came across another problem, my client wanted the user to enter without entering the password and restart the pc asked to enter the password.
Decided using the file / etc/kde4/kdm/Xreset (in my case it was the KUbuntu), beauty solve everything.
Hugs
By MarcioTaglietta on May 31, 2011