How To Install NetHogs on openSUSE
In this tutorial, we will show you how to install NetHogs on openSUSE. NetHogs is a network monitoring tool that provides real-time bandwidth monitoring at the process level on a Linux system. It is particularly useful for identifying which processes are consuming bandwidth on a network interface.
This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo
‘ to the commands to get root privileges. I will show you the step-by-step installation of the NetHogs network monitoring tool on openSUSE.
Prerequisites
- A server running one of the following operating systems: openSUSE.
- It’s recommended that you use a fresh OS install to prevent any potential issues.
- You will need access to the terminal to execute commands. openSUSE provides the Terminal application for this purpose. It can be found in your Applications menu.
- You’ll need an active internet connection to download NetHogs and its dependencies.
- You’ll need administrative (root) access or a user account with sudo privileges.
Install NetHogs on openSUSE
Step 1. Before installing any new package, it’s a good practice to update the package repository index. This ensures that you have the latest package listings. Use the zypper
package manager to refresh the repository index with the following command:
sudo zypper refresh sudo zypper update
Step 2. Installing NetHogs on openSUSE.
Once the repository index is updated, you can install NetHogs. Use the zypper
package manager to install NetHogs with the following command:
sudo zypper install nethogs
After the installation is complete, you can confirm that NetHogs has been installed successfully by checking its version. Enter the following command in the terminal:
nethogs -V
Step 3. Running NetHogs on openSUSE.
To start monitoring network traffic by process, execute the following command:
sudo nethogs
While NetHogs is running, you can use interactive controls such as pressing ‘m’ to cycle through display modes (KB/s, KB, B, MB) or ‘r’ and ‘s’ to sort by received and sent traffic, respectively.
If you want to monitor a specific network interface, you can specify it as an argument:
sudo nethogs eth0
Replace eth0
with the appropriate interface name for your system.
For non-interactive use, such as in scripts, you can use the tracing mode which outputs each connection or refresh of the screen as one line of text:
sudo nethogs -t
For more detailed usage options, consult the NetHogs manual page:
man nethogs
Congratulations! You have successfully installed NetHogs. Thanks for using this tutorial for installing the NetHogs network monitoring on your openSUSE system. For additional or useful information, we recommend you check the official NetHogs website.