Sunday, February 25, 2007

Making Sense of SANE and the EPSON 3490 PHOTO Scanner

My scanner, the EPSON PERFECTION 3490 PHOTO is finally working with my Debian installation. The path to success was a circuitous one. Hopefully my notes will make your install a bit easier.

Summary:
1. Install SANE
2. Download and move scanner firmware into /usr/share/iscan
3. Edit dll.conf to use snapscan
4. Edit snapscan.conf to point at the firmware from step 2
5. run xsane

Scanning in Linux is anything but SANE, but that is the first requirement. Make sure sane is installed and xsane using your favorite utility (I use aptitude.) While your at it, also grab some dev packages:

libsane-dev
libsane-extras-dbg
libsane-extras-dev

Although not strictly required I was unable to compile iscan (a front end variant) without them.
Iscan may not be necessary if you are happy with xsane, but most people who managed to get this scanner working in Linux appeared to have installed it along the way... so I did too.
Get iscan: http://www.avasys.jp/english/linux_e/dl_scan.html
You will have to answer a few questions before reaching a download page with a few rpms and one gzip file. Get them all. I also had to install some necessary libraries to get the software to ./configure ; make ; make install properly.

Iscan is a pain. Along the way I discovered it could not find all the libs it installs; so you must add them to the path environment variable:

$ export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib"

This scanner requires firmware. I found it inside this rpm: ftp://fr.rpmfind.net/linux/SuSE-Linux/i386/10.1/SUSE-Linux10.1-GM-Extra/suse/i586/iscan-firmware-1.18.0.1-10.i586.rpm
Make sure you have rpm2cpio installed, then:

$ rpm2cpio <>/usr/share/iscan/* /usr/share/iscan

Edit /etc/sane.d/dll.conf and comment all lines except for the "snapscan"
Edit snapscan.conf and add a path to your firmware near the top (this file is well commented)
firmware /usr/share/iscan/esfw52.bin
Now your scanner should be accessible to xsane:
$ xsane &
Enjoy!

2 comments:

Solarisis said...

good helpful comments. Some time ago I needed to scan stuff and was frustrated trying to use Xsane on a public linux terminal; finally i switched to windows to get the job done ...

Tells us there are things that we need to work on, both from as an individual and as a community...

Solarisis said...

not a comment to this post... i am doing well.. how r u doing?.. just reflected on life and wrote the last one... but u had some interesting thoughts..