Byzanz is an especially useful small program. With Byzanz, you can record your current Linux desktop to an animated GIF file. Byzanz is implemented as a GNOME applet. It also contains a command line interface.
Install Byzanz

If you are an Ubuntu user, that’s simple. Run this command in your terminal:

$ sudo apt-get install byzanz

Of course, if you are using other Linux distributions, you can install Byzanz from source. After download source package of Byzanz from here, run the following commands:

$ tar zxvf byzanz-0.1.1.tar.gz$ ./configure$ make$ sudo make install

Now right click on GNOME panel, select Add to Panel. Then select Desktop Recorder item to add to the panel.

This should download the YaST MetaPackage file (YMP) for Byzanz and launch the YaST Package manager for installation. Click next on the window showing the selected repositories and next again on the package selection window and finally click Next on the installation proposal window. This should add the required repositories (click import when prompted to import the GPG Keys) and install byzanz package and the required dependencies. Click Finish when the installation is completed succesfully.