Diff for /wikisrc/scanner.mdwn between versions 1.1 and 1.2

version 1.1, 2011/06/20 10:35:57 version 1.2, 2011/06/20 10:53:46
Line 12  To connect a USB scanner do: Line 12  To connect a USB scanner do:
   
 2. Make /dev/ugen0 usable through removal of uscanner from the kernel config by commenting it:  2. Make /dev/ugen0 usable through removal of uscanner from the kernel config by commenting it:
   
         # cd /usr/src/sys/arch/i386/conf          # cd /usr/src/sys/arch/i386/conf
         # cp GENERIC GENERIC_UGEN          # cp GENERIC GENERIC_UGEN
   
     Comment out the uscanner device:      Comment out the uscanner device:
   
         # vi GENERIC_UGEN          # vi GENERIC_UGEN
   
     by using '#' so it looks like:      by using '#' so it looks like:
   
         # USB scanners          # USB scanners
         # uscanner* at uhub? port ?          # uscanner* at uhub? port ?
   
     Then, continue to config, make and install the new kernel:      Then, continue to config, make and install the new kernel:
   
          # config GENERIC_UGEN          # config GENERIC_UGEN
          # cd ../compile/GENERIC_UGEN          # cd ../compile/GENERIC_UGEN
          # make depend          # make depend
          # make          # make
          # cp netbsd /netbsd.ugen          # cp netbsd /netbsd.ugen
          # cp /netbsd /netbsd.old          # cp /netbsd /netbsd.old
          # cp netbsd /netbsd          # cp netbsd /netbsd
          # shutdown -r now          # shutdown -r now
   
 3. Add the [SANE](http://www.sane-project.org/) packages to the system:  3. Add the [SANE](http://www.sane-project.org/) packages to the system:
   
          # cd /usr/pkgsrc/graphics/sane-backend          # cd /usr/pkgsrc/graphics/sane-backend
          # make install          # make install
          # cd ../sane-frontend          # cd ../sane-frontend
          # make install          # make install
          # cd ../xsane          # cd ../xsane
          # make install          # make install
   
 4. Connect the USB scanner and check if it's recognized:  4. Connect the USB scanner and check if it's recognized:
   
          # sane-find-scanner          # sane-find-scanner
   
     When the scanner is found, check if it is correctly supported and usable:      When the scanner is found, check if it is correctly supported and usable:
   
          # scanimage -L          # scanimage -L
   
     Some scanners (e.g. the [Epson Perfection 2480](http://wiki.ubuntuusers.de/Epson_Perfection_2480)) need firmware loaded; put the firmware image in some place and add the scanner backend configuration file to point to it.      Some scanners (e.g. the [Epson Perfection 2480](http://wiki.ubuntuusers.de/Epson_Perfection_2480)) need firmware loaded; put the firmware image in some place and add the scanner backend configuration file to point to it.
   
     Scan an image by using the name of appropriate backend found on the SANE supported devices page (usually printed out by sane-find-scanner), for an example:      Scan an image by using the name of appropriate backend found on the SANE supported devices page (usually printed out by sane-find-scanner), for an example:
   
          # scanimage -v -B -d name_of_backend:libusb:/dev/usb0:/dev/ugen0 --format pnm > /tmp/image.pnm          # scanimage -v -B -d name_of_backend:libusb:/dev/usb0:/dev/ugen0 --format pnm > /tmp/image.pnm
   
     or      or
   
          # scanimage -v -B -d hp:libusb:/dev/usb0:/dev/ugen0 --format pnm > /tmp/image.pnm          # scanimage -v -B -d hp:libusb:/dev/usb0:/dev/ugen0 --format pnm > /tmp/image.pnm
   
     or      or
   
          # scanimage -v -B -d gt68xx:libusb:/dev/usb0:/dev/ugen0 --format pnm > /tmp/image.pnm          # scanimage -v -B -d gt68xx:libusb:/dev/usb0:/dev/ugen0 --format pnm > /tmp/image.pnm
   
     or use X alternative:      or use X alternative:
   
          # xsane          # xsane
   
     To find what options are available, do:      To find what options are available, do:
   
          # scanimage --help -d gt68xx:libusb:/dev/usb0:/dev/ugen0          # scanimage --help -d gt68xx:libusb:/dev/usb0:/dev/ugen0
   
 User access  User access
 -----------  -----------
Line 103  Additional features Line 103  Additional features
 To postprocess the images, the [ImageMagick](http://www.imagemagick.org/) package is very useful. For example, to batch-convert some images to black/white, use:  To postprocess the images, the [ImageMagick](http://www.imagemagick.org/) package is very useful. For example, to batch-convert some images to black/white, use:
   
     # mkdir ./bw ; for f in *.jpg ; do convert -colorspace gray "$f" "./bw/$f.jpg" ; done      # mkdir ./bw ; for f in *.jpg ; do convert -colorspace gray "$f" "./bw/$f.jpg" ; done
   
 Category: How to  

Removed from v.1.1  
changed lines
  Added in v.1.2


CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb