Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Each time I SSH into my AWS Ubuntu servers I see a system information message, showing load, memory usage and packages available to install, like this:

Welcome to Ubuntu 12.04.3 LTS (GNU/Linux 3.2.0-51-virtual x86_64)

 * Documentation:  https://help.ubuntu.com/

  System information as of Sun Nov 10 18:06:43 EST 2013

  System load:  0.08              Processes:           127
  Usage of /:   4.9% of 98.43GB   Users logged in:     1
  Memory usage: 69%               IP address for eth0: 10.236.136.233
  Swap usage:   100%

  Graph this data and manage this system at https://landscape.canonical.com/

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

Get cloud support with Ubuntu Advantage Cloud Guest
  http://www.ubuntu.com/business/services/cloud

Use Juju to deploy your cloud instances and workloads.
  https://juju.ubuntu.com/#cloud-precise
*** /dev/xvda1 will be checked for errors at next reboot ***

*** System restart required ***

My question is, how is that message created? How can I configure it?

share|improve this question

2 Answers 2

up vote 7 down vote accepted

This login message is created by Ubuntu's landscape packages. Speaking personally, I think they're quite annoying and as such, have configured ansible to nuke those packages and set a blank login message.

To do that:

$ apt-get remove landscape-client landscape-common 
$ rm -f /etc/motd && touch /etc/motd

That will create a blank /etc/motd. To set a custom login message, edit that file as desired.

share|improve this answer
    
Thank you @EEAA, that was helpful. Maybe you'll be able to help me with a related question serverfault.com/questions/554021/… –  Andres Nov 10 '13 at 23:48
    
@Andres Sorry, I have no idea. As mentioned in my answer, I disable these login messages. I figure my monitoring system will tell me if there are any issues with regards to CPU or memory. –  EEAA Nov 11 '13 at 0:08

In my case, I had to clear /etc/update-motd.d/51-cloudguest, which read:

#!/bin/sh
#
# This file is written by the Ubuntu image build process, it is not
# managed by a package.  If you want to avoid seeing this advertisement,
# then you can safely remove the file.
echo ""
echo "  Get cloud support with Ubuntu Advantage Cloud Guest:"
echo "    http://www.ubuntu.com/business/services/cloud"
echo ""
echo "  Use Juju to deploy your cloud instances and workloads:"
echo "    https://juju.ubuntu.com/#cloud-saucy"
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.