NdVO

Using ffmpeg

Recording your screen
ffmpeg -f x11grab -y -r 20 -s 1440x900 -i :0.0 -vcodec huffyuv out.avi
Recording your screen as gif
ffmpeg -f x11grab -y -r 20 -s 1440x900 out.gif