1.先找下看有没

CentOS安装fortune+cowsay

 

2.安装

yum -y install fortune-mod

 

3.执行fortune 应该可以输出了,接着去弄中文词库,阮一峰的:

git clone git@github.com:ruanyf/fortunes.git

 

4.覆盖原来的:

mv fortunes/data/* /usr/share/games/fortune/ #目录以自己的为准

5.安装cowsay

yum install cowsay

6.两个合用:

CentOS安装fortune+cowsay

 

可选:修改登录提示为上面的东西

vim /etc/profile.d/cowsay.sh  #新增一个文件

CentOS安装fortune+cowsay

重新登录可查看到效果

 

相关文章:

  • 2021-11-13
  • 2021-05-20
  • 2021-11-28
  • 2022-12-23
  • 2021-09-09
  • 2021-05-24
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-14
  • 2021-06-06
  • 2021-09-14
  • 2021-04-20
  • 2021-06-20
  • 2021-12-27
相关资源
相似解决方案