PDF de programación - Hacer funcionar un scaner CanoScan LIDE 30 USB: Sane

Imágen de pdf Hacer funcionar un scaner CanoScan LIDE 30 USB: Sane

Hacer funcionar un scaner CanoScan LIDE 30 USB: Sanegráfica de visualizaciones

Publicado el 19 de Septiembre del 2018
527 visualizaciones desde el 19 de Septiembre del 2018
67,6 KB
6 paginas
Creado hace 16a (05/06/2007)
Hacer funcionar un scaner CanoScan LIDE 30 USB: Sane

Hacer funcionar un scaner CanoScan LIDE 30

USB: Sane

Por Paco Aldarias Raya

Impreso: 5 de junio de 2007

Email: pacolinux arroba inicia punto es
Web: http://pagina.de/pacodebian
Con Linux Debian. En Valencia (España)
El documento tiene version .html, y .pdf, cambiando en el navegador la parte

final podrás acceder a ambos.

Este documento es de libre reproducción siempre que se cite su fuente.

Realizado con: LATEX

Índice

Índice

1. Introduccion

2. Instalación

3. Programas para scanear

4. El sistema de ficheros

5. Los dispositivos

6. Reconocimiento del harware

7. Configurar sane

8. Script de arranque y parada

9. Programas para scanear

9.1. gimp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9.2. xsane . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9.3. kooka . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9.4. quiteinsane
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

1

1

1

2

2

2

3

4

4

4
4
5
5
5

Por Paco Aldarias

1/6

Hacer funcionar un scaner CanoScan LIDE 30 USB: Sane

10.Escanear imagenes desde consola

11.Bibliografia

1.

Introduccion

5

5

Vamos a ver como se instala el scanner Canon LIDE 30. Es un scaner usb. Sobre

linux debian sarge.

Mi kernel:

uname -a
Linux aldarias.dyndns.org 2.4.20-xfs #1 SMP Die Dez 10 20:07:25 CET 2002 i686 GNU/Linux

2.

Instalación

apt-get install libsane sane sane-utils xsane-common xsane usbmgr usbutils kooka

Para el scanner:

dpkg -l | grep sane
ii libsane
ii quiteinsane
ii sane
ii sane-utils
ii xsane
ii xsane-common

1.0.15-2
0.10-7
1.0.13-2
1.0.15-2
0.96-1
0.96-1

API library for scanners
A Qt based X11 frontend for SANE (Scanner Ac
scanner graphical frontends
API library for scanners -- utilities
GTK+-based X11 frontend for SANE (Scanner Ac
GTK+-based X11 frontend for SANE (Scanner Ac

Para el usb:

dpkg -l | grep usb
ii libusb-0.1-4
ii libusb-dev
ii usbmgr
ii usbutils
ii usbview

0.1.8-17
0.1.8-17
1.0.0-3
0.11+cvs200411 USB console utilities
1.0-6

USB device viewer

Userspace USB programming library
Userspace USB programming library developmen
User-Mode daemon which loads/unloads USB ker

3. Programas para scanear

dpkg -l |grep xsane
ii xsane
ii xsane-common

0.96-1
0.96-1

GTK+-based X11 frontend for SANE (Scanner Ac
GTK+-based X11 frontend for SANE (Scanner Ac

dpkg -l |grep kooka
ii kooka

3.2.3-1.1

Scanner program for KDE

Por Paco Aldarias

2/6

Hacer funcionar un scaner CanoScan LIDE 30 USB: Sane

0.41-6
2.0.6-1
2.0.6-1
2.0.6-1

dpkg -l |grep gimp
ii babygimp
ii gimp
ii gimp-data
ii gimp1.2
ii gimp1.2-nonfre 1.2.3-2.4
ii gimp1.2-print 4.2.2-pre2-1
ii gimp2.0-quitei 0.3-3
4.2.7-4
ii ijsgimpprint
1.2.5-3
ii libgimp1.2
2.0.6-1
ii libgimp2.0
ii libgimpprint1 4.2.7-4

An icon editor in Perl-Tk
The GNU Image Manipulation Program, stable v
Data files for The GIMP, stable version 2.0
Transitional dummy package for upgrading The
GIF support for the GNU Image Manipulation P
The Print plugin for the GIMP
A Qt based SANE plugin for GIMP 2.0
Inkjet Server - Ghostscript driver for Gimp-
Libraries necessary to run the GIMP, version
Libraries necessary to run the GIMP, stable
The Gimp-Print printer driver library

4. El sistema de ficheros

Añadir al fichero /etc/fstab

none /proc/bus/usb usbfs defaults 0 0

5. Los dispositivos

ll /dev/usbscanner0 /dev/usbscanner /dev/usb/scanner0
lrwxrwxrwx 1 root paco
lrwxrwxrwx 1 root paco
crw-rw---- 1 root paco 180, 48 2002-07-14 07:55 /dev/usb/scanner0

11 2004-03-18 04:32 /dev/usbscanner -> usbscanner0
12 2004-03-18 04:32 /dev/usbscanner0 -> usb/scanner0

Para hacer el nodo del dispositivo /dev/usbscanner con

mknod /dev/usbscanner c 180 48

Deben cambiar los permisos a dicho nodo de dispositivo con

chown root.root /dev/usbscanner
chmod 666 /dev/usbscanner

o algo mas elegante creando un grupo scanner y luego

chown root.scanner /dev/usbscanner
chmod 660 /dev/usbscanner

colocango a los usuarios que usan dicho dispositivo en el grupo scanner.

Por Paco Aldarias

3/6

Hacer funcionar un scaner CanoScan LIDE 30 USB: Sane

6. Reconocimiento del harware

Esto requiere tener conectado el scanner al puerto usb.
lsusb

Bus 002 Device 001: ID 0000:0000
Bus 002 Device 002: ID 04a9:220e Canon, Inc. CanoScan N1240U/LiDE 30
Bus 001 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000

sane-find-scanner -q

found USB scanner (vendor=0x04a9, product=0x220e) at /dev/usb/scanner0
found USB scanner (vendor=0x04a9, product=0x220e) at /dev/usbscanner
found USB scanner (vendor=0x04a9, product=0x220e) at /dev/usbscanner0
found USB scanner (vendor=0x04a9 [Canon], product=0x220e [CanoScan], chip=LM983x?) at libusb:002:002

Hay dos datos importante, que le pasaremos al módulo scanner:

vendor=0x04a9
product=0x220e

Instalar los siguiente modulos del kernel:

modprobe usbserial
modprobe usb-ohci
modprobe usbcore
modprobe scanner vendor=0x04a9 product=0x220e

Editar el fichero /etc/modules.conf y añadir:

alias usbcore off
alias usb-controller usb-ohci
alias usb-controller1 ehci-hcd

7. Configurar sane

Añadir al fichero /etc/sane.d/plustek.conf

[usb] 0x04A9 0x220E
device /dev/usbscanner

8. Script de arranque y parada

#! /bin/bash

case "$1" in
start)
echo Encendiendo el scanner

Por Paco Aldarias

4/6

Hacer funcionar un scaner CanoScan LIDE 30 USB: Sane

modprobe usbserial
modprobe usb-ohci
modprobe usbcore
modprobe scanner vendor=0x04a9 product=0x220e
lsusb
sane-find-scanner -q
usbmgr
;;

stop)
echo Apagando el scanner
rmmod -r -s usbserial
rmmod -r -s usb-ohci
rmmod -r -s usbcore
rmmod -r -s scanner
;;
*)

echo "Uso: scanner.sh start|stop"
exit 1
;;

esac

9. Programas para scanear

9.1.

gimp

Gimp es programa de tratamiento de imágenes, que por si mismo no puede
scanear necesita integrarse con otros programas. La imagen una vez scaneada puede
ser tratada con gimp.

Paquetes: dpkg -l — grep gimp

0.41-6
2.2.3-2
2.2.3-2
2.2.3-2

ii babygimp
ii gimp
ii gimp-data
ii gimp1.2
ii gimp1.2-nonfre 1.2.3-2.4
ii gimp1.2-print 4.2.2-pre2-1
ii gimp2.0-quitei 0.3-3
4.2.7-5
ii ijsgimpprint
1.2.5-3
ii libgimp1.2
ii libgimp2.0
2.2.3-2
ii libgimpprint1 4.2.7-5

An icon editor in Perl-Tk
The GNU Image Manipulation Program
Data files for The GIMP
Transitional dummy package for upgrading The
GIF support for the GNU Image Manipulation P
The Print plugin for the GIMP
A Qt based SANE plugin for GIMP 2.0
Inkjet Server - Ghostscript driver for Gimp-
Libraries necessary to run the GIMP, version
Libraries necessary to run the GIMP
The Gimp-Print printer driver library

9.2. xsane

Programa de scaneo para x

dpkg -l | grep xsane

Por Paco Aldarias

5/6

Hacer funcionar un scaner CanoScan LIDE 30 USB: Sane

ii xsane
ii xsane-common

0.97-3
0.97-3

GTK+-based X11 frontend for SANE (Scanner Ac
GTK+-based X11 frontend for SANE (Scanner Ac

9.3. kooka

Programa de scaneo para kde.

dpkg -l | grep kooka
ii kooka

3.3.2-1

9.4. quiteinsane

Scanner program for KDE

quiteinsane es un programa de scaneo hecho en qt, que puede integrarse en gimp
Paquetes instalados:

ii gimp2.0-quitei 0.3-3
ii quiteinsane

0.10-7

A Qt based SANE plugin for GIMP 2.0
A Qt based X11 frontend for SANE (Scanner Ac

10. Escanear imagenes desde consola

scanimage

--mode Lineart -x 215 -y 297 --resolution 300 > image.png

11. Bibliografia

1. Pagina oficial de sane

http://www.sane-project.org/

2. he Scanner HOWTO

http://tldp.org/HOWTO/Scanner-HOWTO/interfaces.html#OSSUPPORT

3. Cómo conseguir que funcione el scanner AGFA SNAPSCAN 1212 USB

http://siris.binissalem.net/Manuales/Agfa-Snapscan-USB/

4. HOWTO: UDEV/SCSI Scanner Configuration

http://www.ubuntuforums.org/archive/index.php/t-11718.html

Por Paco Aldarias

6/6
  • Links de descarga
http://lwp-l.com/pdf13550

Comentarios de: Hacer funcionar un scaner CanoScan LIDE 30 USB: Sane (0)


No hay comentarios
 

Comentar...

Nombre
Correo (no se visualiza en la web)
Valoración
Comentarios...
CerrarCerrar
CerrarCerrar
Cerrar

Tienes que ser un usuario registrado para poder insertar imágenes, archivos y/o videos.

Puedes registrarte o validarte desde aquí.

Codigo
Negrita
Subrayado
Tachado
Cursiva
Insertar enlace
Imagen externa
Emoticon
Tabular
Centrar
Titulo
Linea
Disminuir
Aumentar
Vista preliminar
sonreir
dientes
lengua
guiño
enfadado
confundido
llorar
avergonzado
sorprendido
triste
sol
estrella
jarra
camara
taza de cafe
email
beso
bombilla
amor
mal
bien
Es necesario revisar y aceptar las políticas de privacidad