This repository has been archived by the owner on Mar 17, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 150
Using SANE
Alexander Ryzhov edited this page Nov 20, 2015
·
2 revisions
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).
opkg install sane-frontends dbus xinetd
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
).
For HP scanner:
opkg --force-overwrite install hplip
Type: scanimage -L
, your device should be displayed.
Type: scanimage --test
, your device should start testing and display status.
- 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
- Download SaneTwain [http://sanetwain.ozuzo.net] (http://sanetwain.ozuzo.net)
- On start-up put the router's ip/host
- SANE - http://www.sane-project.org/
- Original How-To - https://github.com/RMerl/asuswrt-merlin/wiki/Network-Scanning-With-Sane