How to Install Gotify on Kali Linux

Gotify is an open-source self-hosted push notification service that lets you send push notifications to clients. In this tutorial, we will guide you through the process of installing Gotify on Kali Linux.

Prerequisites

Before starting the installation process, you should ensure that your Kali Linux system is up to date by running:

sudo apt update && sudo apt upgrade

Step 1 — Installing Dependencies

First, we need to install some required packages for Gotify to work properly. Run the following command to install the necessary dependencies:

sudo apt install wget unzip postgresql postgresql-client postgresql-contrib
sudo apt install nginx
sudo systemctl start nginx
sudo systemctl enable nginx

Step 2 — Installing Gotify

  1. Download the latest version of Gotify from the official website. You can do it with the following command:
sudo wget https://github.com/gotify/server/releases/download/v2.1.0/gotify-linux-amd64.zip
  1. Once the download is complete, extract the zip file using the following command:
sudo unzip gotify-linux-amd64.zip
  1. If the extraction is successful, you should be able to find the Gotify server binary in the extracted folder. Move into the folder with the following command:
cd gotify-linux-amd64
  1. Now that you are in the Gotify directory, you can start the Gotify server with the following command:
sudo ./gotify-linux-amd64

By default, Gotify will run on port 80. If you want to use a different port, you can specify it with the -p option followed by a port number. For example, to run Gotify on port 8080, you would use the following command:

sudo ./gotify-linux-amd64 -p 8080

Step 3 — Configuring Gotify

  1. To access Gotify from a web browser, you should configure NGINX as a reverse proxy. The following configuration should work:
sudo nano /etc/nginx/sites-available/default

Paste in the following configuration:

server {
    listen 80;
    server_name 127.0.0.1;

    location / {
        proxy_pass http://127.0.0.1:80/;
    }
}
  1. In the Gotify web interface, click on the "Create App" button and enter a name for your application. Then, copy the generated Token.

  2. Open the Gotify configuration file using the following command:

sudo nano ~/.gotify/config.yml
  1. Replace the bearerToken value with the token you copied earlier.

  2. Save and close the file.

  3. Restart the Gotify server with the following command:

sudo systemctl restart gotify

Conclusion

You have successfully installed Gotify on Kali Linux. You can now use Gotify to send push notifications to clients.

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!