本篇主要介绍几个终端界面好玩的东西,比如:sl、asciiquarium、cmatrix等;基本都可以在Ubuntu上通过 apt-get 装上去,但在CentOS上没有,或者安装麻烦一点;在此介绍两个平台上的安装方法

水族馆:asciiquarium

centos安装依赖

[free@hurd]$ sudo yum -y install perl-Curses perl-ExtUtils-MakeMaker
[free@hurd]$ wget http://search.cpan.org/CPAN/authors/id/K/KB/KBAUCOM/Term-Animation-2.4.tar.gz
[free@hurd]$ tar -zxvf Term-Animation-2.4.tar.gz
[free@hurd]$ cd Term-Animation-2.4/
[free@hurd]$ perl Makefile.PL && make
Writing Makefile for Term::Animation
Skip blib/lib/Term/Animation.pm (unchanged)
Skip blib/lib/Term/Animation/Entity.pm (unchanged)
Manifying blib/man3/Term::Animation.3pm
Manifying blib/man3/Term::Animation::Entity.3pm
[free@hurd]$ sudo make install
Appending installation info to /usr/lib64/perl5/perllocal.pod
[free@hurd]$ cd ..
[free@hurd]$ wget http://www.robobunny.com/projects/asciiquarium/asciiquarium.tar.gz --no-check-certificate
[free@hurd] tar -zxvf asciiquarium.tar.gz
[free@hurd] cd asciiquarium_1.1
[free@hurd] sudo cp asciiquarium /usr/local/bin
[free@hurd] sudo chmod +x /usr/local/bin/asciiquarium
[free@hurd] /usr/local/bin/asciiquarium

###ubuntu上运行以下命令

$ sudo apt-get installlibcurses-perl
$ wget http://search.cpan.org/CPAN/authors/id/K/KB/KBAUCOM/Term-Animation-2.4.tar.gz
$ tar -zxvf Term-Animation-2.4.tar.gz
$ cd Term-Animation-2.4/
$ perl Makefile.PL && make && make test
$ sudo makeinstall
$ cd ..
$ wget http://www.robobunny.com/projects/asciiquarium/asciiquarium.tar.gz
$ tar -zxvf asciiquarium.tar.gz
$ cd asciiquarium_1.1/
$ sudo cpasciiquarium /usr/local/bin
$ sudo chmod +x /usr/local/bin/asciiquarium
$ /usr/local/bin/asciiquarium

蒸汽小火车:sl

#centos
[free@hurd]$ sudo yum install -y sl
#ubuntu
$ sudo apt-get install -y sl

黑客帝国:cmatrix

#centos
[free@hurd]$ wget https://jaist.dl.sourceforge.net/project/cmatrix/cmatrix/1.2a/cmatrix-1.2a.tar.gz
[free@hurd]$ tar zxvf cmatrix-1.2a.tar.gz
[free@hurd]$ sudo yum install -y ncurses-devel
[free@hurd]$  ./configure && make 
[free@hurd]$ sudo make install
make[1]: Entering directory `/home/free/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 `/home/free/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 `/home/free/cmatrix-1.2a'
 Installing matrix fonts in /usr/lib/kbd/consolefonts...
make[1]: Leaving directory `/home/free/cmatrix-1.2a'
[free@hurd]$ /usr/local/bin/cmatrix
#可以将/usr/local/bin/cmatrix加到PATH中
#按q或者ctrl + c退出
ubuntu安装
$ sudo apt-get install -y cmatrix

Linux logo:screenfetch

#centos
[free@hurd]$ git clone https://github.com/KittyKatt/screenFetch.git
[free@hurd]$ sudo cp screenFetch/screenfetch-dev /usr/local/bin
[free@hurd]$ /usr/local/bin/screenfetch-dev
#ubuntu
$ git clone https://github.com/KittyKatt/screenFetch.git
$ sudo cp screenFetch/screenfetch-dev /usr/local/bin
$ /usr/local/bin/screenfetch-dev
$ sudo apt-get install -y bb
#难以用截图表现,请自行体会
$ sudo apt install -y linuxlogo
#查看内置的logo列表
$ linux_logo -f -L list
Available Built-in Logos:
    Num Type    Ascii   Name            Description
    1   Classic Yes     aix             AIX Logo
    2   Classic Yes     bsd             FreeBSD Logo
    3   Banner  Yes     bsd_banner      FreeBSD Logo
    4   Classic Yes     irix            Irix Logo
    5   Banner  Yes     solaris         The Default Banner Logos
    6   Banner  Yes     banner-simp     Simplified Banner Logo
    7   Banner  Yes     banner          The Default Banner Logo
    8   Classic Yes     classic-nodots  The Classic Logo, No Periods
    9   Classic Yes     classic-simp    Classic No Dots Or Letters
    10  Classic Yes     classic         The Default Classic Logo
    11  Classic Yes     core            Core Linux Logo
    12  Banner  Yes     debian_banner_2 Debian Banner 2
    13  Banner  Yes     debian_banner   Debian Banner (white) 
    14  Classic Yes     debian_old      Debian Old Penguin Logos 
    15  Classic Yes     debian          Debian Swirl Logos
    16  Classic Yes     gnu_linux       Classic GNU/Linux
    17  Banner  Yes     mandrake_banner Mandrake(TM) Linux Banner
    18  Banner  Yes     mandrake        Mandrakelinux(TM) Banner
    19  Banner  Yes     mandriva        Mandriva(TM) Linux Banner
    20  Banner  Yes     pld             PLD Linux banner
    21  Banner  Yes     redhat          RedHat Banner (white) 
    22  Banner  Yes     slackware       Slackware Logo
    23  Banner  Yes     sme             SME Server Banner Logo
    24  Banner  Yes     sourcemage_ban  Source Mage GNU/Linux banner
    25  Banner  Yes     sourcemage      Source Mage GNU/Linux large
    26  Banner  Yes     suse            SUSE Logo
    27  Banner  Yes     ubuntu          Ubuntu Logo

Do "linux_logo -L num" where num is from above to get the appropriate logo.
Remember to also use -a to get ascii version.