Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |
vps_-_ubuntu [2021/04/02 19:04] – [SSH] hc9 | vps_-_ubuntu [2021/04/02 19:05] (current) – [Cleanup] hc9 |
---|
You may have noticed that on login, your MOTD contains a lot of information, some of which is dynamically generated from sources on the internet. One of these steps sends information about the machine to Ubuntu as part of the request for latest news. We can disable this in ''/etc/default/motd-news''. | You may have noticed that on login, your MOTD contains a lot of information, some of which is dynamically generated from sources on the internet. One of these steps sends information about the machine to Ubuntu as part of the request for latest news. We can disable this in ''/etc/default/motd-news''. |
| |
ENABLED=0 | <file config /etc/default/motd-news> |
| ENABLED=0 |
| </file> |
| |
You can take this further and move or delete the files found in ''/etc/update-motd.d/'' and optionally replace them with your own script. On login, Ubuntu will execute the scripts in this folder and display anything they send to stdout. You can also create ''/etc/motd'' and any text in that file will be displayed after any output from your motd scripts. | You can take this further and move or delete the files found in ''/etc/update-motd.d/'' and optionally replace them with your own script. On login, Ubuntu will execute the scripts in this folder and display anything they send to stdout. You can also create ''/etc/motd'' and any text in that file will be displayed after any output from your motd scripts. |