#录制 — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #录制, aggregated by home.social.
-
@board
如何优雅的录制终端?
看到蜗牛哥的教程 https://www.eallion.com/mastodon-backup/ 看到终端录制突然想到,很多时候直接录制终端导致:需要启动主机上的录制软件、文件过大、不够清晰...asciinema 和 agg 可以很好解决这个问题
相关链接:
asciinema 官网:https://asciinema.org/
asciinema 文档: https://docs.asciinema.org/getting-started/
agg 文档:https://docs.asciinema.org/manual/agg/
快速安装rust环境: https://rustup.rs/
agg github文档: https://github.com/asciinema/agg?tab=readme-ov-file安装使用(环境为debian12):
sudo apt install asciinema 安装asciinema
asciinema rec mastodon_backup.cast 录制
ctrl+d停止录制
asciinema play mastodon_backup.cast 播放
ctrl+c停止播放
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh 为编译agg安装rust环境
source $HOME/.cargo/env 启用cargo
sudo apt install build-essential pkg-config libssl-dev安装必要编译器
git clone https://github.com/asciinema/agg 克隆仓库
cd agg
cargo build --release 编译agg
sudo mv target/releaseagg /usr/local/bin/ 移动agg二进制文件到用户bin目录
agg --version 确认、查看版本
sudo apt install fonts-noto-cjk 安装支持中文等宽字体
agg --font-dir /usr/share/fonts/truetype/noto/ mastodon_backup.cast mastodon_backup.gif 指定字体目录,.cast导出为gif#asciinema #agg #rust #cargo #gif #录制 #终端 #terminal #debian #cjk
-
@board
如何优雅的录制终端?
看到蜗牛哥的教程 https://www.eallion.com/mastodon-backup/ 看到终端录制突然想到,很多时候直接录制终端导致:需要启动主机上的录制软件、文件过大、不够清晰...asciinema 和 agg 可以很好解决这个问题
相关链接:
asciinema 官网:https://asciinema.org/
asciinema 文档: https://docs.asciinema.org/getting-started/
agg 文档:https://docs.asciinema.org/manual/agg/
快速安装rust环境: https://rustup.rs/
agg github文档: https://github.com/asciinema/agg?tab=readme-ov-file安装使用(环境为debian12):
sudo apt install asciinema 安装asciinema
asciinema rec mastodon_backup.cast 录制
ctrl+d停止录制
asciinema play mastodon_backup.cast 播放
ctrl+c停止播放
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh 为编译agg安装rust环境
source $HOME/.cargo/env 启用cargo
sudo apt install build-essential pkg-config libssl-dev安装必要编译器
git clone https://github.com/asciinema/agg 克隆仓库
cd agg
cargo build --release 编译agg
sudo mv target/releaseagg /usr/local/bin/ 移动agg二进制文件到用户bin目录
agg --version 确认、查看版本
sudo apt install fonts-noto-cjk 安装支持中文等宽字体
agg --font-dir /usr/share/fonts/truetype/noto/ mastodon_backup.cast mastodon_backup.gif 指定字体目录,.cast导出为gif#asciinema #agg #rust #cargo #gif #录制 #终端 #terminal #debian #cjk