GOFRIS – Locking the system’s got even easier
GOFRIS is an open source application that can be used for locking your Home folder. It's like Deep Freeze in Windows environment. GOFRIS is recommended for public computers. When GOFRIS is enabled in your system, any changes made in your Home folder will be deleted after restarting. So, use GOFRIS carefully.
Note:- This application is still in development so this might break your system
Install gofris in ubuntu
Open the terminal and run the following commands
sudo add-apt-repository ppa:tldm217/gofris
sudo apt-get update
sudo apt-get install gofris-en