I am Ubuntu 12.04 user and I want my machine take automatic screenshots of my work every 2 minutes. So which Software you prefer. Please suggest me.
I am Ubuntu 12.04 user and I want my machine take automatic screenshots of my work every 2 minutes. So which Software you prefer. Please suggest me.
I'd prefer ImageMagick.
Note: check applicable privacy laws, as the screenshots may contain confidential data.
Now, on how to do this:
You need to have the ImageMagick package:
Then, make a Bash script to take the screenshot, save it somewhere (I'm using an example filename of
/path/to/your/script.sh
) and make it executable (chmod +x /path/to/your/script.sh
):Last, set up a cron script to do this for you (
crontab -e
, add this line to the end):This will, every two minutes, try to take screenshots of display 0 (which is the default one; if you have a multiseat setup, you may need to find out which window you need), and save them as timestamped PNGs to /tmp (this is an example location which is likely to exist; you may want to use a different directory).
Caveats: there is no checking of free space, so the script may fill up all the space in target location. The script assumes the user is logged in at display :0 (if another user is logged in, user is logged in at different display, or there is no X session, the script will fail).