iproger
@iproger
Безответственный гений

Как кастомизировать скрин приветствия в Ubuntu Server 18?

Скрин при логине:
Authenticating with public key "imported-openssh-key"
Welcome to Ubuntu 18.04.2 LTS (GNU/Linux 4.15.0-45-generic x86_64)

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

  System information as of Wed Mar 13 03:07:04 UTC 2019

  System load:  0.45                Processes:           161
  Usage of /:   12.0% of 227.73GB   Users logged in:     1
  Memory usage: 26%                 IP address for eno1: 192.168.0.2
  Swap usage:   0%

 * Ubuntu's Kubernetes 1.14 distributions can bypass Docker and use containerd
   directly, see https://bit.ly/ubuntu-containerd or try it now with

     snap install microk8s --channel=1.14/beta --classic

 * Canonical Livepatch is available for installation.
   - Reduce system reboots and improve kernel security. Activate at:
     https://ubuntu.com/livepatch

3 packages can be updated.
0 updates are security updates.

Failed to connect to https://changelogs.ubuntu.com/meta-release-lts. Check your Internet connection or proxy settings


В частности, я бы хотел убрать блоки:
* Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

* Ubuntu's Kubernetes 1.14 distributions can bypass Docker and use containerd
   directly, see https://bit.ly/ubuntu-containerd or try it now with

     snap install microk8s --channel=1.14/beta --classic

 * Canonical Livepatch is available for installation.
   - Reduce system reboots and improve kernel security. Activate at:
     https://ubuntu.com/livepatch


Нашел что можно сделать кастомизацию в /etc/issue, но там 1 строчка. Настройка где-то в другом месте.
Много советов как сделать через gui, но на сервере его нет.

Как изменить текст?
  • Вопрос задан
  • 382 просмотра
Решения вопроса 1
hint000
@hint000
у админа три руки
/etc/update-motd.d/
скрипты генерят отдельные куски этого текста
в частности, /etc/update-motd.d/50-motd-news выкачивает с https://motd.ubuntu.com вот этот кусок
* Ubuntu's Kubernetes 1.14 distributions can bypass Docker and use containerd
directly, see https://bit.ly/ubuntu-containerd or try it now with

snap install microk8s --channel=1.14/beta --classic
, а если интернета нет, то берёт его из кэша /var/cache/motd-news

P.S. motd = Message Of The Day, повелось с тех древних времён, когда типичным сценарием была работа пользователей в шелле, и админ сочинял motd для пользователей :)
Ответ написан
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы