我在一台通过 SSH 访问的机器上安装了 Ubuntu Lucid Lynx 服务器。几天以来,每次我登录系统时,都会看到以下欢迎屏幕。
Linux ubuntuserver 2.6.32-32-server #62-Ubuntu SMP Wed
Apr 20 22:07:43 UTC 2011 x86_64 GNU/Linux
Ubuntu 10.04.2 LTS
Welcome to the Ubuntu Server!
* Documentation: http://www.ubuntu.com/server/doc
System information as of Tue Jun 14 11:07:26 PDT 2011
System load: 0.05 Processes: 144
Usage of /: 1.9% of 447.72GB Users logged in: 0
Memory usage: 41% IP address for eth0: 192.168.1.14
Swap usage: 0%
=> There is 1 zombie process.
Graph this data and manage this system at https://landscape.canonical.com/
3 packages can be updated.
0 updates are security updates.
Ubuntu 10.04.2 LTS
Welcome to the Ubuntu Server!
* Documentation: http://www.ubuntu.com/server/doc
System information as of Wed May 4 09:07:52 PDT 2011
System load: 0.01 Processes: 137
Usage of /: 1.3% of 447.72GB Users logged in: 0
Memory usage: 20% IP address for eth0: 192.168.1.14
Swap usage: 0%
Graph this data and manage this system at https://landscape.canonical.com/
36 packages can be updated.
3 updates are security updates.
No mail.
Last login: Mon Jun 13 09:21:13 2011 from 182.64.117.115
信息重复了,但并不相同,而且日期也不同。这是正常的吗,还是我抽了什么东西?
答案1
通常,登录消息位于 中/etc/motd
。检查文件是否包含两个重复项或仅包含一个。
如果文件包含两者,只需手动编辑它 - 可能是 Ubuntu 的 MOTD 自动更新脚本出了问题或其他问题。
如果motd
只包含一半,则尝试找到另一半:
grep -L -r "information as of Wed" /etc /var
获取文件名后,重复搜索:grep -r "thefilename" /etc
答案2
查看 /etc/motd.tail。此文件的内容在登录时附加到 /etc/motd。消息的第二部分可能在此文件中。将其清除,下次登录时“重复”消息将消失。