linux 图片 ascii,【Linux】终端下的ASCII艺术

本篇主要介绍几个终端界面好玩的东西,比如: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

###效果图如下

###按q或ctrl + c退出

490cba53cf5022496ca47d2a71e91d72.png###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

###效果图如下

41f341ee7cbdfb310329af42c8cfc1d4.png

***帝国: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

###效果图如下

0f18b5fe043c14a90ba9851a2243c27e.png

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

###效果图如下

9bc7bf8ee0b5212a8add38038c800192.png

598c3c5d9622031ebdaca39eaebb9e88.png

Ubuntu:bb$ sudo apt-get install -y bb

###难以用截图表现,请自行体会

74c5f8152402139860672a2edd353b1e.png

7f8cee77c72e90a532d7cd0f719f73c1.png

Ubuntu:linux_logo$ sudo apt install -y linuxlogo

###效果图

d27618d901577f14e747a51b708da1fd.png###查看内置的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.

7883d77a9ac66d1acd5ff6b6197f73f9.png

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值