Scanner not working in Debian

I have a Trust Easy Connect 19200 Plus parallel port scanner, and I’ve been trying to get that to work under Linux. I found this link about the little brother of my scanner. As it says in that document, the latest version of sane (Scanner Access Now Easy) has native support for this scanner, so I downloaded and installed version 1.0.11 of the backends and 1.0.10 of the frontends.


Next, as it says in the above document, you first have to configure sane. Just edit your dll.conf (in /usr/local/etc/sane.d/) to make sure it contains a line with mustek_pp, which is the driver for this scanner.
Also edit the file mustek_pp.conf in the same directory, to configure the name and type of the scanner, and the parallel port it is connected to.
Then, as root, type scanimage -L, and you should see some output telling you your scanner has been found. Unlike what it says in the document, you don’t have to set the SANE_DEBUG_MUSTEK_PP environment variable.

As root, I can now use xsane, or xscanimage (or probably GIMP also) to scan…
However, as normal user, I cannot get it to work!

I have edited my /etc/inetd.conf and /etc/services exactly as is described in the document. Now, when I run scanimage -L, or any of the other programs, I see that /usr/local/sbin/saned is being run… But still, I get an error that no scanner can be found!
Maybe it has to do with the permissions for the parallel port, but I don’t know what I can do about it. The saned is being run as root, so that should work fine, shouldn’t it?
I have tried giving scanimage suid root, and then it does work, but there should be a better way, I think…
If anybody can tell me how, please let me know!

Update: My scanner is working now. Don’t laugh… The problem was, I got a “Connection refused from 127.0.0.1″ in my syslog. So I had to add localhost to my /etc/hosts.allow. That was it.

Now, if you run scanimage -L as root, you get 2 scanners, both the parallel port (mustek_pp:Trust Easy Connect…) and the network scanner (net:localhost:mustek_pp:Trust Easy Connect…). As normal user, this network scanner is of course the only available scanner, because you need root permissions to access the parallel port.

Tags: , ,

Tuesday, March 18th, 2003 Computing

2 Comments to Scanner not working in Debian

  1. Hey Benjamin, thanks for mentioning this in your blog as I was getting the exact same problem with my recent install of Mandrake 9.2 – couldn’t get xsane to see my g/f’s Agfa Snapscan E20 despite it showing up on sane-find-scanners and the like.

    I’d edited snapscan.conf to reference the firmware driver (that cured the ‘invalid argument’ error at least) and tried explicitly referencing the scanner path in the same file but scanimage -L was still turning up a blank. I was pretty much at my wits’ end when I googled up your blog.

    Sure enough I found that xsane would run under root, but not under a user permission and a quick addition of ‘ALL:localhost’ to /etc/hosts.allow cured the problem – and my g/f’s concerns about my geek credentials have allayed for now.

    Regards
    Luke

  2. Luke Silburn on February 16th, 2004
  3. Hi, i’m trying to get the same scanner to work with SuSE 10, but the path /usr/local/etc doesn’t exist…any ideas?!

  4. Nathan Lindsell on September 29th, 2006

Leave a comment

Search

 

Categories

Archives

Creative Commons License
This work is licensed under a
Creative Commons License.