DeepFreeze for Linux
So anoyying that your computer setting immediately changed, especially in public area such as a computer cafe etc. In windows we are all familiar with deepfreeze to anticipate this case. But in Linux? Let's make it by ourself. It's just a simple bash script to make your computer setting's get frozen.
We must copy entire of /home/userfolder to /var/userfolde.backup. In this case my username is internet. So I've copied /home/internet to /var/internet.backup.
Then, save this script below in file /root/freeze.sh.
The next step is put this to /etc/rc.local
Finish!!
We must copy entire of /home/userfolder to /var/userfolde.backup. In this case my username is internet. So I've copied /home/internet to /var/internet.backup.
Then, save this script below in file /root/freeze.sh.
!#/bin/bash
cp -R /var/internet.backup /home/internet
chown -R internet.internet /home/internet
cp -R /var/internet.backup /home/internet
chown -R internet.internet /home/internet
The next step is put this to /etc/rc.local
//root/freeze.sh
Finish!!