linux-dash: Monitors ‚ÄúLinux Performance‚ÄĚ Remotely Using Web Browser

at First, go to demo¬†ūüėĬ†:¬†http://afaq.dreamhosters.com/linux-dash/

pre-requirement: 

  • A Linux server with Apache/Nginx installed.
  • A PHP and php-json extension installed.
  • A unzip utility installed on server.
  • Optionally, you need htpasswd installed, to password protect the statistics page on your server.

install packages:

# apt-get install apache2 apache2-utils

# apt-get install php5 curl php5-curl php5-json

 

# git clone https://github.com/afaqurk/linux-dash.git 

finally : http://localhost/linux-dash

 

reference : https://github.com/afaqurk/linux-dash

Setting Grub 2 Password

I don‚Äôt no why I can’t add it before‚Ķ ;because it’s so easy

  1. First of all, we must define user and password for it.
    • cp¬†/etc/grub.d{,.bac}
      cd /etc/grub.d
      vim 00_header

      cat << EOF

      set¬†superusers=”simon”

      password simon 123456

      password othuser 1234

      EOF

      • add these lines to¬†end of file

  2. Protecting:
    1. All linux kernels (just linux):
      vim 10_linux

      find this:

      printf¬†“menuentry¬†‘${title}’ ‚Ķ.

      and change it to:

      printf¬†“menuentry¬†–users¬†simon¬†othuser¬†‘${title}’ ‚Ķ.

    2. All menu entries:

      sed¬†-i¬†-e ‘/^menuentry¬†/s/ {/¬†–users¬†simon¬†othuser¬†{/’ 10_linux 20_linux_xen 30_os-prober 40_custom 41_custom

  3. Finish by these commands:

    update-grub

    reboot # have fun ūüėČ