Removing Landscape advert from Ubuntu login

To remove the text that says: “Graph this data and manage this system at https://landscape.canonical.com/” while keeping the useful system information, edit (or add) the configuration file that controls the Landscape client:

sudoedit /etc/landscape/client.conf

Edit this file to include the section:
[sysinfo]
exclude_sysinfo_plugins=LandscapeLink

This is a better solution than editing the Message of the Day script (/etc/update-motd.d/50-landscape-sysinfo) because it survives updates to the Landscape and update-motd packages.

Test this change by running:
/etc/update-motd.d/50-landscape-sysinfo

It should look like:

  System information as of Mon Mar 19 06:46:31 GMT 2012

  System load:  0.0               Temperature:         59 C
  Usage of /:   8.1% of 39.85GB   Processes:           92
  Memory usage: 20%               Users logged in:     1
  Swap usage:   0%                IP address for eth0: 192.168.0.1

This article was updated with j's suggestion from the comments. Many thanks to j for making it even simpler!

Comments powered by Disqus