Here's more in the ongoing saga, cross-posted from the
debian-users mailing list...
On Fri Apr 2 09:26:58 2021 "Alexander V. Makartsev" <
avb...@gmail.com>
wrote:
> All things considered, it might be indeed easier to setup FTP/SFTP or
> CIFS (Samba) server on your PC and create a scanner profile to scan
> directly into FTP directory or SMB share.
I've arrived at that conclusion myself. I was hoping that I could use
NFS - and even finally tracked down and corrected a problem in my NFS
server, which hadn't been working for a long time (I had typed a period
instead of a comma in /etc/exports). It doesn't look like NFS is an
option, but at least I got my server going again, so it wasn't a total
waste if tune.
I looked for information on sane-airscan, but I couldn't find anything
really meaningful, and it just didn't give a good feeling in my gut.
It looks like SFTP is the way to go - if I can only get it to work.
There are a few frustrating gaps in the documentation of the profile
setup screen.
First of all, when filling out the "host address" box the Brother web
site says "type the Host Address or the IP address, and type the path
to the folder. Do not type a slash symbol at the beginning of the path."
Why not have a separate field for the path? If I must combine them,
how do I do so? How does the system tell where the IP address ends
and the path begins? Why is a leading slash prohibited? I'd think
it was essential. I'd expect a standard notation like
192.168.0.5:/home/cjg/scans
but it doesn't like that. I eventually found that
192.168.0.5home/cjg/scans
was accepted, even though my intuition screams out that it's wrong.
For that matter,
192.168.0.5/home/cjg/scans
is accepted too, even though it has that leading slash that I'm
not supposed to enter.
This brings me to the next problem: authentication. I've selected
"password" and typed in the user ID and password I use on my
computer. But then we get to that "Server Public Key" entry.
The web site says "Select the authentication type from the
Server Public Key drop-down list." This is misleading; it seems
to be not a list of types, but rather a list of public keys.
So off I go to the "Server Public Key" screen under the Network
tab and select "Import Server Public Key". Aha - there's "Select
the server public key file", complete with a "Browse" button.
Unfortunately, the file browser in my web browser (Seamonkey)
is brain-damaged: it won't let me type in a filespec, and
the .ssh directory is hidden. OK, copy .ssh/id_rsa.pub to
my home directory and select it from there. That gets it
onto the server public key list. Back to the profile setup
screen, where id_rsa.pub now shows up under "Server Public
Key". Click "Submit". "Would you like to test your SFTP
settings?" I click Yes, it goes away for a few seconds,
then comes up with "authentication error".
By this time it was well past midnight, so I declared the
process a dead end. Has anyone else managed to set up SFTP?
In the meantime, I figured I'd fall back to sneakernet.
I plugged a thumb drive into the scanner's USB port,
selected "Scan to USB", dropped 40 sheets of paper into
the feeder, and told it to do a double-sided scan at 300
dpi. It quickly feed the sheets through, occasionally
pausing to digest, and in the end I wound up with a
good-looking 80-page PDF file.
Emboldened by this, I went into the advanced options
and turned on "Continuous scan", then dropped in the
first part of a 300-page manual. Once the sheets
were scanned, the scanner asked me whether I had
more; I put in the next bundle of sheets, said yes,
and away it went. All was well until partway through
the last set of pages - on about page 280 the scanner
halted with an error message saying it had run out of
space. A sheet was half-fed, the PDF file was incomplete
and therefore corrupt, and a second file was created
which contained garbage left over from a previously
deleted file. That's not graceful - the least it
could have done was closed off the file cleanly.
The 2GB thumb drive was only 3% full. (Maybe the
limit is internal to the scanner.) For now I'll
assume a limit of 200 pages per file, and use
pdfunite to put the pieces together in the computer.