介绍和安装

本文档的目的是使用没有任何用户界面的扫描仪。常见的用途是通过按扫描仪按钮将 PDF 扫描文件直接上传到 Google Drive 或 Dropbox。

scanbd 允许从扫描仪按钮触发动作,它使用理智。

让事情变得有点棘手的是,通过轮询扫描仪,scanbd 会锁定设备。由于我们还需要从本地工具(如 scanimage)进行扫描,我们需要设置一个代理,以便在需要时从轮询中断 scandb。这是 scanbm 的工作,它监视网络并优先于 scanbd 对扫描器的任何本地访问。

因此,我们需要:

  • 设置本地理智配置以仅从网络扫描(通过 scanbm)
  • 配置 scanbd 以访问并轮询本地扫描程序

作为

apt-get update
apt-get install libconfuse-dev libsane-dev libudev-dev libusb-dev xinetd

可以在这里找到最新版本的 scanbd: 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 现已安装但尚未配置。