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: , ,

Related Posts:

  • Android Programming - isServerAccessibleThis is my snippet to check wheter web service server accessible or not. Don't forget to edit your Manifest code.. First Code check internet connection available or not, the second check the server accessible or not. . :) pu… Read More
  • Android Programming - Override Options MenuTo override options menu simply add this code to your activity. @Override     public boolean onCreateOptionsMenu(Menu menu) {         MenuInflater inflater = getMenuInflater(); &n… Read More
  • Android Programming - Override Back ButtonOverriding back button is much more simple than options menu before. @Override     public void onBackPressed() {         AlertDialog.Builder builder = new AlertDialog.Builder(this… Read More
  • Android Programming - Spinner from DatabaseSpinner is Android UI that looks like dropdown menu in another UI. Like in the other programming language we can directly add Spinner content directly, by hard coding,not dynamic. To add spinner content dynamically you need C… Read More
  • Android Programming - Send SMSAndroid is for mobile, so it must preserve support to mobile function like calling and SMS. In Android SMS can be done by starting SMS activity class via Intent or create yourself a SMS Sending class. I'll create my own metho… Read More

0 komentar:

Copyright © 2025 Johannes Dwi Cahyo | Powered by Blogger

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