Linux Scanner Server

ho0k3r
Posts: 11
Joined: Sat Jan 16, 2010 5:53 am

Linux Scanner Server

Postby ho0k3r » Sat Jan 16, 2010 6:04 am

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?

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: Linux Scanner Server

Postby cpg » Sun Jan 17, 2010 1:35 am

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
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

ho0k3r
Posts: 11
Joined: Sat Jan 16, 2010 5:53 am

Re: Linux Scanner Server

Postby ho0k3r » Tue Jan 19, 2010 12:43 pm

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

ceayuso
Posts: 14
Joined: Sun Jan 18, 2009 7:35 pm

Re: Linux Scanner Server

Postby ceayuso » Wed Jan 20, 2010 6:02 pm

I got this working through some trial and error. As root, I made apache the owner of all the scanner directories/files.

Code: Select all

cd /var/hda/web-apps chown -R apache:apache scanner
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:

Code: Select all

none /dev/bus/usb usbfs auto,devmode=0666 0 0
Then, from the command line:

Code: Select all

mount -a
After that I was able to scan as a non-root user:

Code: Select all

scanimage --format=ppm >scan-test.ppm
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.

ho0k3r
Posts: 11
Joined: Sat Jan 16, 2010 5:53 am

Re: Linux Scanner Server

Postby ho0k3r » Thu Jan 21, 2010 9:05 am

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.

Khelmar
Posts: 21
Joined: Sat Aug 29, 2009 9:41 am

Re: Linux Scanner Server

Postby Khelmar » Mon Jan 25, 2010 7:08 am

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

mciv
Posts: 70
Joined: Mon Feb 02, 2009 9:52 am
Location: Augusta, ME

Re: Linux Scanner Server

Postby mciv » Sat Jan 30, 2010 11:02 am

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.

ceayuso
Posts: 14
Joined: Sun Jan 18, 2009 7:35 pm

Re: Linux Scanner Server

Postby ceayuso » Sun Jan 31, 2010 1:43 pm

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:

Code: Select all

/var/hda/web-apps/scanner /html /config /scans /logs
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.

User avatar
apitsos
Posts: 1
Joined: Sun Oct 31, 2010 6:24 am
Location: Athens, Greece
Contact:

Re: Linux Scanner Server

Postby apitsos » Sun Oct 31, 2010 6:28 am

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!
Anything can be achieved!

pla.NET.gr | web hosting, web design & domain names

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Linux Scanner Server

Postby bigfoot65 » Sun Oct 31, 2010 6:59 am

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.
ßîgƒσστ65
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 13 guests