How To Install scanbd on Ubuntu 18.04

In this tutorial we learn how to install scanbd on Ubuntu 18.04. scanbd is Scanner button daemon

Introduction

In this tutorial we learn how to install scanbd on Ubuntu 18.04.

What is scanbd

scanbd is:

It polls the scanner buttons looking for buttons pressed or function knob changes or other scanner events as paper inserts / removals and at the same time allows also scan-applications to access the scanners. If buttons are pressed, etc., various actions can be submitted (scan, copy, email, …) via action scripts. The function knob values are passed to the action-scripts as well.

Scan actions are also signaled via D-Bus. This can be useful for foreign applications. Scans can also be triggered via D-Bus from foreign applications.

On platforms which support signaling of dynamic device insertion / removal (libudev, D-Bus, hal) scanbd supports this as well. scanbd can use all sane-backends or some special backends from the (old) scanbuttond project.

This package is a successor of scanbuttond.

There are three methods to install scanbd on Ubuntu 18.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 scanbd Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install scanbd

Install scanbd Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install scanbd using apt by running the following command:

sudo apt -y install scanbd

Install scanbd 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 scanbd using aptitude by running the following command:

sudo aptitude -y install scanbd

How To Uninstall scanbd on Ubuntu 18.04

To uninstall only the scanbd package we can use the following command:

sudo apt-get remove scanbd

Uninstall scanbd And Its Dependencies

To uninstall scanbd and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove scanbd

Remove scanbd Configurations and Data

To remove scanbd configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge scanbd

Remove scanbd configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge scanbd

References

Summary

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