准备工作
nmp 安装 (待会儿会使用npm安装cowsay)
配置nodejs本地yum源
curl -sL -o /etc/yum.repos.d/khara-nodejs.repo https://copr.fedoraproject.org/coprs/khara/nodejs/repo/epel-7/khara-nodejs-epel-7.repo
yum install -y nodejs nodejs-npm
git 安装(使用git工具clone fortune中文字库)
yum install git
cowsay安装配置
cowsay 安装
npm install -g cowsay
cowsay 使用
指定说话内容
root@testplan:~ # cowsay welcome to juzldream.
< welcome to juzldream. >
-----------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
查看可选动物
root@testplan:~ # cowsay -l
beavis.zen bong bud-frogs bunny cheese cower
daemon default doge dragon-and-cow dragon
elephant-in-snake elephant eyes flaming-sheep ghostbusters goat hedgehog hellokitty kiss kitty
koala kosh luke-koala mech-and-cow meow milk
moofasa moose mutilated ren satanic sheep
skeleton small squirrel stegosaurus stimpy
supermilker surgery telebears turkey turtl
e tux vader-koala vader whale www
使用其他动物
root@testplan:~ # cowsay -f sheep welcome to juzldream.
_______________________
< welcome to juzldream. >
-----------------------
\
\
__
UooU\.'@@@@@@`.
\__/(@@@@@@@@@@)
(@@@@@@@@)
`YY~~~~YY'
|| ||
[root@handsome-man ~]# cowsay -r 。。。。。。
______________
< 。。。。。。 >
--------------
\ ___
\ ///\\\/----
\ ||//\///\\\\
\ /`-.__\\\\///|
\ /_ _ `--._|
___-`---.___ |
---------- `-.__|
----------( \.-.o o;_ \\\\\\
------------| `-'-.(_)--/\\\\\
/------//| `-' )\\\\\\
/------///\ `--'\ /"\\\\\\\\\\
--------///\ `-' /\\\\\\\\\\\\\\\ .-. _
//------>---'\\\\\\\\\\\\\\\\\ | | / )
_ // |__| )\\\\\\\\\\\\\\\\ | |/ /
/ `. _ .-' >\
( \ . .' ) /// ( .- ( )() ( )_)\\\\\\\ / __)-' )
`- | |/ ( ) ( )|--'() ( ) \\\\\\\\ \ `(.-')
.---/ _() /// ( ) () | /() ( ) \\\\\\ > ._>-'
()+8 8 | | ( )( ) | /( ) ( ) \ / \/
()+8 8/-()__ / ( )( ) \/ ( ) ( )\ \ /\ /
|8 8| `. | () ( ).--.( ) ( )-\ \ / |
()+||||-() (_/ _/ /| ()/ || \ ) ()()\ \__/ /
.-`|||| /\\ / / ()|/ \ () \ `. /| |
(_ |||| .' _/-/ ()\/||\/() \-. \ /
||( \_ .' ( )/ ( ) `--' ( ) > ) `. /
.--|_|\_ \ .' .'( )_ ( )-.___.-( ) ( ) ""
`.__)-.( /.'\ .' ( )'_)-.______( ).-')'
(___)| \ .-' `--'`-._.---._.(_))-'
(__)|| +-)' | /_.--.\ |
(__)||-' `._|`-' ) ) _|
||||| | `.`-'.'--' /
||||| .' | | .\|
||||| .' _.-|_| \
||||| / .'.-' \\ |
|||||| .' / \ \
||||| / .' \ \
||||| .' / | |
_|||||----./ .' \ \
.-' ||||| `/ / \ |
.' ||||| ( / | |
/ ||||| | |\ \ |
| .'|||||. | || | )
\ | |||||\ | |/ | \
\ | |||||| | | / |
| `.||||' / | | \
| |||| | \ | |
/ ||||| | |\ / |
/ |||||_/ | \ | \
/ ------'| | | | |
| |___.---| \ | / |
| / | | | \
| | \/ | |
| / | | |
\ | | | |
`. / \ | \
`--.___`-_ |_ | |
.-.__.-''-,_ - | \_'
`._-.____.-'.| / '//, ,\.-'`` |--.
`-.____.' |__/ '''\ -'/ |
`. _.// |
`-.__.-'
VK
[root@handsome-man ~]#