When I ssh to my Ubuntu Server, I'm usually greeted with
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 disabled due to load higher than 1.0
* Canonical Livepatch is available for installation.
- Reduce system reboots and improve kernel security. Activate at:
https://ubuntu.com/livepatch
0 packages can be updated.
0 updates are security updates.
here,
System information disabled due to load higher than 1.0
Conditionally according to load, runs landscape-sysinfo
System information as of Tue Feb 19 04:22:46 UTC 2019
System load: 0.0
Usage of /: 60.2% of 19.78GB
Memory usage: 21%
Swap usage: 0%
Processes: 93
Users logged in: 1
IP address for enp0s3: 192.168.56.200
IP address for enp0s8: 10.0.3.15
IP address for docker_gwbridge: 172.18.0.1
IP address for docker0: 172.17.0.1
which I want to be shown unconditionally
How to modify it how to ?
Also, what is meant by load higher than 1.0 ?
How to add/remove other commands to be run at cli login?
The Message of the day (MOTD) in Ubuntu is controlled by the directory
/etc/update-motd.d/
(and the file/etc/update-motd
, if any). Particularly, the Landscape info resides in the file/etc/update-motd.d/50-landscape-sysinfo
, as simpoir mentioned in their answer.On my Ubuntu 16.04, the file
/etc/update-motd.d/50-landscape-sysinfo
contains some entry settings and then anif
block. So to display the information regardless of the condition, you can simply remove all contents except shebang and theif
block contents. The result on my Ubuntu 16.04:To do this, use the following procedure in the terminal:
The load tells how much the hardware resources of your computer are being requested currently. As a rule of thumb, if it’s higher than your computer’s processor (core) count, the tasks get delayed. It’s OK to get the high-load MOTD message just after boot but if it keeps appearing for several days (MOTD may update just once a day), check whether your machine is powerful enough for the tasks it’s performing.
There are multiple ways and the right way depends on the purpose. You could simply add a script to the directory
/etc/update-motd.d/
but it would be only run when the MOTD is updated.The message you see on login are generated by motd. This specific one is defined in
/etc/update-motd.d/50-landscape-sysinfo
. To have it run regardless of load (which can make connecting through ssh unresponsive if the load is high), you can simply remove the condition from the file, which will then looks like such:As for the load value, it represents load average, about which you can read more https://en.wikipedia.org/wiki/Load_(computing)