How to Install ntfy on POP! OS Latest

ntfy is a command-line notification tool for Linux and macOS. It allows you to receive real-time desktop notifications when long-running terminal commands finish executing. In this tutorial, you will learn how to install ntfy on POP! OS Latest.

Prerequisites

Before you can install ntfy, you will need to ensure your system meets the following prerequisites:

Installation

  1. Open your terminal emulator.

  2. Type the following command to update your system's package list:

    sudo apt update
    
  3. Type the following command to install pip3:

    sudo apt install python3-pip
    
  4. Type the following command to install ntfy:

    pip3 install ntfy
    

Configuration

Once you have ntfy installed, you need to configure it to work with your desktop environment. Follow the steps below to configure ntfy:

  1. Type the following command to open the ntfy configuration file:

    nano ~/.config/ntfy/config.yml
    
  2. Add the following lines to the configuration file:

    backend: dbus
    interval: 20
    
    • The backend parameter sets the notification mechanism for ntfy. The value dbus specifies desktop notifications as the notification mechanism.
    • The interval parameter sets the polling interval for ntfy. The default value is 10 seconds, but you can increase it to reduce the number of notifications you receive.

    Save the changes by pressing CTRL + X, then Y, and finally ENTER.

  3. Finally, type the following command to test your ntfy installation:

    ntfy send "ntfy is working!"
    

    If everything is configured correctly, you should receive a desktop notification saying ntfy is working!.

Congratulations, you have successfully installed and configured ntfy on POP! OS Latest. You can now use ntfy to receive notifications when long-running terminal commands finish executing.

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!