asciinema之-linux系统下屏幕分享的一种思路

借助asciinema 实现linux系统下的屏幕分享
占坑,待补充

demo1
demo1

1
2
3
4
5
# viewing terminal (hostname: node123)
nc -l localhost 9999

# recording terminal
asciinema rec --raw >(nc node123 9999)

参考:linux nc命令 - CSDN博客

demo2
demo2

1
2
3
4
5
6
# recording terminal
mkfifo /tmp/demo.pipe
asciinema rec --raw /tmp/demo.pipe

# viewing terminal
ssh root@install_demo cat ~/demo.pipe