How To Install bit-babbler on Ubuntu 22.04

In this tutorial we learn how to install bit-babbler on Ubuntu 22.04. bit-babbler is BitBabbler hardware TRNG and kernel entropy source support

Introduction

In this tutorial we learn how to install bit-babbler on Ubuntu 22.04.

What is bit-babbler

bit-babbler is:

This package provides supporting software for the BitBabbler true random number generator hardware. It includes:

  • The seedd daemon for running continuous quality and health checks on the active devices and the stream of entropy that they provide, and for seeding the OS kernel entropy pool on demand.
  • Monitoring tools for short and long term analysis, and alerting of anomalies in both the BitBabbler output and the kernel /dev/random and /dev/urandom output.
  • Admin tools for real-time inspection of the short and long term quality metrics.

You will need to install libjson-xs-perl if you wish to use the munin-node script for continuous graphing and monitoring of device performance.

You will need to install libvirt-clients if you want hotplug support for adding devices to libvirt managed virtual machines.

There are three methods to install bit-babbler on Ubuntu 22.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install bit-babbler Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install bit-babbler using apt-get by running the following command:

sudo apt-get -y install bit-babbler

Install bit-babbler Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install bit-babbler using apt by running the following command:

sudo apt -y install bit-babbler

Install bit-babbler Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install bit-babbler using aptitude by running the following command:

sudo aptitude -y install bit-babbler

How To Uninstall bit-babbler on Ubuntu 22.04

To uninstall only the bit-babbler package we can use the following command:

sudo apt-get remove bit-babbler

Uninstall bit-babbler And Its Dependencies

To uninstall bit-babbler and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:

sudo apt-get -y autoremove bit-babbler

Remove bit-babbler Configurations and Data

To remove bit-babbler configuration and data from Ubuntu 22.04 we can use the following command:

sudo apt-get -y purge bit-babbler

Remove bit-babbler configuration, data, and all of its dependencies

We can use the following command to remove bit-babbler configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge bit-babbler

References

Summary

In this tutorial we learn how to install bit-babbler package on Ubuntu 22.04 using different package management tools: apt, apt-get and aptitude.