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 - 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
  • Android Programming - Luas BangunI created (actually it based on someone tutorial and I modified it in some place, I can find the original link..) this very simple program to learn more about User Interface. How to layout, using Button, TextView and Edit Tex… 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 Article ListThis is my Android article list : Android Programming - Access Localhost Android Programming - Fast Way Preserving Sqlite Database Android Programming - Hello World Android Programming - ListView, ListActivity with Header A… Read More
  • Install Conky di Ubuntu 11.04 Dulu sebenarnya saya sudah pernah sukses menginstall Conky di Ubuntu, dan sekarang saya mau mengulanginya. Untuk anda yang belum tahu Conky merupakan aplikasi yang mirip seperti Rainmeter di Windows platform. Conky bisa memb… Read More

0 komentar:

Copyright © 2025 Johannes Dwi Cahyo | Powered by Blogger

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