在tty1控制台上登录时如何停止显示“保修”通知


9

ubuntu显示的有关保修和帮助建议的消息。

我唯一想看的是更新的版本和状态。

实际上,如果有人可以告诉我如何创建自己的消息来显示,那就太好了。


8
请不要提出任何个人意见。
Rinzwind 2014年

Answers:


14

您要寻找的文字在里面

/etc/legal

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

在开始编辑此文件之前:据我所知,这是每位登录用户一次显示的内容。

~/.cache/motd.legal-displayed

它不会显示。因此,只需创建它,它将消失。最简单的方法是执行以下命令:

touch ~/.cache/motd.legal-displayed

如果要添加自己的消息,则可以将文件添加到

/etc/update-motd/

目前它将举行:

00-header     90-updates-available  98-fsck-at-reboot
10-help-text  91-release-upgrade    98-reboot-required

文件名按字母顺序执行,它们的名称说明了所显示的内容。00标题是“欢迎...”文本。10-help-text显示了Ubuntu文档等的URL。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.