Monitoring Child Internet Use on Ubuntu

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):

sudo bash
su – lisa

Next I created a script:

mkdir ~/.scripts
vi ~/.scripts/getScreenshot.sh

With the following content:

#!/bin/bash
DATE=”$(date +”%d-%m-%Y-%H-%M-%S”)”
echo $DATE
export DISPLAY=:0
/usr/bin/scrot -z /var/www/screenshots/$DATE-screenshot.jpg -q 80

Obviously install scrot:

sudo apt-get install scrot

In my daughter Crontab:

crontab -e

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
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:

http://lisasIPaddress/screenshots

It is bad from a privacy perspective but it has already come in useful as I spotted some attempted grooming on Facebook.

 

 

 

Leave a Reply

  • (will not be published)

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>