Install sane:
sudo aptitude install sane sane-utilsThen find out where your scanner resides:
sane-find-scannerYou're interested in the series of usb ports that your usb is connected to:
found USB scanner (vendor=0x03f0 [hewlett packard],In my case, the scanner is plugged into usb port 007 and subport 006 (I have no idea if that's the proper way to talk about it, but you'll see that it will work to think like that)
product=0x4105 [hp scanjet], chip=rts8822L-01H?) at libusb:007:006
Then, you need the driver for your scanner, so go to the sane supported devices page and find your scanner. You access the driver by clicking under the 'Backend' link.
At least in theory, this driver is supposed to be in the sane-backends distribution. I'm not sure where to get it (already come with sane?). Anyway, my device wasn't really recognized when firing up 'xsane' until I downloaded and installed the driver.
Now, we have to set the permissions such that we can access our scanner. Notice that we use the the usb port information gleaned about to accomplish this:
sudo chmod a+rw /proc/bus/usb/007/006A person is supposed to be able to automate that process, but I haven't figured it out yet. In any case, we can now fire up sane with the command 'xsane' or install 'gimp2.0-quiteinsane' to access from within gimp.