CentOS好玩的代码

老子叫甜甜 提交于 2020-02-23 01:56:22

1.代码雨

1.下载cmatrix文件

[root@localhost ~]# 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文件

[root@ltj opt]# tar xvf cmatrix-1.2a.tar.gz 
cmatrix-1.2a/
cmatrix-1.2a/NEWS
cmatrix-1.2a/TODO
......

3.进入文件并下载对应编译器

[root@ltj opt]# cd cmatrix-1.2a
[root@ltj cmatrix-1.2a]# yum install ncurses-deve
[root@ltj cmatrix-1.2a]# yum -y install gcc
[root@ltj cmatrix-1.2a]# yum -y install gcc-c++
[root@ltj cmatrix-1.2a]# yum install make
[root@ltj cmatrix-1.2a]# ./configure && make && make install

4.完成 使用“cmatrix”开始

[root@ltj cmatrix-1.2a]# cmatrix

效果图 使用“q”或者“ctrl c”结束
在这里插入图片描述

2.放大效果

1.下载文件

[root@ltj opt]# yum install figlet.x86_64

2.figlet接文本使用

[root@ltj opt]# figlet I LOVE YOU LTJ
 ___   _     _____     _______  __   _____  _   _   _   _____   _ 
|_ _| | |   / _ \ \   / / ____| \ \ / / _ \| | | | | | |_   _| | |
 | |  | |  | | | \ \ / /|  _|    \ V / | | | | | | | |   | |_  | |
 | |  | |__| |_| |\ V / | |___    | || |_| | |_| | | |___| | |_| |
|___| |_____\___/  \_/  |_____|   |_| \___/ \___/  |_____|_|\___/ 

3.满嘴(屏幕)跑火车

1.下载文件

[root@ltj opt]# yum install sl.x86_64

2.使用

[root@ltj opt]# sl -F
[root@ltj opt]# sl -a
[root@ltj opt]# sl -l
[root@ltj opt]# sl

效果图 ctrl c 结束
在这里插入图片描述

4.自义定开机界面

1.进入文件

[root@ltj ~]# vi /etc/motd

2.自定义编辑文案
效果图
在这里插入图片描述

5.会说话的小动物

1.安装文件

[root@ltj ~]# yum install cowsay.noarch

2.使用cowsay " "使用

[root@ltj ~]# cowsay "李大壮"
 _____
< 李大壮 >
 -----
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

6.“水族馆”

1.下载,解压,安装等文件
wget用不了就需要下载wget

[root@ltj opt]# yum install wget
[root@ltj opt]# wget http://search.cpan.org/CPAN/authors/id/K/KB/KBAUCOM/Term-Animation-2.4.tar.gz
[root@ltj opt]# tar xvf Term-Animation-2.4.tar.gz
[root@ltj opt]# cd Term-Animation-2.4
[root@ltj Term-Animation-2.4]# yum install perl-Curses.x86_64
[root@ltj Term-Animation-2.4]# yum -y install make

2.再下载,解压,安装等asciiquarium文件

[root@ltj opt]# wget http://search.cpan.org/CPAN/authors/id/K/KB/KBAUCOM/Term-Animation-2.4.tar.gz
[root@ltj opt]# 如果在线下载不了就复制链接去浏览器下
[root@ltj opt]# tar -zxvf asciiquarium.tar.gz
[root@ltj opt]# cd asciiquarium_1.1/
[root@ltj asciiquarium_1.1]# cp asciiquarium /usr/local/bin
[root@ltj asciiquarium_1.1]# chmod -x asciiquarium
[root@ltj asciiquarium_1.1]# asciiquarium

效果图
在这里插入图片描述

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!