CentOS 7搭建Cmatrix(黑客代码云)
实验环境
一台CentOS 7最小化系统,关闭防火墙和子系统,需要连接外网,IP地址:192.168.90.15/24
服务端部署
安装gcc-c++程序
yum install gcc-c++ -y #gcc是Gnu的C语言编辑器,至bai于C++编辑器,它的名字叫做g++
![](https://img-blog.csdnimg.cn/img_convert/902c7e9a59e33413b6d0e368e44cda99.png)
安装ncurses库
yum install ncuress #ncurses库是linux系统下的图形支持的函数库,字符终端处理库,包括面板和菜单
![](https://img-blog.csdnimg.cn/img_convert/9fb3fd2d9abe3111bae03aae3dd7fa56.png)
下载cmatrix安装包
wget http://jaist.dl.sourceforge.net/project/cmatrix/cmatrix/1.2a/cmatrix-1.2a.tar.gz
![](https://img-blog.csdnimg.cn/img_convert/19cb24e41b3a1852fe1db769a3d8c933.png)
解压下载
tar -zxvf cmatrix-1.2a.tar.gz
![](https://img-blog.csdnimg.cn/img_convert/150ca887e84e99e73c7414d0490b2bd5.png)
切换到cmatrix目录
cd cmatrix-1.2a/
![](https://img-blog.csdnimg.cn/img_convert/0d6e073bce0c87d494c898fb0111a2cd.png)
安装cmatrix并指定安装目录
./configure --prefix=/cmatrix
![](https://img-blog.csdnimg.cn/img_convert/b8b0f89bd46812a113bce0d1cf755ae6.png)
![](https://img-blog.csdnimg.cn/img_convert/a094026d139e0d23243119e0e43e6847.png)
编译文件并安装
make && make install
![](https://img-blog.csdnimg.cn/img_convert/44964283722de00be74d6cfe8fdc85dd.png)
切换到cmatrix目录
cd /cmatrix/
![](https://img-blog.csdnimg.cn/img_convert/9e10247355cd9c8aafa6b4b98f7ac78c.png)
运行cmatrix程序
./bin/cmatrix
![](https://img-blog.csdnimg.cn/img_convert/c913f562b790a533d0daa3ae5e8263f1.png)
测试
![](https://img-blog.csdnimg.cn/img_convert/d09be2773f8331b5b81467f5f8fbc258.png)
cmatrix参数
cmatrix [-abBflohnsVx] [-C color]
选项
-a :异步滚动(默认)
-b :随机粗体
-B :全部粗体
-o :使用旧风格滚动
-h :获得帮助信息
-n :不使用粗体(默认)
-x :X window 模式(显示的符号不一样)
-V :显示版本信息
-u :刷新频率,0-9,(滚动的快慢)
-C :显示的颜色,支持green(默认),(red,blue,white,yellow,cyan, magenta and black)
加粗并输出黄色字体
./bin/cmatrix -B -C yellow
![](https://img-blog.csdnimg.cn/img_convert/75a8cbabb3dcaf909128023adbf55295.png)
![](https://img-blog.csdnimg.cn/img_convert/a99825abd7d9bc0c386aed3007ba2c68.png)