Installing a USB scanner under Mandrake 10.1

December 2016



Issue


If your USB scanner does not work under Mandrake 10.1 Community (and possibly other versions) follow the instructions below:
  • If you have not connected your scanner when installing Mandrake 10.1, restart installation using installation CDs, but this time make sure that your scanner is connected to your PC.
  • Mandrake 10.1 will detect scanner, but it may happen that the device is not recognized by the software you will be using. The following error message will be displayed "Sane is not available on your system".
  • Sane is actually available on your system, but it doesn't include the necessary driver to operate the scanner.
    • Do not attempt to install SANE: it is already installed!
  • You might be tempted to install Sane and Xsane using Gurpmi. But Linux will probably indicate that Sane is already installed. Still nothing work!

Solution


Check your directories using the Console/Terminal:
  • Under KDE: Click on "Session" > "Midnight Commander as Supervisor" mode and type your supervisor password.
  • Otherwise, use the Unix commands (ls, pwd, cd, etc.. use the man command for the syntax and various options).

Move throught the directories by clicking on ".. /"
  • /home/<username>/ : there is a /sane directory and within it your will find the /xsane directory (empty)
  • /usr/local : there is a /sane. directory in which there is nothing, except the "tar-gz" files you have downloaded.
  • /etc: You will find the /etc/sane.d directory, in which there are many configuration files for different scanners.You will find several files corresponding to the brand of your scanner. There are 3 files for each of the scanner brands, each corresponding to a connection method: *Parallel
  • USB
  • SCSI.

Search for your scanner:
In a terminal, type the following command: « sane-find-scanner ».
You should get something like this:
# mustek_usb.conf: Configuration file for Mustek USB scanner 
# Read man sane-mustek_usb for documentation 
# If USB errors occur, using this option may help 
#option max_block_size 1024 
# Autodetect 1200 UB and Trust Compact Scan USB 19200 
usb 0x055f 0x0006 
# Autodetect 1200 USB (not supported) 
# usb 0x055f 0x0003 
# Autodetect 1200 CU 
usb 0x055f 0x0001 
# Autodetect 1200 CU Plus 
usb 0x055f 0x0008 
# Autodetect 600 CU 
usb 0x055f 0x0002 
# Autodetect 600 USB (not supported) 
usb 0x055f 0x0873 
# If autodetection doesn>#option 600cu 

In this case we see that the "Mustek 2400TA» scanner is not supported. And it is clear that the Trust scanners are actually the same as the Mustek brand.
It is necessary edit the conf file:
Before ' # If autodetection doesn't work- "
  • type " # Autodetect 2400 TA Plus "
  • Add a new line "usb 0x055f 0x0219". (For your scanner type:usb <VIP> <PID>)

After "#/dev/usb/scanner0" enter « #option 2400ta_plus »
  • In fact the lines beginning with # are comment lines, but will be used to Linux to create various message.
  • The most important line is the one that does not begin with #. It is a command line!

Install the driver:
There are two stages:
  • Determine where the driver must be installed and if a directory must be created.
  • Indicate to Linuz where to fetch the driver, when the USB scanner is connected

Open a "console" switch to superuser mode by typing "su", enter the root password (the prompt should change from # to $).
  • Type the following command: mkdir /usr/share/sane/gt68x
  • Give write, read and execute access(wrx): chmod 755 usr/share/sane/gt68x
  • Copy the driver in this directory:

cp / home/<Username>/<Directory_in_which_driver_has_been_downloaded>/<Name_of_driver> usr/share/sane/gt68xx
  • Give write, read and execute access: chmod 755 usr/share/sane/gt68x/<Name_of_driver>


After these operations your scanner should be activated. If you have properly installed GIMP or xsane, you will can use your scanner without a problem.

Gilles Pichavant
http://www.meier-geinitz.de/kernel/scanner.txt
http://www.sane-project.org/

Related :

This document entitled « Installing a USB scanner under Mandrake 10.1 » from CCM (ccm.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.