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 - 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 - 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 - Hello WorldOkay, the preparation phase is complete. You can now make Android Project. Let us start with the classic way in which a program Hello World. Let us immediately make, you need not know anything yet, we make first and I will… Read More
  • Android Programming - Access LocalhostWhen I developed an application that connect to my own web service ( I made my own simple web service too ^-^), I got this error "java.net.ConnectException localhost/127.0.0.1:8080 - Connection Refused". Hei, why my applicati… Read More
  • Android Programming - Fast Way Preserving Sqlite DbActually this is some snippet I found from browsing, the guy who must be credited to this code is Omar Flores, sorry I can't found your link pal :). It helping me to copy already made SQLite database to my application, it mak… Read More

0 komentar:

Copyright © 2025 Johannes Dwi Cahyo | Powered by Blogger

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