CentLinux

Linux Server, DevOps, Kubernetes, and Beyond

Install Linux Dash on Rocky Linux 8

Share on Social Media

Discover how to install Linux Dash on Rocky Linux 8 with our step-by-step guide. Easily monitor your system’s performance and resources using this intuitive web-based dashboard. #centlinux #linux

What is Linux Dash?

A simple & low-overhead web dashboard for Linux systems. Linux Dash comes in well under 1MB of source code and only shows data when client browsers request it. Unlike server-side agent processes, Linux Dash does not gather or maintain historical data-sets, allowing its purpose and footprint to remain focused to a smaller surface area.

The server-side implementation of Linux Dash is available in several languages (Node.js, Python, Go, & PHP). The reason this approach is taken is because majority of the complexity is in the layer which fetches & processes the system data. This allows the server-side implementations to remain wrappers which serve as simple router applications for funneling requests from the client to the Data Pipeline.

How to Install Linux Dash on Rocky Linux 8
How to Install Linux Dash on Rocky Linux 8

Linux Dash Features

  • Small in Size – Under 400KB on disk (with .git removed)!
  • Simple to Use – A minimalist, beautiful dashboard
  • Easy to Install – Drop-in installation
  • Versatile – Choose your stack from Node.js, Go, Python, PHP

Linux Dash Alternatives

There are several alternatives to Linux Dash for monitoring system performance and resources. Here are a few popular ones:

  1. Netdata: An open-source, real-time performance monitoring tool for systems and applications. It offers extensive visualizations and an easy-to-use web interface.
  2. Glances: A cross-platform monitoring tool that presents a lot of information in a compact and visually appealing way. It can be run in a web browser or terminal.
  3. Cockpit: A web-based interface for managing and monitoring Linux servers. It provides insights into system performance, disk usage, and more.
  4. Grafana: Combined with Prometheus or other data sources, Grafana provides advanced metrics and monitoring with customizable dashboards.
  5. htop: An interactive process viewer for Unix systems, htop is a great tool for quickly checking system resource usage from the command line.
  6. Zabbix: An enterprise-grade open-source monitoring solution that provides monitoring metrics, network discovery, and more.

These alternatives offer various features and capabilities, so you can choose the one that best fits your monitoring needs.

Recommended Training: Linux Administration: The Complete Linux Bootcamp in 2025 from Andrei Dumitrescu, Crystal Mind Academy

3371848 9ea9 18

Environment Specification

We are utilizing a minimal installation of Rocky Linux 8 on a virtual machine that has been specifically configured with the following specifications to ensure optimal performance and compatibility. This streamlined setup is ideal for both learning and production environments, providing a lightweight and efficient base for various applications and services. Below are the details of the virtual machine’s configuration:

  • CPU – 3.4 Ghz (2 cores)
  • Memory – 2 GB
  • Storage – 20 GB
  • Operating System – Rocky Linux 8.6 (Green Obsidian)
  • Hostname – linux-dash-01.centlinux.com
  • IP Address – 192.168.116.128 /24

This minimal Rocky Linux 8 setup offers a clean and secure environment, making it a perfect choice for users aiming to deploy applications or learn about Linux server management without unnecessary pre-installed packages. By starting with this minimal configuration, you have the flexibility to add only the services and applications you need, ensuring better resource utilization and performance.

Read Also: How to install Cockpit on CentOS 7

Updating Linux Operating System

To begin managing your server, use an SSH client to establish a secure connection with the system. Connect to your linux-dash-01.centlinux.com server as the root user, which provides full administrative access to carry out the required configurations and tasks.

Once connected to the server, it’s essential to build or refresh your YUM (Yellowdog Updater Modified) cache to ensure your package manager has the latest metadata for repositories. This step is crucial for seamless installation and updates of software packages.

To accomplish this, execute the following dnf command at the Linux bash prompt:

# dnf makecache
Rocky Linux 8 - AppStream                       1.6 kB/s | 4.8 kB     00:02
Rocky Linux 8 - BaseOS                          1.6 kB/s | 4.3 kB     00:02
Rocky Linux 8 - Extras                          1.4 kB/s | 3.5 kB     00:02
Metadata cache created.

This command updates the local cache for your package manager, allowing it to quickly access metadata for software repositories. This ensures that any subsequent package installations or updates retrieve the most current versions available.

Performing these steps prepares your Rocky Linux server for the installation of Linux Dash or any other necessary software, ensuring a smooth and efficient process.

Execute following command at Linux bash to update your Linux operating system.

# dnf update -y

If your Linux Kernel is updated due to above command, then you should reboot your Linux operating system before installing Dashboard software.

# reboot

After reboot, verify the Linux Operating System and Kernel versions as follows.

# cat /etc/rocky-release
Rocky Linux release 8.6 (Green Obsidian)

# uname -r
4.18.0-372.13.1.el8_6.x86_64

Installing Software Prerequisites

Linux Dash is a highly versatile and lightweight server monitoring tool that can seamlessly run on multiple platforms, including Node.js, Go, Python, and PHP. Its adaptability makes it an excellent choice for administrators who prefer a clean, web-based dashboard to monitor their systems in real time.

In this tutorial, we will deploy the Linux Dash web dashboard on a PHP-based web server for streamlined monitoring and management of server resources.

To achieve this, we will use the Apache Web Server as the HTTP server and PHP as the scripting language backend. Apache is renowned for its reliability, performance, and ease of integration with PHP, making it an ideal choice for hosting Linux Dash.

Additionally, the Git command-line tool will be required to fetch the latest Linux Dash software directly from its GitHub repository. Git simplifies downloading, updating, and managing the Linux Dash source code.

To ensure all these prerequisites are properly installed, we will use the following single dnf command to install Apache, PHP, and Git efficiently on your Rocky Linux server. Execute the command below to set up all the required components in one step:

# dnf install -y git httpd php

Enable and start PHP and Apache services.

# systemctl enable --now php-fpm httpd
Created symlink /etc/systemd/system/multi-user.target.wants/php-fpm.service → /usr/lib/systemd/system/php-fpm.service.
Created symlink /etc/systemd/system/multi-user.target.wants/httpd.service → /usr/lib/systemd/system/httpd.service.

Configure Linux Firewall

Allow the HTTP service in Linux Firewall to make it accessible across the network.

# firewall-cmd --permanent --add-service=http
success
# firewall-cmd --reload
success

Configure SELinux

Linux Dash software is not compatible with SELinux, therefore, for it’s proper function, you have to permanently disable the SELinux.

Temporary put SELinux in permissive mode by executing following command at Linux Bash.

# setenforce 0

Now, edit the SELinux configuration file by using vim text editor.

# vi /etc/selinux/config

Find and set following directive to permanently disable SELinux.

SELINUX=disabled

Install Linux Dash on Rocky Linux 8

By using git command, make a clone of Linux Dash software from GitHub to Apache Document Root (/var/www/html) directory.

# cd /var/www/html/
# git clone --depth 1 https://github.com/afaqurk/linux-dash.git
Cloning into 'linux-dash'...
remote: Enumerating objects: 82, done.
remote: Counting objects: 100% (82/82), done.
remote: Compressing objects: 100% (74/74), done.
remote: Total 82 (delta 6), reused 31 (delta 3), pack-reused 0
Receiving objects: 100% (82/82), 109.34 KiB | 874.00 KiB/s, done.
Resolving deltas: 100% (6/6), done.

Configure HTTP Basic Authentication

Linux Dash is a very simple software and does not provide any user based authentication.

No Problem! You can leverage the HTTP basic authentication to configure user based security for your Web Application.

Create a user admin by executing following htpasswd command.

# htpasswd -c /etc/htpasswd.conf admin
New password:
Re-type new password:
Adding password for user admin

Now configure Apache web server to use your password file for authentication.

# vi /etc/httpd/conf/httpd.conf

Add following directives in this file.

<Directory "/var/www/html/linux-dash/app">
    AllowOverride none
    AuthType Basic
    AuthName "Restricted Content"
    AuthUserFile /etc/htpasswd.conf
    Require valid-user
</Directory>

Reload Apache service to apply changes.

# systemctl reload httpd

Access your Linux Web Dashboard

Open URL http://linux-dash-01.centlinux.com/linux-dash/app/ in a web browser.

You have to login as the admin user, thanks to the HTTP Basic Authentication.

After successful Login you may reach at your Dashboard application. Some of the screenshots of this software are:

Linux Dash System Status
Linux Dash System Status
Linux Dash Apps
Linux Dash Apps
Linux Dash User Accounts
Linux Dash User Accounts
Linux Dash Network
Linux Dash Network
Linux Dash Basic Info
Linux Dash Basic Info

The software is showing many aspects of your Linux operating system.

Final Thoughts

In this guide, we walked through the step-by-step process of installing Linux Dash, a lightweight and user-friendly web-based monitoring tool, on Rocky Linux 8. By completing this tutorial, you’ve learned how to:

  1. Prepare your Rocky Linux 8 system by updating the packages and installing necessary dependencies.
  2. Set up a web server to host Linux Dash, ensuring a stable environment for the monitoring tool.
  3. Clone the Linux Dash repository, configure it, and run the application to monitor your server’s real-time performance metrics.
  4. Secure your setup to ensure accessibility from the network while keeping your server safe.

Linux Dash provides a clean, intuitive dashboard for monitoring essential system metrics such as CPU usage, memory consumption, network statistics, and disk activity. Its lightweight design ensures minimal resource usage, making it an ideal choice for monitoring servers in production or development environments.

With Linux Dash successfully installed on your Rocky Linux 8 server, you now have a powerful tool to keep track of your system’s performance. Whether you’re managing a single server or a fleet, Linux Dash offers a quick and efficient way to monitor your system’s health and performance in real time.

Feel free to explore the various features of Linux Dash and customize it further to suit your needs. Happy monitoring!

Whether you need cloud optimization, server management, or automation, I provide comprehensive AWS and Linux services. Hire me on Fiverr to elevate your systems.

Looking for something?

Leave a Reply