Ubuntu Modify Welcome Login Page

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.