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.
Before you can install ntfy, you will need to ensure your system meets the following prerequisites:
Open your terminal emulator.
Type the following command to update your system's package list:
sudo apt update
Type the following command to install pip3:
sudo apt install python3-pip
Type the following command to install ntfy:
pip3 install ntfy
Once you have ntfy installed, you need to configure it to work with your desktop environment. Follow the steps below to configure ntfy:
Type the following command to open the ntfy configuration file:
nano ~/.config/ntfy/config.yml
Add the following lines to the configuration file:
backend: dbus
interval: 20
backend
parameter sets the notification mechanism for ntfy. The value dbus
specifies desktop notifications as the notification mechanism.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
.
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!