Ubuntu welcome information saved in/etc/update-motd.d/, modify the file to modify the Welcome message
# ls/etc/update-motd.d/00-header 10-help-text 90-updates-available 91-release-upgrade 98-fsck-at-reboot 98-reboot-re quired
After modifying the corresponding file, execute
# run-parts/etc/update-motd.d/
Default Welcome information:
welcome to ubuntu 14.04 lts (gnu/linux 3.13.0-24-generic x86_64) * documentation: https://help.ubuntu.com/260 packages can be updated.130 updates are security updates. You have new mail. Last login: wed jun 17 22:21:45 2015 from service
For example, modify 00-header:
[ -r /etc/lsb-release ] && . /etc/lsb-releaseif [ -z "$ Distrib_description " ] && [ -x /usr/bin/lsb_release ]; then # Fall back to using the very slow lsb_release utility distrib_description=$ (lsb_ release -s -d) fiprintf "welcome to %s (%s %s %s) \ n" "My OS" "$ (uname -o)" "$ (uname -r)" "$ (uname -m)" cat /etc/kylin # Note the file path here
then new file/etc/kylin:
/* * _ooOoo_ * o8888888o * 88 " . " 88 * (| -_- |) * o\ = /o * ____/'---' \____ * . ' \\| |// ' . * / \\| | | : | | | \ * / _| | | | | -:- | | | | | - \ * | | \\\ - /// | | * | \_| ' \---/' | | * \ .-\__ '-' ___/-. / * ___ '. . ' /--.--\ ' . . __ * . "" ' < '. ___\_<|>_/___. ' > ' "". * | | : '- \ '.; ' \ _ /';. '/ - ' : | | * \ \ '-. \_ __\ /__ _/ .-' / / * ====== '-.____ '-.___\_____/___.-' ____.-' ====== * ' =---= ' * ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^ * ^^ ^^ ^^ Gaopeng Heave &NBsp;* Buddha bless never bug * Buddha Yue: * office in the writing room, Programmer; * in the writing room program staff to write procedures, and take the program for drinks. * sober only on the internet to sit, drunk also to net sleep; * alcohol woke up day after day, online network next year. * hope old computer room, unwilling to bow boss before; * Mercedes-Benz BMW your interest, bus self-programmer. * Others laugh at me crazy, I laugh my life too cheap; * don't see the street pretty sister, which is the programmer? */
Then execute: run-parts/etc/update-motd.d/, Effect:
/* * _ooOoo_ * o8888888o * 88 " . " 88 * (| -_- |) * o\ = /o * ____/'---' \____ * . ' \\| |// ' . * / \\| | | : | | | \ * / _| | | | | -:- | | | | | - \ * | | \\\ - /// | | * | \_| ' \---/' | | * \ .-\__ '-' ___/-. / * ___ '. . ' /--.--\ ' . . __ * . "" ' < '. ___\_<|>_/___. ' > ' "". * | | : '- \ '.; ' \ _ /';. '/ - ' : | | * \ \ '-. \_ __\ /__ _/ .-' / / * ====== '-.____ '-.___\_____/___.-' ____.-' ====== * ' =---= ' * ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^ * ^^ ^^ ^^ Gaopeng Heave &NBsp;* Buddha bless never bug * Buddha Yue: * office in the writing room, Programmer; * in the writing room program staff to write procedures, and take the program for drinks. * sober only on the internet to sit, drunk also to net sleep; * alcohol woke up day after day, online network next year. * hope old computer room, unwilling to bow boss before; * Mercedes-Benz BMW your interest, bus self-programmer. * Others laugh at me crazy, I laugh my life too cheap; * don't see the street pretty sister, which is the programmer? */
Ubuntu Modify Welcome Login Page