Sunday, December 21, 2008

Simple Ubuntu DeepFreeze Script

When my computer laboratory changes it operation system from XP to Ubuntu, there is a lot of problem found...
One of them is how we can substitute the Deep Freeze program,, because of our Lab. has a lot of user and very need a stability, so we use Deep Freeze to protect the main setting in our computer...

Then, in Linux..what is the DeepFreeze like program?
Fortunately, someone from other faculty told us about a simple script to make a simple DeepFreeze program in Ubuntu

Here is the code
rm -rf /home/c4hj0
cp -arf /root/c4hj0 /home/
chown -R c4hj0:c4hj0 /home/c4hj0


Write it in the text editor then safe with a name freeze.sh in your root folder
Next you need to add an attribute x to this script with typing in the command line(terminal) chmod ugo+x /root/freeze.sh

The next step is you need to add this script to run in startup, you can edit your file in /etc/rc.local and then add this line before the closing
/root/freeze.sh

And the last you need to copy you /home/c4hj0-->it's my username, to the folder /root/
And you'll done..........

The script will work for you every startup to copy your home folder from /root to the folder /home/
I know that this script is very simple and just can defend the home folder but if you try it you will see the function is very nice.......

Categories: , ,

0 komentar:

Copyright © Johannes Dwi Cahyo | Powered by Blogger

Design by Anders Noren | Blogger Theme by NewBloggerThemes.com | BTheme.net      Up ↑