Get the most out of your Centmin Mod LEMP stack
Become a Member

Install Override MOTD ?

Discussion in 'Install & Upgrades or Pre-Install Questions' started by BobbyWibowo, Feb 12, 2016.

  1. BobbyWibowo

    BobbyWibowo Active Member

    166
    36
    28
    Jul 30, 2015
    Medan, Indonesia
    Ratings:
    +57
    Local Time:
    6:46 AM
    Thanks a lot!

    One more thing, how do you force the script not to overwrite MOTD on every update? I'm pretty sure I have done the step that requires me to set ENABLEMOTD='n' on a certain inc file (I specifically wrote n within quotes, but I saw some example showing that I shouldn't, which is the correct method?). But the update still overwrite my MOTD regardless :(

    And OP, sorry for riding on your thread!
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,956
    6,917
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,418
    Local Time:
    9:46 AM
    Nginx 1.13.x
    MariaDB 5.5
    the log in MOTD has instructions
    Code:
    ################################################################
    # ! This server maybe running CSF Firewall ! 
    #   DO NOT run the below command or you
    #   will lock yourself out of the server:
    #
    #   iptables -F
    #
    ################################################################
    # This message was setup by Centmin Mod
    # * Getting Started Guide - http://centminmod.com/getstarted.html
    # * Latest Centmin Mod version - http://centminmod.com      
    # * Centmin Mod FAQ - http://centminmod.com/faq.html
    # * Change Log - http://centminmod.com/changelog.html
    # * Google+ Page latest news http://centminmod.com/gpage
    # * Google+ Community Forum http://centminmod.com/gcom
    # * Centmin Mod Twitter https://twitter.com/centminmod
    ###############################################################
    # Cheap VPS Hosting at Digitalocean
    # https://www.digitalocean.com/?refcode=c1cb367108e8
    ###############################################################
    # recommend to keep the above lines and remove and
    # add your own messages below this point
    ###############################################################
    # To edit this message,
    # 1). edit /etc/motd
    # 2). edit inc/motd.inc and set to no ENABLEMOTD='n'
    ###############################################################
    recommendation is to keep above lines and just edit below
    Code:
    ###############################################################
    # recommend to keep the above lines and remove and
    # add your own messages below this point
    ###############################################################
    # To edit this message,
    # 1). edit /etc/motd
    # 2). edit inc/motd.inc and set to no ENABLEMOTD='n'
    ###############################################################
     
  3. eva2000

    eva2000 Administrator Staff Member

    30,956
    6,917
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,418
    Local Time:
    9:46 AM
    Nginx 1.13.x
    MariaDB 5.5
    ah inc/motd.inc might get overriden on git update or update centmin mod code.

    try using persistent config file at /etc/centminmod/custom_config.inc - create it if it doesn't exist and add
    Code:
    ENABLEMOTD='n'
     
  4. RoldanLT

    RoldanLT Well-Known Member

    3,978
    965
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,329
    Local Time:
    7:46 AM
    1.11
    10.2
    I thought this will not work?
     
  5. eva2000

    eva2000 Administrator Staff Member

    30,956
    6,917
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,418
    Local Time:
    9:46 AM
    Nginx 1.13.x
    MariaDB 5.5
    ah yes won't work until i update /inc/motd.inc to do so whoops
     
    • Like Like x 2
  6. BobbyWibowo

    BobbyWibowo Active Member

    166
    36
    28
    Jul 30, 2015
    Medan, Indonesia
    Ratings:
    +57
    Local Time:
    6:46 AM
    Yeah, I had that for a while but it kept getting overwritten regardless.
     
  7. BobbyWibowo

    BobbyWibowo Active Member

    166
    36
    28
    Jul 30, 2015
    Medan, Indonesia
    Ratings:
    +57
    Local Time:
    6:46 AM
  8. eva2000

    eva2000 Administrator Staff Member

    30,956
    6,917
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,418
    Local Time:
    9:46 AM
    Nginx 1.13.x
    MariaDB 5.5
    just updated 123.09beta01 a few moments ago (so git update again) the persistent config file at /etc/centminmod/custom_config.inc set ENABLEMOTD='n' should register and work now

    however, there's a new MOTD that is in place now that you might like to use :D

    Code:
    =================================================================================
    - Hostname......: centminmod.com on CentOS Linux 7.2.1511
    - Users.........: Currently 2 user(s) logged on (includes: root)
    =================================================================================
    - CPU usage.....: 0.00, 0.01, 0.08 (1, 5, 15 min)
    - Processes.....: 34 running
    - System uptime.: 0 days 19 hours 44 minutes 31 seconds
    =================================================================================
                  total        used        free      shared  buff/cache   available
    Mem:           1024           0          80         285         943         888
    Swap:          1024          91         932
    =================================================================================
    Filesystem        Type      Size  Used Avail Use% Mounted on
    /dev/ploop45053p1 ext4       25G  3.4G   20G  15% /
    devtmpfs          devtmpfs  512M     0  512M   0% /dev
    tmpfs             tmpfs     512M     0  512M   0% /dev/shm
    tmpfs             tmpfs     512M  132K  512M   1% /run
    tmpfs             tmpfs     512M     0  512M   0% /sys/fs/cgroup
    tmpfs             tmpfs     103M     0  103M   0% /run/user/0
    =================================================================================
    ! This server maybe running CSF Firewall ! 
      DO NOT run the below command or you  will lock yourself out of the server:
    
      iptables -F
    
    =================================================================================
    * Getting Started Guide - http://centminmod.com/getstarted.html
    * Centmin Mod FAQ - http://centminmod.com/faq.html
    * Change Log - http://centminmod.com/changelog.html
    * Community Forums https://community.centminmod.com  [ << Register ]
    =================================================================================
    
     
  9. BobbyWibowo

    BobbyWibowo Active Member

    166
    36
    28
    Jul 30, 2015
    Medan, Indonesia
    Ratings:
    +57
    Local Time:
    6:46 AM
    Whoa fancy. How do I enable that? o_O
     
  10. eva2000

    eva2000 Administrator Staff Member

    30,956
    6,917
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,418
    Local Time:
    9:46 AM
    Nginx 1.13.x
    MariaDB 5.5
    just update 123.09beta01 and run centmin.sh it should enable it on next ssh login
     
  11. BobbyWibowo

    BobbyWibowo Active Member

    166
    36
    28
    Jul 30, 2015
    Medan, Indonesia
    Ratings:
    +57
    Local Time:
    6:46 AM
    ssh.png
    Line separator is off by 1 character on PuTTY's default window size.
     
    • Informative Informative x 1
  12. eva2000

    eva2000 Administrator Staff Member

    30,956
    6,917
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,418
    Local Time:
    9:46 AM
    Nginx 1.13.x
    MariaDB 5.5
    cheers will fix :)

    just update 123.09beta01 and re-run centmin.sh once
     
    • Like Like x 1
  13. Tracy Perry

    Tracy Perry Active Member

    188
    81
    28
    Aug 24, 2014
    Texas
    Ratings:
    +130
    Local Time:
    5:46 PM
    1.11.5
    MariaDB 10.0.28
    Updated and I get this (OVH server using their kernel CentOS 7 install since it shows default kernel not supported)
    Code:
    Warning: /boot/System.map-3.14.32-xxxx-grs-ipv6-64 not parseable as a System.map
     
    • Informative Informative x 1
  14. eva2000

    eva2000 Administrator Staff Member

    30,956
    6,917
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,418
    Local Time:
    9:46 AM
    Nginx 1.13.x
    MariaDB 5.5
  15. eva2000

    eva2000 Administrator Staff Member

    30,956
    6,917
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,418
    Local Time:
    9:46 AM
    Nginx 1.13.x
    MariaDB 5.5
    @Tracy Perry what do you get when you run this commands on that OVH server

    Code:
    grep --color -Ro SO_REUSEPORT /usr/src/kernels/* | head -n1 | awk -F ":" '{print $2}'
    Code:
    cat /proc/sys/net/netfilter/nf_conntrack_helper
     
  16. Tracy Perry

    Tracy Perry Active Member

    188
    81
    28
    Aug 24, 2014
    Texas
    Ratings:
    +130
    Local Time:
    5:46 PM
    1.11.5
    MariaDB 10.0.28
    Code:
    [tracy@bbq ~]$ grep --color -Ro SO_REUSEPORT /usr/src/kernels/* | head -n1 | awk -F ":" '{print $2}'
    SO_REUSEPORT
    Code:
    [tracy@bbq ~]$ cat /proc/sys/net/netfilter/nf_conntrack_helper
    1
    Yep, was aware that there had been issues.. but OVH won't allow the default kernel to be installed. I tried several times and got an error every time it was trying to provision it and told to use the OVH kernel. This is on their new D-1520's. It may be different on the older E3 based ones (I may grab one of them later to try probably).
     
  17. eva2000

    eva2000 Administrator Staff Member

    30,956
    6,917
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,418
    Local Time:
    9:46 AM
    Nginx 1.13.x
    MariaDB 5.5
    so it wasn't those commands that triggered that message

    strange you can't use default kernels, I tested Xeon D-1540 at Benchmarks - Intel Xeon D-1540 benchmarks | Centmin Mod Community and it used default kernel
    where and when exactly do you get this message ?
     
  18. Tracy Perry

    Tracy Perry Active Member

    188
    81
    28
    Aug 24, 2014
    Texas
    Ratings:
    +130
    Local Time:
    5:46 PM
    1.11.5
    MariaDB 10.0.28
    I chose the option to use the Install Original Kernel every time, and during the partition stage (I think it was) it would error out.
    Screen Shot 2016-02-19 at 12.04.43 AM.png

    Got it at initial log in via terminal from my Mac to the server.
    This is the entire screen for MOTD
    Code:
    Last login: Fri Feb 19 00:06:15 2016 from 64.188.254.247
    CentOS Linux release 7.2.1511 (Core)
    
    Linux bbq.rednechosting.com 3.14.32-xxxx-grs-ipv6-64 #6 SMP Wed Jan 20 17:52:44 CET 2016 x86_64 x86_64 x86_64 GNU/Linux
    
    server    : 256021
    hostname  : bbq.rednechosting.com
    eth0 IPv4 : 158.69.126.43
    eth0 IPv6 : 2607:5300:60:932b::/64
    
    ################################################################
    # ! This server maybe running CSF Firewall !
    #   DO NOT run the below command or you
    #   will lock yourself out of the server:
    #
    #   iptables -F
    #
    ################################################################
    # This message was setup by Centmin Mod
    # * Getting Started Guide - http://centminmod.com/getstarted.html
    # * Latest Centmin Mod version - http://centminmod.com
    # * Centmin Mod FAQ - http://centminmod.com/faq.html
    # * Change Log - http://centminmod.com/changelog.html
    # * Google+ Page latest news http://centminmod.com/gpage
    # * Google+ Community Forum http://centminmod.com/gcom
    # * Centmin Mod Twitter https://twitter.com/centminmod
    ###############################################################
    # Cheap VPS Hosting at Digitalocean
    # https://www.digitalocean.com/?refcode=c1cb367108e8
    ###############################################################
    # recommend to keep the above lines and remove and
    # add your own messages below this point
    ###############################################################
    # To edit this message,
    # 1). edit /etc/motd
    # 2). edit inc/motd.inc and set to no ENABLEMOTD='n'
    ###############################################################
    
    Warning: /boot/System.map-3.14.32-xxxx-grs-ipv6-64 not parseable as a System.map
    
    ===============================================================================
    - Hostname......: bbq.rednechosting.com on CentOS Linux 7.2.1511
    - Users.........: Currently 2 user(s) logged on (includes: tracy)
    ===============================================================================
    - CPU usage.....: 0.00, 0.01, 0.05 (1, 5, 15 min)
    - Processes.....: 10 running
    - System uptime.: 1 days 22 hours 22 minutes 32 seconds
    ===============================================================================
                  total        used        free      shared  buff/cache   available
    Mem:          32129        1768       24347          50        6013       30026
    Swap:          1021           0        1021
    ===============================================================================
    Filesystem                                                                       Type      Size  Used Avail Use% Mounted on
    /dev/root                                                                        ext4       76G   14G   59G  19% /
    devtmpfs                                                                         devtmpfs   16G     0   16G   0% /dev
    tmpfs                                                                            tmpfs      16G     0   16G   0% /dev/shm
    tmpfs                                                                            tmpfs      16G   50M   16G   1% /run
    tmpfs                                                                            tmpfs      16G     0   16G   0% /sys/fs/cgroup
    /dev/md2                                                                         ext4      364G  2.7G  343G   1% /home
    ftpback-bhs1-112.ip-yyyyyyyyyyyyyy:/export/ftpbackup/xxxxxxxxxxxxxxxxxxx         nfs4      500G  4.1G  496G   1% /backups
    tmpfs                                                                            tmpfs     3.2G     0  3.2G   0% /run/user/1000
    ===============================================================================
    ! This server maybe running CSF Firewall !
      DO NOT run the below command or you  will lock yourself out of the server:
    
      iptables -F
    
    ===============================================================================
    * Getting Started Guide - http://centminmod.com/getstarted.html
    * Centmin Mod FAQ - http://centminmod.com/faq.html
    * Change Log - http://centminmod.com/changelog.html
    * Community Forums https://community.centminmod.com  [ << Register ]
    ===============================================================================
    I'm wondering (since this was a new kernel update and comes from OVH) if that may be an OS error... about to disable the MOTD and see if I still get it. It just started showing up - but I upgraded to the new kernel and CentMIn about the same time.
     
    Last edited: Feb 19, 2016
    • Informative Informative x 1
  19. eva2000

    eva2000 Administrator Staff Member

    30,956
    6,917
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,418
    Local Time:
    9:46 AM
    Nginx 1.13.x
    MariaDB 5.5
    i see strange you only meant to have one of the MOTD old one or new version not both although System.map error isn't related it seems
     
  20. Tracy Perry

    Tracy Perry Active Member

    188
    81
    28
    Aug 24, 2014
    Texas
    Ratings:
    +130
    Local Time:
    5:46 PM
    1.11.5
    MariaDB 10.0.28
    OK.. just disabled via /usr/local/src/centminmod/inc/motd.inc and I do not get the error... but I still get the old stuff that was there pre-upgrade to the latest BETA - so it's not removing it. About to remove the old stuff and enable the new again.