How to Install Gatus on Elementary OS

Gatus is a web-based status monitoring system that can be installed on your server to keep an eye on your services and applications. In this tutorial, we will guide you through the steps required to install Gatus on Elementary OS.

Prerequisites

Before we begin, make sure that you have the following:

sudo apt update && sudo apt upgrade

Step 1: Install Git

The first step is to install Git on your system. Git is an open-source version control system that is commonly used to manage source code. To install Git on your system, enter the following command in your terminal:

sudo apt install git

Step 2: Install Go

We need to install Go Programming language as Gatus is written in Go. To install Go on your system, follow these steps:

  1. Download the latest version of Go from https://golang.org/dl/. You can also use the following command to download the latest version.
cd ~
curl -O https://golang.org/dl/go1.15.4.linux-amd64.tar.gz
  1. Extract the downloaded tarball using the following command:
sudo tar -xvf go1.15.4.linux-amd64.tar.gz -C /usr/local
  1. Next, we need to set up the environment variables for Go. Use the following command to open the bashrc file:
nano ~/.bashrc
  1. Add the following lines at the end of the file:
export GOPATH=$HOME/go
export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin
  1. Once done, save the file by pressing Ctrl + X, then Y, followed by Enter.

  2. After saving the file, reload the bashrc file by typing:

source ~/.bashrc
  1. Verify the Go installation by running the following command:
go version

If Go is installed correctly, it will output the installed version of Go on your system.

Step 3: Install Gatus

To install Gatus, follow these steps:

  1. First, clone the Gatus repository from GitHub using the following command:
git clone https://github.com/TwiN/gatus.git
  1. Once the repository is cloned, go into the Gatus folder using the following command:
cd gatus
  1. Build the binary file by running the following command:
make build
  1. Once the build is complete, you can run Gatus by typing:
./gatus
  1. By default, Gatus listens on port 3000. Open your web browser and visit http://localhost:3000.

  2. You will see the Gatus homepage, which means that the installation was successful.

Conclusion

In this tutorial, we have shown you how to install Gatus, a web-based status monitoring system, on Elementary OS. With Gatus, you can monitor your services and applications easily from a web interface.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!