One possible solution is byzanz if you don’t mind using the CLI. Byznaz run on Ubuntu and I didn’t test it on different Linux distributions. I tested it only on Ubuntu 12.04 LTS.
It's a rather rudimentary screen recorder with limited options.
Byzanz records GIF's and runs in a terminal only. It is not included in Ubuntu repositories and it can be only installed through a PPA.
To install use this commands
$ sudo add-apt-repository ppa:fossfreedom/byzanz
$ sudo apt-get update
$ sudo apt-get install byzanz
Man pages:
Usage:
byzanz-record [OPTION...] record your current desktop session
Help Options:
-?, --help Show help options
--help-all Show all help options
--help-gtk Show GTK+ Options
GTK+ Options
--class=CLASS Program class as used by the window manager
--name=NAME Program name as used by the window manager
--gtk-module=MODULES Load additional GTK+ modules
--g-fatal-warnings Make all warnings fatal
Application Options:
-d, --duration=SECS Duration of animation (default: 10 seconds)
--delay=SECS Delay before start (default: 1 second)
-c, --cursor Record mouse cursor
-a, --audio Record audio
-x, --x=PIXEL X coordinate of rectangle to record
-y, --y=PIXEL Y coordinate of rectangle to record
-w, --width=PIXEL Width of recording rectangle
-h, --height=PIXEL Height of recording rectangle
-v, --verbose Be verbose
--display=DISPLAY X display to use