To remove the landscape.canonical.com
line, create or edit (as root) the file /etc/landscape/client.conf
.
In /etc/landscape/client.conf
, add these lines:
[sysinfo]
exclude_sysinfo_plugins = LandscapeLink
This works for all default plugins:
Load, Disk, Memory, Temperature, Processes, LoggedInUsers, LandscapeLink, Network
So, to have your motd look more like this :
System load: 0.83 Swap usage: 0%
Usage of /: 59.5% of 117.38GB Users logged in: 3
Memory usage: 7% IP address for eth0: 10.10.30.70
...you would want to remove Temperature
, LandscapeLink
, Processes
from the landscape-sysinfo process.
These can be added in the client.conf file as before, comma separated:
[sysinfo]
exclude_sysinfo_plugins = LandscapeLink,Temperature,Processes
This can be tested one the command line with:
landscape-sysinfo --exclude-sysinfo-plugins=Temperature,LandscapeLink,Processes
See landscape-sysinfo --help
for some additional information.
It looks like the /etc/update-motd.d
directory can no longer have links to the scripts. (This happened to the Cronjob directories a number of release back, and is part of the security stuff I would guess).
If you list the directory (ls -l /etc/update-motd.d
) you will see the following
50-landscape-sysinfo -> /usr/share/landscape/landscape-sysinfo.wrapper
If you want the System information back just copy the script into /etc/update-motd.d
with the following command.
$ sudo cp /usr/share/landscape/landscape-sysinfo.wrapper /etc/update-motd.d/52-landscape-sysinfo
Note that when landscape fixes the problem you will get two copy of the script and then you can just delete the file.
Best Answer
Posting this as an answer since Stefano Palazzo thought it would be a good idea.
The dynamic MOTD is part of the 'landscape-common' package. So just install it using: