'MOTD'에 해당되는 글 2건

  1. 2011.12.11 ubuntu motd
  2. 2011.06.07 motd - Message of The Day
Linux/Ubuntu2011. 12. 11. 17:01
/etc/motd 를 통해 로그인 시에 메시지가 출력되는데
업데이트 하는 방법은 update-motd 라는 명령어를 이용하는데
문제는(?) 이 motd 파일이 언제 업제이트 되는지 라는 것.
아무리 뒤져봐도 영 안보이는데 어디서 어떻게 업데이트 되는거니~ -_-

$ sudo grep -rni "motd" /etc
/etc/update-motd.d/90-updates-available:3:exec /usr/lib/update-notifier/update-motd-updates-available
/etc/update-motd.d/98-reboot-required:3:exec /usr/lib/update-notifier/update-motd-reboot-required
/etc/update-motd.d/99-footer:3:# motd.tail is reserved for the admin to append static
/etc/update-motd.d/99-footer:5:# /etc/motd.
/etc/update-motd.d/99-footer:8:# script to /etc/update-motd.d/
/etc/update-motd.d/99-footer:10:[ -f /etc/motd.tail ] && cat /etc/motd.tail || true
/etc/update-motd.d/20-cpu-checker:3:exec /usr/lib/update-notifier/update-motd-cpu-checker
/etc/update-motd.d/91-release-upgrade:3:exec /usr/lib/update-manager/release-upgrade-motd
/etc/pam.d/sshd:27:session    optional     pam_motd.so # [1]
/etc/pam.d/login:72:# Prints the motd upon succesful login
/etc/pam.d/login:73:# (Replaces the `MOTD_FILE' option in login.defs)
/etc/pam.d/login:74:session    optional   pam_motd.so
/etc/login.defs:312:#MOTD_FILE
/etc/ssh/sshd_config:64:PrintMotd no
/etc/apparmor/severity.db:128:/etc/motd 1 3 0 

$ ll /etc/update-motd.d/
total 44
drwxr-xr-x   2 root root  4096 2011-12-11 15:08 ./
drwxr-xr-x 130 root root 12288 2011-12-11 16:41 ../
-rwxr-xr-x   1 root root    57 2010-04-23 18:45 00-header*
-rwxr-xr-x   1 root root   248 2010-04-23 18:45 10-help-text*
-rwxr-xr-x   1 root root    65 2010-04-14 05:45 20-cpu-checker*
lrwxrwxrwx   1 root root    46 2011-12-11 15:08 50-landscape-sysinfo -> /usr/share/landscape/landscape-sysinfo.wrapper*
-rwxr-xr-x   1 root root    71 2010-04-14 05:45 90-updates-available*
-rwxr-xr-x   1 root root    61 2010-10-13 16:40 91-release-upgrade*
-rwxr-xr-x   1 root root    69 2010-04-14 05:45 98-reboot-required*
-rwxr-xr-x   1 root root   261 2010-04-23 18:45 99-footer* 

[링크 : http://www.ubuntu.or.kr/viewtopic.php?p=1070]
[링크 : http://www.ubuntugeek.com/how-to-change-message-of-the-day-motd-in-ubuntu-server.html]
Posted by 구차니
Linux/Ubuntu2011. 6. 7. 16:18
Message of The Day
오늘의 메시지로 번역하면 되려나?

로그인 시에는
/etc/issue 라는 파일과
추가적으로 /etc/motd /etc/motd.tail 파일이 붙어서 화면에 출력이 된다.

하지만 어떠한 이유(아마도 apt-get으로 강제 업데이트 해서겠지?)로 인해
이러한 내용이 엉겨서 더이상 업데이트 할 내용이 없음에도 불구하고 계속 나온다면
motd 파일을 손을 보는 것이 현명한(?) 방법이다.

로그인 시에 이렇게 나오는데
Linux dev 2.6.32-32-generic #62-Ubuntu SMP Wed Apr 20 21:54:21 UTC 2011 i686 GNU/Linux
Ubuntu 10.04.2 LTS

Welcome to Ubuntu!
 * Documentation:  https://help.ubuntu.com/

Ubuntu 10.04.2 LTS

Welcome to Ubuntu!
 * Documentation:  https://help.ubuntu.com/

48 packages can be updated.
28 updates are security updates.

Last login: Tue Jun  7 13:24:08 2011 from 192.168.10.15 

이 파일의 내용은 /etc/motd 와 /etc/motd.tail 에 둘다 포함되어 있다.
motd를 지워도 motd.tail이 계속 붙으므로
motd.tail의 내용을 비워주면 이러한 내용이 붙지 않게 된다. 

[링크 : http://www.ubuntu.or.kr/viewtopic.php?p=1070]
[링크 : http://www.ubuntugeek.com/how-to-change-message-of-the-day-motd-in-ubuntu-server.html]

'Linux > Ubuntu' 카테고리의 다른 글

ubuntu 에서 openGL 프로그래밍하기  (0) 2011.09.07
update-manager  (0) 2011.06.21
apt-get 관련  (0) 2011.06.05
PAE - Physical Address Extension  (0) 2011.05.08
멀티부트 상황에서 시간변동 바로잡기  (0) 2011.04.15
Posted by 구차니