So I wanted to keep an eye on what my daughter was up to on facebook etc. In addition to using OpenDNS and the Nanny parental control software in the Ubuntu Software Center I would like to use DansGuardian but that might take a little more time.
One of the things I have done quite quickly is to take screenshots of her screen every 10 minutes. To do so I did the following.
On her computer I first got to root then switched to being my daughter (lisa in this example):
su – lisa
Next I created a script:
With the following content:
/usr/bin/scrot -z /var/www/screenshots/$DATE-screenshot.jpg -q 80
Obviously install scrot:
sudo apt-get install scrot
In my daughter Crontab:
I specified running the script every 10 minutes or whatever:
*/10 * * * * /home/lisa/.scripts/getScreenshots.sh > /home/lisa/.scripts/getScreenshots.log
Since I am placing the screenshots in /var/www/screenshots/ that folder needs to be owned by lisa i.e.
chown lisa /var/www/screenshots
I then installed LAMP (Apache, PHP etc) using tasksel
sudo apt-get install tasksel
Also install php-gd with:
sudo apt-get install php5-gd
I then placed Single File PHP Gallery into the screenshots folder to give me a gallery-type interface and load with:
It is bad from a privacy perspective but it has already come in useful as I spotted some attempted grooming on Facebook.