在centos 7下用cmatrix做出×××屏幕代码雨效果

1、下载cmatrix-1.2a.tar.gz文件

[[email protected] ~]# wget https://jaist.dl.sourceforge.net/project/cmatrix/cmatrix/1.2a/cmatrix-1.2a.tar.gz
--2018-07-17 15:06:03--  https://jaist.dl.sourceforge.net/project/cmatrix/cmatrix/1.2a/cmatrix-1.2a.tar.gz
Resolving jaist.dl.sourceforge.net (jaist.dl.sourceforge.net)... 150.65.7.130, 2001:df0:2ed:feed::feed
Connecting to jaist.dl.sourceforge.net (jaist.dl.sourceforge.net)|150.65.7.130|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 74376 (73K) [application/x-gzip]
Saving to: ‘cmatrix-1.2a.tar.gz’

100%[=====================================================>] 74,376      4.68KB/s   in 16s    

2018-07-17 15:06:20 (4.68 KB/s) - ‘cmatrix-1.2a.tar.gz’ saved [74376/74376]

2、解压缩cmatrix-1.2a.tar.gz文件

[[email protected] ~]# tar xvf cmatrix-1.2a.tar.gz
cmatrix-1.2a/
cmatrix-1.2a/NEWS
cmatrix-1.2a/TODO
cmatrix-1.2a/aclocal.m4
cmatrix-1.2a/README
cmatrix-1.2a/configure
cmatrix-1.2a/configure.in
cmatrix-1.2a/cmatrix.1
cmatrix-1.2a/cmatrix.c
cmatrix-1.2a/config.guess
cmatrix-1.2a/install-sh
cmatrix-1.2a/cmatrix.spec
cmatrix-1.2a/cmatrix.spec.in
cmatrix-1.2a/matrix.fnt
cmatrix-1.2a/config.sub
cmatrix-1.2a/missing
cmatrix-1.2a/mkinstalldirs
cmatrix-1.2a/Makefile.am
cmatrix-1.2a/Makefile.in
cmatrix-1.2a/mtx.pcf
cmatrix-1.2a/config.h.in
cmatrix-1.2a/matrix.psf.gz
cmatrix-1.2a/stamp-h.in
cmatrix-1.2a/AUTHORS
cmatrix-1.2a/INSTALL
cmatrix-1.2a/ChangeLog
cmatrix-1.2a/acconfig.h
cmatrix-1.2a/COPYING

[[email protected] ~]# cd cmatrix-1.2a

[[email protected] cmatrix-1.2a]# yum install ncurses-deve



```[[email protected] cmatrix-1.2a]# ./configure && make && make install
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH

当执行“./configure && make && make install ”命令出现如上信息时,表示没有安装gcc,gcc安装过程如下
[[email protected] cmatrix-1.2a]# yum -y install gcc
[[email protected] cmatrix-1.2a]# yum -y install gcc-c++
[[email protected] cmatrix-1.2a]# yum install make

安装完后再运行“./configure && make && make install ”命令,如下:
[[email protected] cmatrix-1.2a]# ./configure && make && make install
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for a BSD compatible install... /usr/bin/install -c
checking whether make sets ${MAKE}... (cached) yes
checking for main in -lncurses... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for fcntl.h... yes
checking for sys/ioctl.h... yes
checking for unistd.h... yes
checking for termios.h... yes
checking for termio.h... yes
checking return type of signal handlers... void
checking for putenv... yes
checking for curses.h... yes
checking for ncurses.h... yes
checking for tgetent in -lncurses... yes
Using ncurses as the termcap library
checking for use_default_colors in -lncurses... yes
checking for resizeterm in -lncurses... yes
checking for wresize in -lncurses... yes
checking for consolechars... no
checking for setfont... /usr/bin/setfont
checking for /usr/lib/kbd/consolefonts... yes
checking for /usr/share/consolefonts... no
checking for mkfontdir... no
checking for /usr/lib/X11/fonts/misc... no
checking for /usr/X11R6/lib/X11/fonts/misc... no
configure: warning:  

*** You do not appear to have an X window fonts directory in the standard
*** locations (/usr/lib/X11/fonts/misc or /usr/X11R6/lib/X11/fonts/misc). The
*** mtx.pcf font will not be installed.  This means you will probably not
*** be able to use the mtx fonts in your x terminals, and hence be unable
*** to use the -x command line switch.  Sorry about that...

updating cache ./config.cache
creating ./config.status
creating Makefile
creating cmatrix.spec
creating config.h
gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -Wall -Wno-comment -c cmatrix.c
gcc  -g -O2 -Wall -Wno-comment  -o cmatrix  cmatrix.o  -lncurses  -lncurses
make[1]: Entering directory `/root/cmatrix-1.2a‘
/bin/sh ./mkinstalldirs /usr/local/bin
  /usr/bin/install -c  cmatrix /usr/local/bin/cmatrix
make  install-man1
make[2]: Entering directory `/root/cmatrix-1.2a‘
/bin/sh ./mkinstalldirs /usr/local/man/man1
mkdir /usr/local/man
mkdir /usr/local/man/man1
/usr/bin/install -c -m 644 ./cmatrix.1 /usr/local/man/man1/cmatrix.1
make[2]: Leaving directory `/root/cmatrix-1.2a‘
Installing matrix fonts in /usr/lib/kbd/consolefonts...
make[1]: Leaving directory `/root/cmatrix-1.2a‘

到此,cmatrix安装完成,任意路径,输入cmatrix运行,按q退出。效果如下
[[email protected] cmatrix-1.2a]# cmatrix
![](http://i2.51cto.com/images/blog/201807/17/abaa3c9ee4b6cf559c3db8173c2cd2bc.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)

cmatrix常用命令如下:
-a :异步滚动(默认)
-b :随机粗体
-B :全部粗体
-o :使用旧风格滚动
-x :X window 模式
-V :显示版本信息
-u :刷新频率,0-9,也就是滚动的快慢(值越小越快)
-C :显示的颜色,支持green(默认),red,blue,white,yellow,cyan,magenta and black

[[email protected] ~]# cmatrix -b -u 3 -C yellow
![](http://i2.51cto.com/images/blog/201807/17/4a2e39f2aa2889910d633b6bfb92d18f.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)

原文地址:http://blog.51cto.com/5232821/2146115

时间: 2024-11-05 11:35:41

在centos 7下用cmatrix做出×××屏幕代码雨效果的相关文章

centos 7 下多网卡绑定

一.前言 CentOS7之前系统提供给用户的是bonding driver来实现链路聚合,实际上bonding适用于大多数应用.Bonding driver的架构是由内核空间完全控制.管理. Team driver又是什么呢?它是被设计用一整套不同的设计和不同的方法来实现bonding能做到的事,它的这种更灵活.更高效. 具体数据:http://rhelblog.redhat.com/2014/06/23/team-driver/ 针对现有的bonding配置,如果想从bonding drive

Centos 7下如何安装bzip2

Centos 7下如何安装bzip2 时间:2016-02-26 01:01来源:linux.it.net.cn 作者:IT centos7 下好多软件都不带,当然也没有bzip2,于是我们只能下载 安装了,两种方法 1.yum安装,不多说 yum search bzip2  //查询安装包 yum -y install bzip2-x86_64 2.源码安装 下载bzip2   下载地址:http://www.bzip.org/downloads.html 1>格式是*.tar.gz  解压文

云服务器 ECS CentOS 7 下重启 sshd 服务操作方法

在云服务器 ECS Linux CentOS 7 下重启服务不再通过 service  操作,而是通过 systemctl 操作. 操作说明如下: 1. 查看 sshd 服务是否启动: 看到上述信息就可以确定是启动了. 2. 如果没有启动,则需要启动该服务: systemctl start sshd.service 3. 重启 sshd 服务: systemctl restart sshd.service 4. 设置服务开启自启: systemctl enable sshd.service

推荐CentOS Linux下的3款分区工具

简介 伴随着科技的飞速发展,越来越多的企业对于服务器的稳定要求越来越高,越来越多的企业开始采用linux系统来部署自己的服务,以求高效的稳定性,当然任何操作系统都需要一个最基本的基础,那就是硬盘,及硬盘分区,今天来给大家推荐几款CentOS Linux下的分区工具及如何查看分区环境,也会给大家来带一些硬盘的基本知识 一.硬盘的接口类型 分区肯定是对硬盘进行分区,那么先来聊一聊硬盘的接口类型,硬盘就现在来分,分为两类,并行接口和串行接口,现在服务器及PC机上普遍的都是串行接口啦. 并行接口,分为I

CentOS 7 下挂载NTFS文件系统并实行开机自动挂载

CentOS 7 下想要挂载NTFS的文件系统该怎么办呢? 我们需要一个NTFS-3G工具,并编译它之后在mount就可以了,就这么简单. 首先要进入官网下载NTFS-3G工具 http://www.tuxera.com/community/ntfs-3g-download/ 1.下载之后进行解压 wget http://tuxera.com/opensource/ntfs-3g_ntfsprogs-2014.2.15.tgz tar  -xvf  ntfs-3g_ntfsprogs-2014.

怎样在CentOS linux下安装MPEG-1 Layer 3 (MP3)解码器

怎样在CENTOS linux下安装MPEG-1 Layer 3 (MP3)解码器 提片上的信息显示我们没有安装解码器,这是因为版权问题软件 没有自带解码器 我的是centos 32位系统所以用下面第一个源 32位系统 第三方源 rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm 64位系统 第三方源 rpm -ivh http://pkgs.repoforge.

Centos 6下软raid操作脚本

#!/bin/sh main () { clear echo '          ------------------------------------------------------          ' echo '          1.Create a software raid array          ' echo '          2.View raid array sync status           ' echo '          3.View rai

centOS 6下安装java、tomcat

centOS 6 下安装java centOS  默认有java的运行环境(gcj),安装sun的jdk前先卸载 gcj. 卸载gcj: #java -version            <-查看当前gcj java的版本号(我这里得到的是 1.4.2) #yum -y remove java-1.4.2-gcj-compat   <- 卸载gcj (y参数表示 在y/n 提问时均回答 y) #chmod a+x jdk-6u14-linux-i586-rmp.bin    <- a+

CentOS 7 下安装jdk1.8(转)

原文:https://blog.argcv.com/articles/3155.c CentOS 7下目前默认是jdk1.6和1.7.若需要更高版本的1.8,我们就需要一点额外的手段了. 首先,我们需要从这个页面下个最新版本的jdk. Oracle提供rpm包和tar.gz包.为了省事,直接下载个rpm包完事. 若远程直接用wget下载,有时候有一点问题,需要加点参数来帮忙.参考此处. 下载完成后,可以用rpm命令安装,不过懒人更喜欢用yum搞定. 01 02 03 04 05 06 07 08