This document is a WORK IN PROGRESS.
This is just a quick personal cheat sheet: treat its contents with caution!
Shell recording¶
Reference(s)
Table of contents¶
script
+ scriptreplay
+ byzanz
or congif
¶
byzanz
is a small and efficient screencast creator. It records your desktop session or parts of it to an animated GIF, Ogg Theora or Flash.
- config generates GIF animations of console sessions. Like
scriptreplay
, it reads the output of script, including timing information. Unlikescriptreplay
,congif
parses the session dialogue and encodes it as a GIF animation that can be viewed on graphical programs. See https://github.com/lecram/congif.
byzanz
will record
The convert program is a member of the ImageMagick
$ script --log-timing file.tm --log-out script.out
> Script started, file is script.out
$ ttyrec -f record.ttyrec
$ ls
> ...
$ echo "test"
> ...
$ exit
$ exit
> Script done, file is script.out
$ rm record.ttyrec
$ scriptreplay --maxdelay 0.1 --log-timing file.tm --log-out script.out
$ byzanz-record --exec 'scriptreplay --maxdelay 0.1 --log-timing file.tm --log-out script.out' byzanz-record.gif
Note
You can get the current mouse position with xev
.
-
recording the top right corner of a 1920x1080 screen:
-
recording the left side of a 1920x1080 screen:
ttyrec
+ ttygif
¶
ttyrec
is a terminal recorder (andttyplay
is a terminal player).ttygif
converts attyrec
file into GIF files. It's a stripped down version ofttyplay
that screenshots every frame.
Reference(s)
install ttyrec
¶
$ git clone https://github.com/ovh/ovh-ttyrec
$ git checkout v1.1.6.7 # checkout to the latest release (v1.1.6.7 at the time of writing)
$ ./configure && make
$ make install
if you want, or add ttrec
, ttyplay
and
ttytime
to your $PATH
variable. But note that is not needed to use the binaries: you
can just run ./ttyrec
(or ./ttyplay
, ttytime
) from the build folder.
install ttygif
¶
use¶
-
record:
-
replay in shell:
-
create GIF from record:
asciinema
+ asciicast2gif
¶
asciinema
is terminal session recorder.
Reference(s)
install¶
use¶
If this cheat sheet has been useful to you, then please consider leaving a star here.