And*_*res 12 ubuntu login amazon-web-services motd
每次我通过 SSH 连接到我的 AWS Ubuntu 服务器时,我都会看到一条系统信息消息,显示负载、内存使用情况和可供安装的软件包,如下所示:
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 ***
Run Code Online (Sandbox Code Playgroud)
我的问题是,该消息是如何创建的?我该如何配置它?
EEA*_*EAA 11
此登录消息是由 Ubuntu 的landscape软件包创建的。就个人而言,我认为它们很烦人,因此,已将 ansible 配置为核对这些软件包并设置空白登录消息。
要做到这一点:
$ apt-get remove landscape-client landscape-common
$ rm -f /etc/motd && touch /etc/motd
Run Code Online (Sandbox Code Playgroud)
这将创建一个空白/etc/motd. 要设置自定义登录消息,请根据需要编辑该文件。
小智 7
就我而言,我必须清除/etc/update-motd.d/51-cloudguest,其内容如下:
#!/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"
Run Code Online (Sandbox Code Playgroud)