删除 Ubuntu 18.04 motd

Ser*_*ult 3 motd ubuntu-18.04

任何人都知道要删除哪些包以 git 摆脱 Ubuntu 18.04 上的所有登录信息?

Welcome to Ubuntu 18.04.2 LTS (GNU/Linux 4.15.0-52-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

 * MicroK8s 1.15 is out! It has already been installed on more
   than 14 different distros. Guess which ones?

     https://snapcraft.io/microk8s
Run Code Online (Sandbox Code Playgroud)

我认为它可能是update-motd包,但发布后apt purge update-motd仍然有文件/目录留在/etc/. dpkg -S报告这些文件属于base-files我可能不想清除的包。

# find /etc/ | grep motd
/etc/motd
/etc/systemd/system/timers.target.wants/motd-news.timer
/etc/update-motd.d
/etc/update-motd.d/10-help-text
/etc/update-motd.d/97-overlayroot
/etc/update-motd.d/50-motd-news
/etc/update-motd.d/00-header
/etc/default/motd-news

# dpkg -S /etc/update-motd.d/10-help-text 
base-files: /etc/update-motd.d/10-help-text
Run Code Online (Sandbox Code Playgroud)

过去我只是通过强力删除文件来解决这个问题,但想知道是否有更好的方法来做到这一点。最好是我也可以轻松地ansible编写成剧本的东西。

小智 6

motd 来自这里。要删除它,请打开/etc/default/motd-news并设置ENABLED=0

请参阅Hacker News 中的此主题