Check first: How to create animated GIF images of a screencast? http://askubuntu.com/questions/107726/how-to-create-animated-gif-images-of-a-screencast to take the script code. also see: http://lslezak.blogspot.gr/2016/01/recording-screencast-in-linux.html For the area script the xrectsel dependency must be satisfied. But i found two implementations sligthy different. https://github.com/lolilolicon/xrectsel and https://github.com/gvalkov/xrectsel The latter compilers after a tweek on the gnumake file. and some other small edits.