The purpose of this documentation is to use a scanner without any user interface. A common use is to upload a PDF scanned file directly to Google Drive or Dropbox just by pressing scanner-buttons.
scanbd permits to trigger actions from the scanner buttons, it uses sane.
What make things a little bit trickier is that by polling the scanner, scanbd locks the device. As we also need to scan from local tools (like scanimage), we need to set a proxy that's going to interrupt scandb from polling when needed. This is the job of scanbm, which monitors the network and give priority over scanbd to any local access to the scanner.
Thus, we need to :
As root:
apt-get update
apt-get install libconfuse-dev libsane-dev libudev-dev libusb-dev xinetd
The latest version of scanbd can be find here : https://sourceforge.net/projects/scanbd/files/releases/
# Download the latest version of **scanbd**.
wget https://sourceforge.net/projects/scanbd/files/releases/scanbd-1.4.4.tgz/download
# Uncompress
tar xvzf scanbd-1.4.4.tgz && cd 1.4.4
# Configure with the installation path in /etc/
./configure --disable-Werror
# install it
make
make install
# Add a dbus policy to authorize "saned" user to manage scanbd :
cp integration/scanbd_dbus.conf /etc/dbus-1/system.d/
# Add the init script to manage the daemon :
cp integration/scanbd.debian /etc/init.d/scanbd
scanbd is now installed but not yet configured.