Using SANE - Entware/Entware GitHub Wiki
Introduction
This page describes how to enable Network Scanning using a USB scanner or multi-function printer using S.A.N.E. (Scan Access Now Easy).
Requirements
Make sure you've got SANE supported scanner.
Installation
opkg install sane-frontends dbus xinetd
Configuration
Create file /opt/etc/xinetd.d/saned
and put the following content:
service saned
{
type = UNLISTED
port = 6566
socket_type = stream
server = /opt/sbin/saned
protocol = tcp
user = root
group = root
wait = no
disable = no
}
Edit file /opt/etc/sane.d/saned.conf
and add your subnet to allow access, for example: 192.168.1.0/24.
Reboot device and make sure that dbus and xinetd are running (this step might not be required if you know how to start the services manually from /opt/etc/init.d
).
Special Hardware Instructions
For HP scanner:
opkg --force-overwrite install hplip
Test functionality
Type: scanimage -L
, your device should be displayed.
Type: scanimage --test
, your device should start testing and display status.
On The Client Side (Linux)
- Install the sane package. This changes by distribution
- Edit file
/etc/sane.d/net.conf
and add the ip or hostname of the router - Test the same way with the
scanimage
utility
On The Client Side (Windows):
- Download SaneTwain
- On start-up put the router's ip/host
Links
- SANE - http://www.sane-project.org/
- Original How-To - https://github.com/RMerl/asuswrt-merlin/wiki/Network-Scanning-With-Sane