Ubuntu and the Canon LiDE 100 Scanner Fix CodeUnit 19 DEC 2010

Earlier this year I treated myself and purchased a Canon LiDE 100 USB Scanner (which ashamedly hasn’t seen all that much use for the rest of the year). As much as I like the little low cost fighter, one of my biggest gripes was that Canon hadn’t released any Linux drivers for the device, and because the code is proprietary, it wasn’t likely to get Linux support any time soon.

Well thankfully all of that has now changed and the wonderful SANE project has gone ahead and added driver support for the Canon LiDE 100… though getting it to work requires a little bit of effort on your part!

First, you need to grab the relevant USB libraries. So open up a terminal and enter:

sudo apt-get install libusb-dev build-essential libsane-dev

Next, grab the SANE backends from GIT. To do this, you need git-core, so:

sudo apt-get install git-core

Using the installed GIT, grab the necessary SANE backends with the following command:

git clone git://git.debian.org/sane/sane-backends.git

This grabs the necessary backends and puts them in a folder called sane-backends located in your home folder. Now switch to this directory and compile:

cd sane-backends
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
sudo make install

Note that the make command might take a while to complete. Anyway, now that everything is installed, only root can currently scan, so we’ll need to change this with some permissions:

sudo gedit /lib/udev/rules.d/40-libsane.rules

Add the following 2 lines to the bottom of the file:

# Canon CanoScan Lide 100
ATTRS{idVendor}==”04a9″, ATTRS{idProduct}==”1904″, ENV{libsane_matched}=”yes”

Save your changes, close gedit and reboot your machine.

And hey presto, all of a sudden Xsane picks up your scanner and you are back in business. Nifty! :)

(Tested on a installation of Ubuntu 10.10 Maverick Meerkat)

Related Posts:

About Craig Lotter

South African software architect and developer at Touchwork. Husband to a cupcake baker and father to two little girls. I don't have time for myself any more.

  • Donald


    cd sane-backends
    ./configure –prefix=/usr –sysconfdir=/etc –localstatedir=/var
    sudo make install


    configure: error: invalid variable name: –prefix
    donald@donald-pc:~/sane-backends$ make
    make: *** No targets specified and no makefile found. Stop.
    donald@donald-pc:~/sane-backends$ sudo make install

    (my email is donald2006@gmail.com)

    • I suggest you enter each line in manually, wait for it to complete and see if you pick up an error on the earlier statments so that we can better debug…

      • Eddenbeer

        Great tutorial, but my scanner still is not recognized.
        I folowed all steps and there wher no errors.
        The only thing is that after folowing the steps I discovered I used the standard ¨Simple scan” instead of Sane.
        After installing sane I tried to redo the steps but all messages state that all is still the newest version.

        I use a Dell Latitude 6500 with Ubuntu 10.10 on a virtual disk (WUBI).
        I hope U can help me.


        • Eddenbeer

          This is the output of sane-find-scanner:

          found USB scanner (vendor=0x04a9 [Canon], product=0x1904 [CanoScan], chip=GL847) at libusb:002:004
          # Your USB scanner was (probably) detected. It may or may not be supported by
          # SANE. Try scanimage -L and read the backend’s manpage.

          But scanimage -L gives the reply: No scanners identified

          • Eddenbeer

            It works
            I had to edit genesys.conf and add the scanner there:

            sudo gedit /etc/sane.d/genesys.conf

            # Canon LiDE 100
            usb 0x04a9 0x1904

    • Marcel

      I also have problems with -prefix.

      The exact error is:
      configure: error: invalid variable name: –prefix

      Any idea?

      • Which version of Ubuntu are you using? I’ve only used this method on Maverick Meerkat, so can’t vouch for other versions. Second, are you copy and pasting the line or typing it in? The reason I ask is you can see that the hyphens are special characters and not just a plain old hyphen, meaning you should rather re-type in the line than copy and paste it directly off the browser.

        • Marcel

          Using 10.10. The problem was with copy-paste.
          As easy as typing it manually.


          • No problem, thought that might have been the case! :)

  • Halo

    Thanks a million for this trick, I have been trying to get this thing to work for months!! Let’s spread the word :)

  • Pingback: Canon Lide 100 Scanner in Ubuntu with sane: Installation & Permission Fixes « Shafiul Azam's Weblog()

  • Mehdi

    What about Ubuntu 11.04. It seems that this should work, but I saw a bug at launch pad that says it doesn’t.

  • Pratik

    pratik@ubuntu:~$ git clone git://git.debian.org/sane/sane-backends.git
    Cloning into sane-backends…
    git.debian.org[0:]: errno=Connection refused
    fatal: unable to connect a socket (Connection refused)

  • Noble

    It worked!!
    Thanks for the help :)

  • Pingback: instalasi scanner « aristopraskab()