<div dir="ltr">Sorry about that. <div><br></div><div><div>pi@raspberrypi:~ $ export SANE_CONFIG_DIR=/etc/scanbd</div><div>pi@raspberrypi:~ $ scanbd -f</div><div>scanbd: Can't set the effective gid to 116</div><div>scanbd: Can't set the effective uid to 111</div><div>scanbd: dbus match type='signal',interface='org.freedesktop.Hal.Manager'</div><div>scanbd: Not Primary Owner (-1)</div><div>scanbd: Name Error (Connection ":1.18" is not allowed to own the service "de.kmux.scanbd.server" due to security policies in the configuration file)</div><div>scanbd: option[1] standard for device rts8891:libusb:001:006 not of type BOOL|INT|FIXED|STRING|BUTTON. Skipping</div><div>scanbd: option[5] geometry for device rts8891:libusb:001:006 not of type BOOL|INT|FIXED|STRING|BUTTON. Skipping</div><div>scanbd: option[10] enhancement for device rts8891:libusb:001:006 not of type BOOL|INT|FIXED|STRING|BUTTON. Skipping</div><div>scanbd: option[20] sensors for device rts8891:libusb:001:006 not of type BOOL|INT|FIXED|STRING|BUTTON. Skipping</div><div>scanbd: option[1] standard for device rts8891:libusb:001:006 not of type BOOL|INT|FIXED|STRING|BUTTON. Skipping</div><div>scanbd: option[5] geometry for device rts8891:libusb:001:006 not of type BOOL|INT|FIXED|STRING|BUTTON. Skipping</div><div>scanbd: option[10] enhancement for device rts8891:libusb:001:006 not of type BOOL|INT|FIXED|STRING|BUTTON. Skipping</div><div>scanbd: option[20] sensors for device rts8891:libusb:001:006 not of type BOOL|INT|FIXED|STRING|BUTTON. Skipping</div><div>scanbd: option[1] standard for device rts8891:libusb:001:006 not of type BOOL|INT|FIXED|STRING|BUTTON. Skipping</div><div>scanbd: option[5] geometry for device rts8891:libusb:001:006 not of type BOOL|INT|FIXED|STRING|BUTTON. Skipping</div><div>scanbd: option[10] enhancement for device rts8891:libusb:001:006 not of type BOOL|INT|FIXED|STRING|BUTTON. Skipping</div><div>scanbd: option[20] sensors for device rts8891:libusb:001:006 not of type BOOL|INT|FIXED|STRING|BUTTON. Skipping</div><div>scanbd: option[1] standard for device rts8891:libusb:001:006 not of type BOOL|INT|FIXED|STRING|BUTTON. Skipping</div><div>scanbd: option[5] geometry for device rts8891:libusb:001:006 not of type BOOL|INT|FIXED|STRING|BUTTON. Skipping</div><div>scanbd: option[10] enhancement for device rts8891:libusb:001:006 not of type BOOL|INT|FIXED|STRING|BUTTON. Skipping</div><div>scanbd: option[20] sensors for device rts8891:libusb:001:006 not of type BOOL|INT|FIXED|STRING|BUTTON. Skipping</div><div><br></div></div><div><div>pi@raspberrypi:~ $ scanimage --list-devices</div><div>device `rts8891:libusb:001:006' is a Hewlett-Packard 4470c flatbed scanner</div></div><div><br></div><div>here is the script that scandb is running -- (under the action section of the scanbd.conf file)</div><div><br></div><div><div>#!/bin/bash</div><div><br></div><div>OUT_DIR=~/scans/Today</div><div>TMP_DIR=`mktemp -d`</div><div>FILE_NAME=scan_`date +%Y-%m-%d-%H%M%S`</div><div>LANGUAGE="eng"                 # the tesseract language - ensure you installed it</div><div><br></div><div>echo 'scanning...'</div><div>scanimage --resolution 300 \</div><div>          --batch="$TMP_DIR/scan_%03d.pnm" \</div><div>          --format=pnm \</div><div>          --mode Gray \</div><div>          --source 'ADF Front'</div><div>echo "Output saved in $TMP_DIR/scan*.pnm"</div><div><br></div><div>cd $TMP_DIR</div><div><br></div><div>for i in scan_*.pnm; do</div><div>    echo "${i}"</div><div>    convert "${i}" "${i}.tif"</div><div>done</div><div><br></div><div># do OCR</div><div>echo 'doing OCR...'</div><div>for i in scan_*.tif; do</div><div>    echo "${i}"</div><div>    tesseract "$i" "$i" -l $LANGUAGE hocr</div><div>    hocr2pdf -i "$i" -s -o "$i.pdf" < "$i.hocr"</div><div>done</div><div><br></div><div># create PDF</div><div>echo 'creating PDF...'</div><div>pdftk *.tif.pdf cat output "compiled.pdf"</div><div><br></div><div>gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile="$FILE_NAME.pdf" compiled.pdf</div><div><br></div><div>cp $FILE_NAME.pdf $OUT_DIR/</div><div><br></div><div>rm -rf $TMP_DIR</div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 2, 2017 at 4:49 PM, Wilhelm Meier <span dir="ltr"><<a href="mailto:wilhelm.wm.meier@googlemail.com" target="_blank">wilhelm.wm.meier@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Please post the log as text, not as image ...<br>
<span class="im HOEnZb"><br>
<br>
Am 02.11.2017 um 17:21 schrieb Adam Lloyd:<br>
> Thanks Wilhelm. <br>
><br>
> Here is the issue with my scandb setup.<br>
><br>
> [IMG]<a href="http://i67.tinypic.com/2hqq7op.jpg[/IMG]" rel="noreferrer" target="_blank">http://i67.tinypic.com/<wbr>2hqq7op.jpg[/IMG]</a><br>
><br>
><br>
> On Thu, Nov 2, 2017 at 12:06 PM, Wilhelm Meier<br>
> <<a href="mailto:wilhelm.wm.meier@googlemail.com">wilhelm.wm.meier@googlemail.<wbr>com</a><br>
</span><div class="HOEnZb"><div class="h5">> <mailto:<a href="mailto:wilhelm.wm.meier@googlemail.com">wilhelm.wm.meier@<wbr>googlemail.com</a>>> wrote:<br>
><br>
>     You should have a look at scanbd:<br>
><br>
>     <a href="https://sourceforge.net/projects/scanbd/" rel="noreferrer" target="_blank">https://sourceforge.net/<wbr>projects/scanbd/</a><br>
>     <<a href="https://sourceforge.net/projects/scanbd/" rel="noreferrer" target="_blank">https://sourceforge.net/<wbr>projects/scanbd/</a>><br>
><br>
><br>
><br>
>     Am 02.11.2017 um 16:19 schrieb Adam Lloyd:<br>
>     > Hello,<br>
>     ><br>
>     > I recently moved an old scanner to a raspberry pi to see if I<br>
>     could get<br>
>     > it to work on alternative platform. A google search revealed that SANE<br>
>     > has "good" support for my particular scanner. After a few attempts I<br>
>     > managed to get Xsane working on a raspberry pi 3 running with<br>
>     stretch. I<br>
>     > was able to successfully scan a document! I would like to setup a dumb<br>
>     > terminal station, where the scanner sits in a corner and is idle.<br>
>     > Whenever some needs to scan a document they would hit the scan button<br>
>     > and the document would get moved to our home NAS. I have attempted to<br>
>     > get this setup working but without much luck. <br>
>     ><br>
>     > Thanks,<br>
>     > Adam. <br>
>     ><br>
>     ><br>
><br>
><br>
<br>
</div></div></blockquote></div><br></div>