Linux Scanner Server
Linux Scanner Server
I'm not sure what I am doing wrong. I ran through the setup and it even finds my scanner but when I try to scan it does nothing. Can someone help me out?
Re: Linux Scanner Server
if you could post more details, it would help a lot.
can you see any details in /var/log/messages?
what do you do to start a scan? what program?
can you look for other logs somewhere?
i seem to recall there were some issues with permissions. did you check that?
see the scanner server wiki page
can you see any details in /var/log/messages?
what do you do to start a scan? what program?
can you look for other logs somewhere?
i seem to recall there were some issues with permissions. did you check that?
see the scanner server wiki page
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1
Re: Linux Scanner Server
Below is my error_log for the scanner server. It looks like there are errors but it kind of gibberish to me. hopefully someone can make sense of it.
Code: Select all
[Tue Jan 19 14:34:51 2010] [error] [client 192.168.1.138] /var/hda/web-apps/scanner/html/index.cgi: line 99: [: =: unary operator expected, referer: http://hda/setup?sub=available&tab=app
[Tue Jan 19 14:34:51 2010] [error] [client 192.168.1.138] /var/hda/web-apps/scanner/html/index.cgi: line 131: [: =: unary operator expected, referer: http://hda/setup?sub=available&tab=app
[Tue Jan 19 14:34:51 2010] [error] [client 192.168.1.138] cat: , referer: http://hda/setup?sub=available&tab=app
[Tue Jan 19 14:34:51 2010] [error] [client 192.168.1.138] config/scanners.conf, referer: http://hda/setup?sub=available&tab=app
[Tue Jan 19 14:34:51 2010] [error] [client 192.168.1.138] : No such file or directory, referer: http://hda/setup?sub=available&tab=app
[Tue Jan 19 14:34:51 2010] [error] [client 192.168.1.138] , referer: http://hda/setup?sub=available&tab=app
[Tue Jan 19 14:34:51 2010] [error] [client 192.168.1.138] /var/hda/web-apps/scanner/html/index.cgi: line 197: [: =: unary operator expected, referer: http://hda/setup?sub=available&tab=app
[Tue Jan 19 14:34:51 2010] [error] [client 192.168.1.138] /var/hda/web-apps/scanner/html/index.cgi: line 205: [: =: unary operator expected, referer: http://hda/setup?sub=available&tab=app
[Tue Jan 19 14:34:55 2010] [error] [client 192.168.1.138] /var/hda/web-apps/scanner/html/index.cgi: line 132: [: =: unary operator expected, referer: http://scanner.ho0k3r.com/
[Tue Jan 19 14:34:55 2010] [error] [client 192.168.1.138] /var/hda/web-apps/scanner/html/index.cgi: line 144: [: =: unary operator expected, referer: http://scanner.ho0k3r.com/
[Tue Jan 19 14:35:00 2010] [error] [client 192.168.1.138] /var/hda/web-apps/scanner/html/index.cgi: line 149: [: too many arguments, referer: http://scanner.ho0k3r.com/index.cgi?page=config
[Tue Jan 19 14:35:04 2010] [error] [client 192.168.1.138] /var/hda/web-apps/scanner/html/index.cgi: line 174: [: too many arguments, referer: http://scanner.ho0k3r.com/index.cgi?page=config&action=Search+For+Scanners
[Tue Jan 19 14:35:04 2010] [error] [client 192.168.1.138] cat: , referer: http://scanner.ho0k3r.com/index.cgi?page=config&action=Search+For+Scanners
[Tue Jan 19 14:35:04 2010] [error] [client 192.168.1.138] config/settings.conf, referer: http://scanner.ho0k3r.com/index.cgi?page=config&action=Search+For+Scanners
[Tue Jan 19 14:35:04 2010] [error] [client 192.168.1.138] : No such file or directory, referer: http://scanner.ho0k3r.com/index.cgi?page=config&action=Search+For+Scanners
[Tue Jan 19 14:35:04 2010] [error] [client 192.168.1.138] , referer: http://scanner.ho0k3r.com/index.cgi?page=config&action=Search+For+Scanners
[Tue Jan 19 14:35:04 2010] [error] [client 192.168.1.138] sed: -e expression #1, char 52: unknown option to `s', referer: http://scanner.ho0k3r.com/index.cgi?page=config&action=Search+For+Scanners
[Tue Jan 19 14:35:04 2010] [error] [client 192.168.1.138] /var/hda/web-apps/scanner/html/index.cgi: line 197: [: =: unary operator expected, referer: http://scanner.ho0k3r.com/index.cgi?page=config&action=Search+For+Scanners
[Tue Jan 19 14:35:04 2010] [error] [client 192.168.1.138] /var/hda/web-apps/scanner/html/index.cgi: line 205: [: =: unary operator expected, referer: http://scanner.ho0k3r.com/index.cgi?page=config&action=Search+For+Scanners
[Tue Jan 19 14:35:06 2010] [error] [client 192.168.1.138] /var/hda/web-apps/scanner/html/index.cgi: line 132: [: =: unary operator expected, referer: http://scanner.ho0k3r.com/index.cgi?page=scan
[Tue Jan 19 14:35:06 2010] [error] [client 192.168.1.138] /var/hda/web-apps/scanner/html/index.cgi: line 144: [: =: unary operator expected, referer: http://scanner.ho0k3r.com/index.cgi?page=scan
Re: Linux Scanner Server
I got this working through some trial and error. As root, I made apache the owner of all the scanner directories/files.
I also had to make a change to fstab to get "scanimage" to work for a normal user. I added this line to /etc/fstab:
Then, from the command line:
After that I was able to scan as a non-root user:
When that worked, I was able to use scannerserver.
Try those and see if they help. It's nice to be able to scan from my Windows computers.
Code: Select all
cd /var/hda/web-apps
chown -R apache:apache scanner
Code: Select all
none /dev/bus/usb usbfs auto,devmode=0666 0 0
Code: Select all
mount -a
Code: Select all
scanimage --format=ppm >scan-test.ppm
Try those and see if they help. It's nice to be able to scan from my Windows computers.
Re: Linux Scanner Server
I got it working. It doesn't account for long names for the scanner. In my scanner.conf it showed my scanner as Canon CanoScan N650u/N660u USB Scanner I changed it to just canon and it started working. To prevent it from being changed back to the old name I ran chmod 444 scanner.conf
Thanks for everyone's help.
Thanks for everyone's help.
Re: Linux Scanner Server
The biggest problem I had when trying to package this was that Fedora, for some reason, has pretty screwed-up default permissions on USB devices. If normal users can scan with scanimage, it generally works pretty well, although I didn't have the long name problem described here (since mine came up as "scanner", I think).
Interestingly, the author of the script references the Amahi Wiki page on his website for folks having permission issues.
You might post something about the problem with the long scanner name at his website so he can take a look at fixing it -
http://scannerserver.online02.com/node/4
Interestingly, the author of the script references the Amahi Wiki page on his website for folks having permission issues.
You might post something about the problem with the long scanner name at his website so he can take a look at fixing it -
http://scannerserver.online02.com/node/4
Re: Linux Scanner Server
I've been trying to get this working as well but keep getting the same error messages that ho0k3r posted. I've tried running the install script as well as going through the manual steps on the wiki page but no success. The scanners.conf file stays empty. The scanner is a Canoscan LDie30 and it does work using the scanimage command as a regular user. While not an urgent application for me it would be a nice addition. I'm just not sure where to look next.
Re: Linux Scanner Server
I know you've probably tried this but did you "configure" the scanner on the Scanner Server page? Mine didn't work until a settings.conf file was created. My only other thought is to make sure the directory permissions allow access to a normal user.
I couldn't find the link to the script so I installed ScannerServer directly and put everything in the appropriate directories. What I have:
All my directories are owned by apache:apache.
I have a Brother MFC-6800 and the long name didn't seem to be an issue for me. It shows up as "Brother MFC-6800 USB scanner" in the drop down on the Scanner Server page.
I couldn't find the link to the script so I installed ScannerServer directly and put everything in the appropriate directories. What I have:
Code: Select all
/var/hda/web-apps/scanner
/html
/config
/scans
/logs
I have a Brother MFC-6800 and the long name didn't seem to be an issue for me. It shows up as "Brother MFC-6800 USB scanner" in the drop down on the Scanner Server page.
Re: Linux Scanner Server
Dear friends,
Do you where could I found a complete guide, of how to install "Linux Scanner Server" on Amahi (http://www.amahi.org/apps/linux-scanner-server), as I searched the web and I found almost nothing.
I see that this application is on the upcoming section, but I believe that i could install the 1.1.9 version available at "http://scannerserver.online02.com/".
I also tried to follow the instruction I found on the wiki section of amahi.org (http://wiki.amahi.org/index.php/Scanner_Server), but I couldn't do anything.
I would appreciate any kind of help on this.
Thanks a lot in advance!
Do you where could I found a complete guide, of how to install "Linux Scanner Server" on Amahi (http://www.amahi.org/apps/linux-scanner-server), as I searched the web and I found almost nothing.
I see that this application is on the upcoming section, but I believe that i could install the 1.1.9 version available at "http://scannerserver.online02.com/".
I also tried to follow the instruction I found on the wiki section of amahi.org (http://wiki.amahi.org/index.php/Scanner_Server), but I couldn't do anything.
I would appreciate any kind of help on this.
Thanks a lot in advance!
Re: Linux Scanner Server
Hello,
You won't find one. What you have found in the wiki is the latest documentation.There might be something for Fedora or or on the author's website for installation.
This is currently packaged as an Amahi one-click app, but still undergoing beta testing. It has not been released for public use until we get all the bugs worked out. There is no estimated time of when this will be with the current development of Amahi for Fedora 14.
We are a very small team of volunteers and our workload priority has us focused on other tasks at the moment. If you could get it working and could update the documentation, that would be great.
You won't find one. What you have found in the wiki is the latest documentation.There might be something for Fedora or or on the author's website for installation.
This is currently packaged as an Amahi one-click app, but still undergoing beta testing. It has not been released for public use until we get all the bugs worked out. There is no estimated time of when this will be with the current development of Amahi for Fedora 14.
We are a very small team of volunteers and our workload priority has us focused on other tasks at the moment. If you could get it working and could update the documentation, that would be great.
ßîgƒσστ65
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Who is online
Users browsing this forum: No registered users and 65 guests