Join the community today
Register Now

How to remove First Info (intro) when logged to server SSH

Discussion in 'Centmin Mod Insights' started by negative, Sep 16, 2016.

  1. negative

    negative Active Member

    262
    26
    28
    Apr 11, 2015
    Ratings:
    +59
    Local Time:
    2:57 PM
    1.9.10
    10.1.11
    Hello

    When i login to my server, we see everytime that cpu, ram, hdd stats and some warnings and centminmod links on SSH.

    How can we edit or remove them permanently ? Because every centmin update it comes back :)

    Code (Text):
    Last login: Thu Sep 15 23:51:12 2016 from 188.188.188.188
    
    ===============================================================================
     - Hostname......: server.server on CentOS Linux 7.2.1511
     - Users.........: Currently 1 user(s) logged on (includes: root)
    ===============================================================================
     - CPU usage.....: 0.27, 0.15, 0.08 (1, 5, 15 min)
     - Processes.....: 407 running
     - System uptime.: 6 days 1 hours 43 minutes 18 seconds
    ===============================================================================
                  total        used        free      shared  buff/cache   available
    Mem:          31744        2697       26329         107        2717       28592
    Swap:         16000           0       16000
    ===============================================================================
    Dosyasistemi   Tür        Boy  Dolu   Boş Kull% Bağlanılan yer
    /dev/sda2      ext4      424G  5,9G  396G    2% /
    devtmpfs       devtmpfs   16G     0   16G    0% /dev
    tmpfs          tmpfs      16G     0   16G    0% /dev/shm
    tmpfs          tmpfs      16G   58M   16G    1% /run
    tmpfs          tmpfs      16G     0   16G    0% /sys/fs/cgroup
    /dev/sda1      ext4      477M  138M  310M   31% /boot
    tmpfs          tmpfs     3,2G     0  3,2G    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 ]
    ===============================================================================


    I want only remove this area permanently
    Code:
    =======================
    ! 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 ]
    ===============================================================================
    P.S: I'm happy with cpu, ram, hdd partitions infos but i want remove the csf firewall / ip tables warning lines and centminmod links (because i have bookmarked your all website shortcuts already so no need to see every logged in to SSH)

    @eva2000
     
  2. eva2000

    eva2000 Administrator Staff Member

    37,729
    8,257
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,713
    Local Time:
    10:57 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    see Install - welcome message question + aliases question | Centmin Mod Community

     
  3. eva2000

    eva2000 Administrator Staff Member

    37,729
    8,257
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,713
    Local Time:
    10:57 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Updated Centmin Mod 123.09beta01 branch code with 2 new variables to control what the dynamic motd banner dmotd.sh script can display on initial log in Beta Branch - update dynamic dmotd.sh banner to support 2 new variables in 123.09be…

    example when persistent config file /etc/centminmod/custom_config.inc has disabled these 2 variables

    Code (Text):
    ENABLEMOTD_CSFMSG='n'         # motd banner csf message alert disaply
    ENABLEMOTD_LINKSMSG='n'       # motd centminmod.com links bookmark alert display


    Code (Text):
    ===============================================================================
     - Hostname......: HOSTNAME on CentOS Linux 7.2.1511
     - Users.........: Currently 3 user(s) logged on (includes: root)
    ===============================================================================
     - CPU usage.....: 0.05, 0.03, 0.05 (1, 5, 15 min)
     - Processes.....: 131 running
     - System uptime.: 0 days 2 hours 36 minutes 12 seconds
    ===============================================================================
                  total        used        free      shared  buff/cache   available
    Mem:           1839         312         291          17        1235        1239
    Swap:          1535           2        1533
    ===============================================================================
    Filesystem              Type      Size  Used Avail Use% Mounted on
    /dev/mapper/centos-root xfs        13G  5.6G  7.5G  43% /
    devtmpfs                devtmpfs  911M     0  911M   0% /dev
    tmpfs                   tmpfs     920M     0  920M   0% /dev/shm
    tmpfs                   tmpfs     920M  8.4M  912M   1% /run
    tmpfs                   tmpfs     920M     0  920M   0% /sys/fs/cgroup
    /dev/sda1               xfs       497M  279M  218M  57% /boot
    tmpfs                   tmpfs     184M     0  184M   0% /run/user/0
    
    ===============================================================================
     Centmin Mod local code is up to date at /usr/local/src/centminmod
     no available updates at this time...
    ===============================================================================
     
    • Winner Winner x 1
  4. negative

    negative Active Member

    262
    26
    28
    Apr 11, 2015
    Ratings:
    +59
    Local Time:
    2:57 PM
    1.9.10
    10.1.11
    Thank you for your development it looks perfectly :) they were should be.
     
    • Like Like x 1
..