登入 tty1 控制台時如何停止顯示「保固」通知

登入 tty1 控制台時如何停止顯示「保固」通知

ubuntu 顯示有關保證和幫助建議的訊息。

我唯一想看到的是更新的版本和狀態。

實際上,如果有人能告訴我如何創建自己的訊息來顯示那就太好了。

答案1

您要找的文字就在裡面

/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。

相關內容