在 Debian 上安装 cmatrix(终端里的“黑客帝国”字符雨效果)非常简单,有以下几种方式:
sudo apt update
sudo apt install cmatrix
安装完成后,直接运行:
cmatrix
常用参数示例:
cmatrix -b # 加粗字符
cmatrix -C red # 红色字符
cmatrix -s # 屏保模式
如果仓库里没有(极少情况),可以手动编译:
sudo apt install build-essential libncurses5-dev
git clone https://github.com/abishekvashok/cmatrix.git
cd cmatrix
./configure
make
sudo make install
运行:
cmatrix
在 cmatrix 界面中按:
Ctrl + C
或
q
如果你想要开机自动跑、全屏、或配合 tmux/桌面上显示,我也可以帮你写配置。