I am quite sure that nobody cares about this except for me, unless they happen to have a similar scanner to mine. I’ve had to do this process about 5 times now on different installs. I can guarantee that it works for Fedora, Debian, Ubuntu and Mint. I thought i’d share it because i’ll probably need it again and someone else might find it helpful.
First you need xsane to be able to scan things at all.
sudo apt-get install xsane
Plug in your scanner by USB. Attempt to scan by typing
scanimage. It won’t work, but you need to see the error message.
scanimage [gt68xx] Couldn't open firmware file (`/usr/share/sane/gt68xx/PS1Dfw.usb'): No such file or directory scanimage: open of device gt68xx:libusb:004:002 failed: Invalid argument
See that PS1Dfw.usb? You need to get that file from http://meier-geinitz.de/sane/gt68xx-backend/ but be aware that your computer might ask for a different file such as ps1fw.usb or ps1fw.usb. Whichever it is, find it on the page and click it to download.
Assuming it’s gone into your Downloads folder, move it to the right place.
sudo mv ~/Downloads/PS1Dfw.usb /usr/share/sane/gt68xx
Now try the
scanimage command again. With any luck your scanner will burst into life and a whole load of crazy gobbledegook will splurge into your terminal window. This is the picture your scanner is seeing, trying to be displayed as text! Don’t be afraid to Ctrl-C to stop it once you see it working. Or you can just wait for it to finish.
You can also do this to ensure that your scanner is configured correctly:
scanimage -L device `gt68xx:libusb:004:002' is a Mustek Bearpaw 1200 CU Plus flatbed scanner
Now to actually scan something! Open up The Gimp and click File -> Create -> XSane -> gt68xx:libusb:004:002
It comes up with this super ugly XSane interface, where you can make a preview, choose the scan area, fiddle with the colour settings and DPI settings, and scan an image.
When it’s done, it’ll come back to The Gimp ready for you to edit the scanned image.
Protip: If you lose one or more of the XSane windows, you can get them back again by going to the Window menu of XSane and ticking on the ones you need.