wiki:record_terminal_sessions
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
wiki:record_terminal_sessions [2022/01/07 11:35] – created antisa | wiki:record_terminal_sessions [2023/06/05 12:35] (current) – [See also] add Play multigigabyte asciinema recordings antisa | ||
---|---|---|---|
Line 15: | Line 15: | ||
apt install asciinema | apt install asciinema | ||
+ | |||
+ | Then put this at the end of //.bashrc// to automatically record session when terminal is opened: | ||
test "$(ps -ocommand= -p $PPID | awk ' | test "$(ps -ocommand= -p $PPID | awk ' | ||
+ | To open the recording in the browser download [[https:// | ||
+ | |||
+ | <code html> | ||
+ | < | ||
+ | < | ||
+ | |||
+ | <link rel=" | ||
+ | |||
+ | </ | ||
+ | < | ||
+ | |||
+ | <div id=" | ||
+ | |||
+ | <script src=" | ||
+ | < | ||
+ | AsciinemaPlayer.create('/ | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | Then run | ||
+ | python3 -m http.server | ||
+ | in the directory where you downloaded the above files and in your browser visit http:// | ||
+ | |||
+ | You can control the look of the player by passing some options to the // | ||
===== python program TermRecord ===== | ===== python program TermRecord ===== | ||
Line 28: | Line 56: | ||
====== See also ====== | ====== See also ====== | ||
+ | * [[Play multigigabyte asciinema recordings]] | ||
====== References ====== | ====== References ====== | ||
* https:// | * https:// |
wiki/record_terminal_sessions.1641555343.txt.gz · Last modified: 2022/01/07 11:35 by antisa