December 3, 2021
How To Install Byptop on Ubuntu 20.04 LTS

How to Install Bpytop Resource Monitoring Tool On Ubuntu 20.04 LTS

On this article we will discuss how to install Bpytop resource monitoring tools on Linux Ubuntu 20.04 LTS.

Introduction

As an administrator, knowing system resources in detail is a must. With a comprehensive understanding of the system we have, we can take appropriate action if there is a need for system changes or a correction process if a problem occurs. There are so many tools that can be used to monitor our server/system resources, one of which is Bpytop. BpyTop is a resource monitor tools that shows usage and stats for processor, memory, disks, network and processes. The Bpytop is written in Python and compatible with GNU / Linux, Mac OS, and FreeBSD. On this article we will learn how to install Bpytop on Linux Ubuntu 20.04 LTS operating system.



BpyTop Features

The BpyTop features are as follow :

  • Easy to use, with a game inspired menu system.
  • Full mouse support, all buttons with a highlighted key is clickable and mouse scroll works in process list and menu boxes.
  • Fast and responsive UI with UP, DOWN keys process selection.
  • Function for showing detailed stats for selected process.
  • Ability to filter processes, multiple filters can be entered.
  • Easy switching between sorting options.
  • Send SIGTERM, SIGKILL, SIGINT to selected process.
  • UI menu for changing all config file options.
  • Auto scaling graph for network usage.
  • Shows message in menu if new version is available
  • Shows current read and write speeds for disks

Boytop Installatiotn On Ubuntu 20.04 LTS

There are several ways to install BpyTop on Ubuntu, including:

1 – Install Bpytop Using PIP
2 – Compile Bpytop from Source
3 – Install Bpytop Using SNAP
4 – Install Bpytop Using Ubuntu Repository

In this article, we will only discuss how to install BpyTop using pip and compile it from the source. BpyTop has dependencies with other applications, so we have to install them first, namely: Python3 (v3.7 or later) and psutil module (v5.7.0 or later).

1. Update Ubuntu Base system

Usually before installing a new application, we are advised to update our base system to the latest version. This can be done using the command line: sudo apt-get update -y.

amans@otodiginet:~$ sudo apt-get update -y
 [sudo] password for ramans: 
 Hit:1 http://mirror.telkomuniversity.ac.id/ubuntu focal InRelease
 Get:2 http://mirror.telkomuniversity.ac.id/ubuntu focal-updates InRelease [114 kB]                       
 Get:3 https://deb.nodesource.com/node_14.x focal InRelease [4,583 B]                                     
 Hit:4 https://dl.yarnpkg.com/debian stable InRelease                                                     
 Get:5 http://mirror.telkomuniversity.ac.id/ubuntu focal-backports InRelease [101 kB]                     
 Hit:6 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal InRelease                                     
 Get:7 http://mirror.telkomuniversity.ac.id/ubuntu focal-security InRelease [114 kB]                      
 Get:9 http://mirror.telkomuniversity.ac.id/ubuntu focal-updates/main i386 Packages [490 kB]              
 Hit:11 http://ppa.launchpad.net/teejee2008/ppa/ubuntu focal InRelease 
Update Ubunut base system - Install BpyTop
Update Ubunut base system – Install BpyTop



2. Install Required dependencies

After our Ubuntu system was updated, then we have to prepare the Bpytop dependecies.

2.1 Python3 (Version 3.6 and later)

After checking Python Version on our system, then we found if our Python’s system has met the requirements.

2.2. Psutil module

We have to install Psutil module by using the following command: pip3 install psutil.

ramans@otodiginet:~/bpytop$ pip3 install psutil
 Collecting psutil
   Downloading psutil-5.8.0-cp38-cp38-manylinux2010_x86_64.whl (296 kB)
      |████████████████████████████████| 296 kB 1.6 MB/s 
 Installing collected packages: psutil
 Successfully installed psutil-5.8.0
Install pip2 psutil
Install pip2 psutil

3. Install Bpytop

3.1. Install Bpytop by Compiling Bpytop from Source

By using this method, the first thing we have clone the Bpytop GitHub repository. We need git command line installed on the system. We just submit the command line : git clone https://github.com/aristocratos/bpytop.git.

ramans@otodiginet:~$ git clone https://github.com/aristocratos/bpytop.git
 Cloning into 'bpytop'…
 remote: Enumerating objects: 1451, done.
 remote: Counting objects: 100% (294/294), done.
 remote: Compressing objects: 100% (114/114), done.
 remote: Total 1451 (delta 189), reused 247 (delta 180), pack-reused 1157
 Receiving objects: 100% (1451/1451), 1017.19 KiB | 1.92 MiB/s, done.
 Resolving deltas: 100% (922/922), done.

After all complete, we just go to bpytop directory and make it, by submitting command line : sudo apt install make.

ramans@otodiginet:~$ cd bpytop
ramans@otodiginet:~/bpytop$ sudo apt install make
 Reading package lists… Done
 Building dependency tree       
 Reading state information… Done
 The following packages were automatically installed and are no longer required:
   linux-headers-5.8.0-48-generic linux-hwe-5.8-headers-5.8.0-48 linux-image-5.8.0-48-generic
   linux-modules-5.8.0-48-generic linux-modules-extra-5.8.0-48-generic
 Use 'sudo apt autoremove' to remove them.
 Suggested packages:
   make-doc
 The following NEW packages will be installed:
   make
 0 upgraded, 1 newly installed, 0 to remove and 150 not upgraded.
 Need to get 162 kB of archives.
 After this operation, 393 kB of additional disk space will be used.
 Get:1 http://mirror.telkomuniversity.ac.id/ubuntu focal/main amd64 make amd64 4.2.1-1.2 [162 kB]
 Fetched 162 kB in 1s (288 kB/s)
 debconf: unable to initialize frontend: Dialog
 debconf: (Dialog frontend requires a screen at least 13 lines tall and 31 columns wide.)
 debconf: falling back to frontend: Readline
 Selecting previously unselected package make.
 (Reading database … 244409 files and directories currently installed.)
 Preparing to unpack …/make_4.2.1-1.2_amd64.deb …
 Unpacking make (4.2.1-1.2) …
 Setting up make (4.2.1-1.2) …
 Processing triggers for man-db (2.9.1-1) …
Bpyto make file
Bpyto make file

Until now, the Bpytop installation is completed, then we verify it by querying its version. Do the command line : bpytop --version.

amans@otodiginet:~/bpytop$ bpytop --version
 bpytop version: 1.0.67
 psutil version: 5.8.0
BpyTop version
BpyTop version

3.2. Install BpyTop by Using PIP

Another option to install Bpytop is to use pip, so we need python3-pip module installed on our system first. We need to install python3-pip by submitting command line : sudo apt install python3-pip.

ramans@otodiginet:~/bpytop$ sudo apt install python3-pip
 Reading package lists… Done
 Building dependency tree       
 Reading state information… Done
 The following packages were automatically installed and are no longer required:
   linux-headers-5.8.0-48-generic linux-hwe-5.8-headers-5.8.0-48 linux-image-5.8.0-48-generic
   linux-modules-5.8.0-48-generic linux-modules-extra-5.8.0-48-generic
Install python3-pip
Install python3-pip

After installation was completed done, then we just install the BpyTop by submitting command line : sudo pip3 install bpytop.

ramans@otodiginet:~$ sudo pip3 install bpytop
 [sudo] password for ramans: 
 Collecting bpytop
   Downloading bpytop-1.0.67-py3-none-any.whl (82 kB)
      |████████████████████████████████| 82 kB 274 kB/s 
 Collecting psutil<6.0.0,>=5.7.0
   Downloading psutil-5.8.0-cp38-cp38-manylinux2010_x86_64.whl (296 kB)
      |████████████████████████████████| 296 kB 3.4 MB/s 
 Installing collected packages: psutil, bpytop
 Successfully installed bpytop-1.0.67 psutil-5.8.0
Install Bpytop using PIP
Install Bpytop using PIP

Using Bpytop

Bpytop monitoring tools can be called by simple task. Just text the bpytop on the console, then we will be promtped with Bpytop application as shown below.

Bpytop applicaiotn console
Bpytop applicatin console
Bpytop application | option
Bpytop application | option

Conclusion

On this article we have shown you the Bpytop installation with with two installation methods, namely : Compile Bpytop from Source and Install Bpytop Using PIP.

Share this article via :

Leave a Reply

Your email address will not be published. Required fields are marked *