Email: pacolinux arroba inicia punto es
Web: http://aldarias.es/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
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
apt-get install libsane sane sane-utils xsane-common xsane usbmgr usbutils kooka
Para el scanner:
dpkg -l | grep sane ii libsane 1.0.15-2 API library for scanners ii quiteinsane 0.10-7 A Qt based X11 frontend for SANE (Scanner Ac ii sane 1.0.13-2 scanner graphical frontends ii sane-utils 1.0.15-2 API library for scanners -- utilities ii xsane 0.96-1 GTK+-based X11 frontend for SANE (Scanner Ac ii xsane-common 0.96-1 GTK+-based X11 frontend for SANE (Scanner Ac
Para el usb:
dpkg -l | grep usb ii libusb-0.1-4 0.1.8-17 Userspace USB programming library ii libusb-dev 0.1.8-17 Userspace USB programming library developmen ii usbmgr 1.0.0-3 User-Mode daemon which loads/unloads USB ker ii usbutils 0.11+cvs200411 USB console utilities ii usbview 1.0-6 USB device viewer
dpkg -l |grep xsane ii xsane 0.96-1 GTK+-based X11 frontend for SANE (Scanner Ac ii xsane-common 0.96-1 GTK+-based X11 frontend for SANE (Scanner Ac
dpkg -l |grep kooka ii kooka 3.2.3-1.1 Scanner program for KDE
dpkg -l |grep gimp ii babygimp 0.41-6 An icon editor in Perl-Tk ii gimp 2.0.6-1 The GNU Image Manipulation Program, stable v ii gimp-data 2.0.6-1 Data files for The GIMP, stable version 2.0 ii gimp1.2 2.0.6-1 Transitional dummy package for upgrading The ii gimp1.2-nonfre 1.2.3-2.4 GIF support for the GNU Image Manipulation P ii gimp1.2-print 4.2.2-pre2-1 The Print plugin for the GIMP ii gimp2.0-quitei 0.3-3 A Qt based SANE plugin for GIMP 2.0 ii ijsgimpprint 4.2.7-4 Inkjet Server - Ghostscript driver for Gimp- ii libgimp1.2 1.2.5-3 Libraries necessary to run the GIMP, version ii libgimp2.0 2.0.6-1 Libraries necessary to run the GIMP, stable ii libgimpprint1 4.2.7-4 The Gimp-Print printer driver library
Añadir al fichero /etc/fstab
none /proc/bus/usb usbfs defaults 0 0
ll /dev/usbscanner0 /dev/usbscanner /dev/usb/scanner0 lrwxrwxrwx 1 root paco 11 2004-03-18 04:32 /dev/usbscanner -> usbscanner0 lrwxrwxrwx 1 root paco 12 2004-03-18 04:32 /dev/usbscanner0 -> usb/scanner0 crw-rw---- 1 root paco 180, 48 2002-07-14 07:55 /dev/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.
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
Añadir al fichero /etc/sane.d/plustek.conf
[usb] 0x04A9 0x220E device /dev/usbscanner
#! /bin/bash case "$1" in start) echo Encendiendo el scanner 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
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
ii babygimp 0.41-6 An icon editor in Perl-Tk ii gimp 2.2.3-2 The GNU Image Manipulation Program ii gimp-data 2.2.3-2 Data files for The GIMP ii gimp1.2 2.2.3-2 Transitional dummy package for upgrading The ii gimp1.2-nonfre 1.2.3-2.4 GIF support for the GNU Image Manipulation P ii gimp1.2-print 4.2.2-pre2-1 The Print plugin for the GIMP ii gimp2.0-quitei 0.3-3 A Qt based SANE plugin for GIMP 2.0 ii ijsgimpprint 4.2.7-5 Inkjet Server - Ghostscript driver for Gimp- ii libgimp1.2 1.2.5-3 Libraries necessary to run the GIMP, version ii libgimp2.0 2.2.3-2 Libraries necessary to run the GIMP ii libgimpprint1 4.2.7-5 The Gimp-Print printer driver library
Programa de scaneo para x
dpkg -l | grep xsane ii xsane 0.97-3 GTK+-based X11 frontend for SANE (Scanner Ac ii xsane-common 0.97-3 GTK+-based X11 frontend for SANE (Scanner Ac
dpkg -l | grep kooka ii kooka 3.3.2-1 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 A Qt based SANE plugin for GIMP 2.0 ii quiteinsane 0.10-7 A Qt based X11 frontend for SANE (Scanner Ac
scanimage --mode Lineart -x 215 -y 297 --resolution 300 > image.png
This document was generated using the LaTeX2HTML translator Version 2002-2-1 (1.71)
Copyright © 1993, 1994, 1995, 1996,
Nikos Drakos,
Computer Based Learning Unit, University of Leeds.
Copyright © 1997, 1998, 1999,
Ross Moore,
Mathematics Department, Macquarie University, Sydney.
The command line arguments were:
latex2html scanner -split 0 -local_icons 1 -show_section_numbers -no_auto_link -no_navigation
The translation was initiated by Paco on 2007-06-05