USB scanner server: got it working on Qnap [Update 20110427]

Printers, HDDs, USB/eSATA drives, 3rd-party programs
ibiris
First post
Posts: 1
Joined: Mon Feb 27, 2012 7:44 am

Re: USB scanner server: got it working on Qnap [Update 20110

Post by ibiris »

Hi

Thanks for this tutorial!! I just got a TS-219 PII. I have also a HP-Deskjet F4180 all-in-one printer/scanner/copier. I had in the past a NSLU2 running debian in the spot of the TS-219 but saddly the little slug had to go. Having been through the scanner setup once I was not looking forward to doing this much work again to get it to work with the qnap :-)

Anyway, I followed the tutorial in this thread but I could not activate the scanner using the default steps. My symptoms were: during sane-find-scanner I could see the scanner getting recognised, but with scanimage -L I would get zero scanners found.

Enter hplip package, which provided support through hpaio. After installing hplip, I could see the scanner also via scanimage -L. BUT I could not see the scanner when trying to test it via eg
scanimage -d hpaio:/usb/Deskjet_F4100_series?serial=CN7CC6W1WS04TJ --test
The culprit: dbus. Apparently it does not get started automatically on my qnap, so I need to fix that. In my test, after I did
/opt/etc/init.d/S20dbus start


the printer started reacting to my commands through scanimage using hpaio. The next logical step will be to connect it through the rest of the tutorial - using xinetd and saned.

A word of advice:
1. please make sure that your installation has all the libraries you need eg in /opt/lib/sane you should see the library needed for your printer - depending which dll is used. If you use hpaio there should be a /opt/lib/sane/libsane-hpaio.so link pointing to the right library.
2. before engaging setting the xinetd/saned part of the tutorial you should be able to do some basic tests using scanimage on the Qnap itself (via telnet or ssh), to confirm that the scanner does scan when you command it to. The command
scanimage -L
lists the printer and gives you an identifier to use for more testing - using scanimage. In my case this output is
device `hpaio:/usb/Deskjet_F4100_series?serial=CN7CC6W1WS04TJ' is a Hewlett-Packard Deskjet_F4100_series all-in-one
Then to do a basic scanning test run a command similar to this
scanimage -d hpaio:/usb/Deskjet_F4100_series?serial=CN7CC6W1WS04TJ --test
which gives as output in my case
scanimage: scanning image of size 638x877 pixels at 24 bits/pixel
scanimage: acquiring RGB frame, 8 bits/sample
scanimage: reading one scanline, 1914 bytes... PASS
scanimage: reading one byte... PASS
scanimage: stepped read, 2 bytes... PASS
scanimage: stepped read, 4 bytes... PASS
scanimage: stepped read, 8 bytes... PASS
scanimage: stepped read, 16 bytes... PASS
scanimage: stepped read, 32 bytes... PASS
scanimage: stepped read, 64 bytes... PASS
scanimage: stepped read, 128 bytes... PASS
scanimage: stepped read, 256 bytes... PASS
scanimage: stepped read, 512 bytes... PASS
scanimage: stepped read, 1024 bytes... PASS
scanimage: stepped read, 2048 bytes... PASS
scanimage: stepped read, 2047 bytes... PASS
scanimage: stepped read, 1023 bytes... PASS
scanimage: stepped read, 511 bytes... PASS
scanimage: stepped read, 255 bytes... PASS
scanimage: stepped read, 127 bytes... PASS
scanimage: stepped read, 63 bytes... PASS
scanimage: stepped read, 31 bytes... PASS
scanimage: stepped read, 15 bytes... PASS
scanimage: stepped read, 7 bytes... PASS
scanimage: stepped read, 3 bytes... PASS
If that comes out, you have green light to do the networking part. Otherwise, you need to dig more as other messages in the thread indicated.

I hope this helps.
svarne
First post
Posts: 1
Joined: Mon Mar 05, 2012 11:27 pm

Re: USB scanner server: got it working on Qnap [Update 20110

Post by svarne »

Hello,

i´ve some Problems with an Epson Bf305F.

Scanning worked fine for a few weeks. Now i decided to change the Disk MAnagment to a Raid 5.
After that i tried to ativate the scanner again. Now i get a error message.

sane_find_scanner foind it
scanimage -L also find the scanner.
But scanimage -T gives me following error Message
scanimage: sane_start: Operation not supportet
X_sane gives me the same error message.

Does anyone knows what i can do?

Befor i used the epson2 config
now i have to use the epson conf.
With epson2 now, no scanner will be found by scanimage -L
Thanks
JeroenSt80
Getting the hang of things
Posts: 62
Joined: Sun Jan 29, 2012 4:40 am
Location: Nearby Eindhoven, The Netherlands

Re: USB scanner server: got it working on Qnap [Update 20110

Post by JeroenSt80 »

I got it working to with an acerscan 620u !!

ipkg install xinetd
ipkg install sane-backends

if you have a an acer scanner copy U96V121.BIN file (from the attachment below this post) to /opt/share/sane/snapscan/your-firmwarefile.bin

reboot

and when you log in to ssh you just do:

scanimage --format=tiff --resolution 75 >/share/HDA_DATA/Download/scan.tiff

even nicer is to make next script and start it on boot of your qnap. When you turn the scanner on it will automagically scan the document and saves it in your download folder!:

Code: Select all

#!/bin/bash

while true; do

lsusb | grep 620U -q
testone=$?

if [ "$testone" == "1" ]; then
    echo "Scanner is offline!"
    rm -f  /tmp/scanned
else
  if [ -f /tmp/scanned ]; then
   echo "Scan done!"
  else
   echo "Scanning Image!"
   NOW=$(date  "+%Y-%m-%d_%H-%M-%S")
   scanimage --format=tiff --resolution 75 >"/share/HDA_DATA/Download/scan_$NOW.tiff"
   echo "Scanning Finished"
   touch /tmp/scanned
  fi
fi
sleep 5
done
You do not have the required permissions to view the files attached to this post.
Last edited by JeroenSt80 on Sun Mar 11, 2012 1:45 am, edited 3 times in total.
JeroenSt80
Getting the hang of things
Posts: 62
Joined: Sun Jan 29, 2012 4:40 am
Location: Nearby Eindhoven, The Netherlands

Re: USB scanner server: got it working on Qnap [Update 20110

Post by JeroenSt80 »

Just to make you really happy, this is the init script you can place in

/etc/opt/bin/init.d/S90scanner

Code: Select all

#!/bin/sh
        # Stop daemons
        killall scanshell.sh
        # Start daemons
        /opt/share/sane/snapscan/scanshell.sh &
Last edited by JeroenSt80 on Mon Mar 12, 2012 2:45 pm, edited 2 times in total.
JeroenSt80
Getting the hang of things
Posts: 62
Joined: Sun Jan 29, 2012 4:40 am
Location: Nearby Eindhoven, The Netherlands

Re: USB scanner server: got it working on Qnap [Update 20110

Post by JeroenSt80 »

Making it even more fun convert the tiff to jpg!!!:

ipkg install imagemagick

and use this script

Code: Select all

#!/bin/bash

while true; do

lsusb | grep 620U -q
testone=$?

if [ "$testone" == "1" ]; then
    echo "Scanner is offline!"
    rm -f  /tmp/scanned
else
  if [ -f /tmp/scanned ]; then
   echo "Scan done!"
  else
   echo "Scanning Image!"
   NOW=$(date  "+%Y-%m-%d_%H-%M-%S")
   scanimage --format=tiff --resolution 150 >/share/HDA_DATA/Download/scan.tiff
   convert /share/HDA_DATA/Download/scan.tiff "/share/HDA_DATA/Download/scan_$NOW.jpg"
   echo "Scanning Finished"
   touch /tmp/scanned
  fi
fi
sleep 1
done
nmcaullay
Getting the hang of things
Posts: 86
Joined: Fri Jan 27, 2012 9:01 pm

Re: USB scanner server: got it working on Qnap [Update 20110

Post by nmcaullay »

Hi there, i have installed sane-backend as per instructions, but it turns out my printer/scanner (canon mp280) is not supported in sane-backends 1.0.22. But the 1.0.23git (http://www.sane-project.org/lists/sane- ... ml#S-PIXMA) does support it.

Is there any way to get the un-released sane-backends (1.0.23git) created into an ipkg? Does anyone know who the author is, and even if this is possible?

Cheers, Nathan
horusok
First post
Posts: 1
Joined: Tue May 15, 2012 1:43 pm

Re: USB scanner server: got it working on Qnap [Update 20110

Post by horusok »

Please someone help. What is wrong?
HP m1319MFP
[/opt/etc/xinetd.d] # xinetd -d
12/6/2@20:02:16: DEBUG: 16023 {handle_includedir} Reading included configuration file: /opt/etc/xinetd.d/saned [file=/opt/etc/xinetd.conf] [line=14 ]
Service defaults
Instances = 60
CPS = max conn:25 wait:30
Bind = All addresses.
Only from: 192.168.6.0/255.255.0.0(NET)
No access: No blocked sites
Logging to syslog. Facility = authpriv, level = info
Log_on_success flags = HOST PID
Log_on_failure flags = HOST

Service configuration: saned
id = saned
flags = IPv4
socket_type = stream
Protocol (name,number) = (tcp,6)
port = 6566
wait = no
user = 0
group = 0
Groups = no
PER_SOURCE = -1
Bind = All addresses.
Server = /opt/sbin/saned
Server argv = saned
Only from: 192.168.6.0/255.255.0.0(NET)
No access: No blocked sites
Logging to syslog. Facility = authpriv, level = info
Log_on_success flags = HOST PID
Log_on_failure flags = HOST

12/6/2@20:02:16: ERROR: 16023 {activate_normal} bind failed (Address already in use (errno = 98)). service = saned
12/6/2@20:02:16: ERROR: 16023 {cnf_start_services} Service saned failed to start and is deactivated.
12/6/2@20:02:16: DEBUG: 16023 {cnf_start_services} mask_max = 0, services_started = 0
12/6/2@20:02:16: CRITICAL: 16023 {init_services} no services. Exiting...
thx
chuckster
First post
Posts: 1
Joined: Wed Jun 06, 2012 7:18 am

Re: USB scanner server: got it working on Qnap [Update 20110

Post by chuckster »

Hello, I have a HP DeskJet F370 all-in-one device. I connected it into my QNAP and printing from client machines (both Windows and Linux) is going very well.

Then I wanted to do it the same with scanner, so I followed this topis and stuck on this:

sane-find-scanner

Code: Select all

found USB scanner (vendor=0x03f0 [HP], product=0x5511 [Deskjet F300 series]) at libusb:002:004
scanimage -L

Code: Select all

device `hpaio:/usb/Deskjet_F300_series?serial=CN69GGJ06X04KH' is a Hewlett-Packard Deskjet_F300_series all-in-one
scanimage -T

Code: Select all

process 9017: arguments to dbus_connection_send() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 3141.
This is normally a bug in some application using the D-Bus library.
  D-Bus not built with -rdynamic so unable to print a backtrace
Aborted
When I try to scan from Windows client by SaneTwain sane-frontend or when I use 'scanimage -T', scanner by a second sounds as it's warming up and then it stops...

Also I try to use hplip, but 'hp-scan' ends with:

Code: Select all

error: Unable to locate models.dat file
warning: hp-scan should not be run as root/superuser.

HP Linux Imaging and Printing System (ver. 0.0.0)
Scan Utility ver. 2.2

Copyright (c) 2001-9 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

error: No device selected/specified or that supports this functionality.
I search for models.dat file

Code: Select all

[~] # find /share/HDA_DATA/.qpkg/Optware/ | grep "models.dat"
/share/HDA_DATA/.qpkg/Optware/bin/data/models/models.dat
/share/HDA_DATA/.qpkg/Optware/share/hplip/data/models/models.dat
[~] # ls -l /share/HDA_DATA/.qpkg/Optware/bin/data/models/models.dat
lrwxrwxrwx    1 admin    administ       39 Jun 26 21:38 /share/HDA_DATA/.qpkg/Optware/bin/data/models/models.dat -> /opt/share/hplip/data/models/models.dat
[~] # ls -l /share/HDA_DATA/.qpkg/Optware/share/hplip/data/models/models.dat
-rw-r--r--    1 admin    administ   846131 Feb 14  2012 /share/HDA_DATA/.qpkg/Optware/share/hplip/data/models/models.dat
I don't know why hp-scan doesn't see it and where it search for...

This is my first post and sorry if my english is not very well.
maddhin
Getting the hang of things
Posts: 72
Joined: Sun May 16, 2010 12:40 am

Re: USB scanner server: got it working on Qnap [Update 20110

Post by maddhin »

hi guys,

I do have a question: I have a HP Laserjet 3055 All-in-one device CONNECTED THROUGH LAN which does not support Win7 64bit network scanning. I am planning now to install SANE and access the scanner through SANE in order to be able to scan via LAN.

Is that possible or do I need to connect the printer/scanner via USB to my TS-459 to make it work?

Thanks a lot in advance!
TS-239 Pro II (FW 4.1.0)
TS-459 Pro II (FW 4.0.7)
jmgunzel
Starting out
Posts: 12
Joined: Thu Dec 24, 2009 12:45 am

Re: USB scanner server: got it working on Qnap [Update 20110

Post by jmgunzel »

I could've sworn I did a post in here that I had great success following (mostly) the instructions here.

I very specifically couldn't use my trusty old HP6300 (or so) scanner for my new Win7 x64.

I (again, generally) followed the instructions here and did indeed use Sane as the Win7 client. Worked like a charm.

I don't know what happened to my post (just a few short weeks ago!) but I can repost the very minor quirks I had where I diverged slightly from the various instructions listed here. I believe they were all (and only) a function of reboot tolerance (getting the correct setup of the startup script).

If that would be helpful, I can review my notes and try and post again (who knows what happened to my first post?). I'd posted - or thought I did - more out of thanks to the work of this thread and a very minor touch-up of how I changed an item or two.
felipesalomao
Know my way around
Posts: 134
Joined: Sun Feb 12, 2012 6:45 am

Re: USB scanner server: got it working on Qnap [Update 20110

Post by felipesalomao »

Is that application is for for example, i have HP Printer that have scanner, when i press scan, it show my PC, then i click on it and file is sent automatically to determined folder of my pc, with this app i would be able to choose send scan direct to my qnap nas hard drive ? even with my PC powered off ? Its possible ? Thanks
ensastiga
New here
Posts: 2
Joined: Fri Aug 10, 2012 11:54 pm

USB scanner server: got it working on x86 Qnap 459PROII FW3.

Post by ensastiga »

followed michielske guide and in 20 min I had a working scanner server up and running.

In order to properly setup a Fujitsu ScanSnap S1500 in a x86 QNAP enviroment we need to install the SANE backend (using the 1.21 incarnation ATM), then a daemon will advertise and manage this device as a service in the network @ port 6566. to achieve that the following you will need to:

update your ipkg repository

Code: Select all

ipkg update
Install this 2 packages.

Code: Select all

ipkg install xinetd
ipkg install sane-backends
Then execute the following command

Code: Select all

sane-find-scanner
you'll have this output:

Code: Select all

sane-find-scanner: error while loading shared libraries: libieee1284.so.3: cannot open shared object file: No such file or directory
then install libieee1284 with

Code: Select all

ipkg install libieee1284
go to

Code: Select all

cd /share/MD0_DATA/.qpkg/Optware/etc/xinetd.d
and create here a new file named : saned

Code: Select all

nano ./saned
make that file look like this:

Code: Select all

service saned
{
port = 6566
socket_type = stream
server = /opt/sbin/saned
protocol = tcp
user = admin
group = administrators
wait = no
disable = no
}
add the following line to /etc/services: (services is not writable so we need to copy it first) NOTE: When you just installed sane there is already a line like this, however when you restart Qnap overwrite again and the line is gone

Code: Select all

cp /etc/services /share/MD0_DATA/.qpkg/Optware/services
now you have to edit the copied file:

Code: Select all

nano /share/MD0_DATA/.qpkg/Optware/services
add the saned service at the end of the services file

Code: Select all

saned           6566/tcp                        # SANE network scanner daemon
NEXT, Edit saned.conf:

Code: Select all

cd /share/MD0_DATA/.qpkg/Optware/etc/sane.d

Code: Select all

nano ./saned.conf
add this line at the end of the file for a QNAP NAS that is on the 192.168.1.0 - 192.168.1.255 range :

Code: Select all

192.168.1.0/24 #grant access to scanner from network 192.168.1.x
Change it to you network settings: other example : 10.10.1.0/24 alwasy add /24 ad the end If you want a bigger mask like 255.255.0.0 then use this : 192.168.0.0/16

NEXT: configure Xinetd: browse to :

Code: Select all

cd /share/MD0_DATA/.qpkg/Optware/etc/

Code: Select all

nano ./xinetd.conf
Change the file like below if you are using older firmware versions, on new firmwares this file is already up to date

Code: Select all

defaults {
       only_from      = localhost 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16                 
       instances      = 60
       log_type       = SYSLOG authpriv info
       log_on_success = HOST PID
       log_on_failure = HOST
       cps            = 25 30
}
includedir /opt/etc/xinetd.d

If you want a bigger mask like 255.255.0.0 then use this : 192.168.0.0/16

Now we have only to copy the the new /share/MD0_DATA/.qpkg/Optware/services over the old one after a reboot
Mount the flash partition with:

Code: Select all

mount -t ext2 /dev/sdx6 /tmp/config
Edit the file on:

Code: Select all

nano /tmp/config/autorun.sh
Here I created a another boot script so that I never have to change autorun.sh again because this is a critical operation that retrieves a file stored in the NAS flash
I have added at the end of the file :

Code: Select all

#previous code ........... in the file autorun.sh
/share/MD0_DATA/.qpkg/Optware/startupscript
save the file, make sure it's executable with:

Code: Select all

 chmod +x /tmp/config/autorun.sh
go to the root folder

Code: Select all

 cd /
and DON'T FORGET TO UMOUNT THE FLASH PARTITION ! (VERY IMPORTANT!!!):

Code: Select all

umount /tmp/config
If you follow this procedure then the changes survive a reboot (even a firmware upgrade)

Now we have to create the file /share/MD0_DATA/.qpkg/Optware/startupscript

Code: Select all

nano /share/MD0_DATA/.qpkg/Optware/startupscript
and add this code :

Code: Select all

!/bin/sh
sleep 5 
cp /share/MD0_DATA/.qpkg/Optware/services /etc/services 
sleep 10 
export OPTWARE_TARGET=ts509 
echo "xinetd start" >>/usr/local/share/autorun.log

if [ ! -e "/share/MD0_DATA/.qpkg/Optware/sbin/xinetd" ]; then 
echo "xinetd not accessible" >>/usr/local/share/autorun.log 
fi /sbin/daemon_mgr xinetd start "/share/MD0_DATA/.qpkg/Optware/sbin/xinetd" 2>/dev/null

echo "xinetd started" >>/usr/local/share/autorun.log 
sleep 10
so from now on when you need some startup software to run you only have to change /share/MD0_DATA/.qpkg/Optware/startupscript and never again autorun.sh
to make sure this script is executable:

Code: Select all

chmod 777 /share/MD0_DATA/.qpkg/Optware/startupscript
otherwise it won't run at boot.
connect your usb scanner to Qnap NAS and do

Code: Select all

sane-find-scanner
result:

Code: Select all

 # sane-find-scanner
 # sane-find-scanner will now attempt to detect your scanner. If the
 # result is different from what you expected, first make sure your
 # scanner is powered up and properly connected to your computer.
 # No SCSI scanners found. If you expected something different, make sure that
 # you have loaded a kernel SCSI driver for your SCSI adapter.
found USB scanner (vendor=0x04c5, product=0x11a2) at libusb:002:004
 # Your USB scanner was (probably) detected. It may or may not be supported by
 # SANE. Try scanimage -L and read the backend's manpage.
 # Not checking for parallel port scanners.
 # Most Scanners connected to the parallel port or other proprietary ports
 # can't be detected by this program.
Like you can see it's recognicing the scanner
now open the autofeed tray and do

Code: Select all

scanimage -L
if you get

Code: Select all

device `fujitsu:ScanSnap S1500:45246' is a FUJITSU ScanSnap S1500 scanner
then you are golden!

Now Start the sane daemon manually

Code: Select all

/opt/sbin/xinetd -d
and install and configure on your target system a sane frontend like xsane (http://www.sane-project.org/sane-frontends.html ) to test your installation.
add to the end of your sane.d file the address of your QNAP NAS (i.e. 192.168.1.102). remember, the access port in this guide is the default 6566.

Once this is working you should test the persistence of the service by rebooting your QNAP NAS unit

I'm using this setup with linux, MacOSX, and Android 4.2 without any problem, TS-459 PRO II QNAP FW 3.8.2.

THANKS TO michielske THIS PROCEDURE WAS REALLY EASY!
TS-459 PRO II - WDC WD40EFRX-68WT0N082.0 x4 (RAID5 +HotSpare) - 3GB RAM
alexthevoiceita
New here
Posts: 4
Joined: Sat Feb 01, 2014 2:23 am

Re: USB scanner server: got it working on Qnap [Update 20110

Post by alexthevoiceita »

I've follow your guide and everything seems ok but.... When i try to scan my Canon Pixma MX310 make the right move with the scanner but i can't see any image...

"Error during device I/O"

What can i do?
bendsch
Know my way around
Posts: 238
Joined: Fri Oct 23, 2009 3:20 am

Re: USB scanner server: got it working on Qnap [Update 20110

Post by bendsch »

i got a problem with my samsung scx-3200 scanner, i can't get it working with sane. described the problem here: http://forum.qnap.com/viewtopic.php?f=121&t=63180

cheers, bendsch.
NASmodesl: TS-459 Pro+ , TS-251
jake1981
Getting the hang of things
Posts: 74
Joined: Sun Dec 13, 2015 4:34 am

Re: USB scanner server: got it working on Qnap [Update 20110427]

Post by jake1981 »

Hi.

It's been awhile since last reply to this topic.. Anyway..

I use Qnapware (package providing opkg..) and I was kind of a lazy, since I didn't create my own startup script, I just edited it's script..
Here's how I do it..

Code: Select all

/Apps/opt/etc/init.d/rc.unslung start

# Check if saved service is listed in /etc/services
[ $(cat /etc/services|grep saned|grep 6566/tcp|wc -l) -eq 0 ] && {
	echo "saned     6566/tcp        # Sane network scanner daemon" >> /etc/services
}

# Start xinetd if it's not already running
[ "$(pidof xinetd)" == "" ] && {
	daemon_mgr xinetd start "/Apps/opt/sbin/xinetd -f /Apps/opt/etc/xinetd.conf" 2>/dev/null
}

;;
lines with /Apps/opt/etc/init.d/rc.unslung start and ;; are not part of my script, I just included those lines so people would know where to paste this..
Script is very simple, it gets executed whenever qnapqare starts, and it doesn't add duplicates to /etc/services or restart xinetd. And yes - I did not add a kill command
for xinetd - for what it is worth to me - it may run always..

My xinetd is provided by qnapware, and it has had a wrong prefix when it was compiled, so that's why I need to add -f parameter to point to my configuration file.

---
For using my scanner, I use phpSane. Yes, not a perfect solution, but as I use Mac OS X El Capitan, I have a very poor support for shared scanners. So it's quite good as I am not scanning constantly and very often.
Anyhow.. It was a bit difficult to get it to work, since it requires netpbm - which I couldn't find. So I had to compile it by myself, so here is 3 packages for ARM qnapware.. Since I also compiled gocr (picture to text)..
scan_support_packages.zip
Sorry, I was planning to insert them here one by one, but forum doesn't allow uploading of .ipk so, I zipped them.

Oh, one more thing, if you do it the way I did, or do something similar- use sane from qnapware and install my packages.. Here's a part of configuration for phpsane:

Code: Select all

// system config
// =============
$SCANIMAGE = "/Apps/opt/bin/scanimage"; //scanimage binary (sane)
$GOCR      = "/Apps/opt/bin/gocr";      //optional ocr binary
$PDFUNITE  = "/usr/local/bin/pdfunite"; //optional PDF merge binary
$PNMTOJPEG = "/Apps/opt/bin/pnmtojpeg"; //netpbm pnm to jpeg conversion binary
$PNMTOTIFF = "/Apps/opt/bin/pnmtotiff"; //netpbm pnm to tiff conversion binary
$PNMTOBMP  = "/Apps/opt/bin/ppmtobmp";  //netpbm ppm to bmp conversion binary
$PNMTOPNG  = "/Apps/opt/bin/pnmtopng";  //netpbm pnm to png conversion binary
$CONVERT   = "/usr/local/sbin/convert";   //ImageMagick convert binary
$IDENTIFY  = "/usr/local/sbin/identify";  //ImageMagick binary used to test for PDF support
There you go :) Predefined paths, just copy-paste and you've got it :)

How about some tips for phpSane? Sure, although, all this is covered by reame file..
open your Web share and drag phpsane folder there - with folder name, let's say.. phpsane ?
That sounds like a good and explanatory name, although has no imagination at all..
Telnet/ssh to your NAS and edit phpsane/incl/config.php with copy-paste I shared..

Find line:

Code: Select all

$usr_opt = " --jpeg-quality 0";
And change it to;

Code: Select all

$usr_opt = "";
To phpsane folder, create sub-folders tmp, scanners and output
Then change their modes to 775:

Code: Select all

#chmod 775 tmp
#chmod 775 scanners
#chmod 775 output
Still doesn't work? Yeah, I know.. Enter following command:

Code: Select all

#chmod +s /Apps/opt/bin/scanimage
Congratulations, if you had no issues with your scanner, you should be all set! Browse to http://QNAP_IP/phpsane and start scanning :)
You do not have the required permissions to view the files attached to this post.
Post Reply

Return to “Hardware & Software Compatibility”