8.7. ²èÁü¥¹¥­¥ã¥Ê

´ó¹Æ: Marc Fonvieille.

8.7.1. ¤Ï¤¸¤á¤Ë

FreeBSD ¤Ç¤Ï¡¢²èÁü¥¹¥­¥ã¥Ê¤ËÂФ¹¤ë¥¢¥¯¥»¥¹¤Ï SANE (Scanner Access Now Easy) API ¤Ë¤è¤Ã¤Æ¼Â¸½¤µ¤ì¤Æ¤ª¤ê¡¢ FreeBSD Ports Collection ¤Ç¤âÄ󶡤µ¤ì¤Æ¤¤¤Þ¤¹¡£ SANE ¤Ï¥¹¥­¥ã¥Ê¤Î¥Ï¡¼¥É¥¦¥§¥¢¤Ë¥¢¥¯¥»¥¹¤¹¤ë¤¿¤á¤Ë FreeBSD ¥Ç¥Ð¥¤¥¹¥É¥é¥¤¥Ð¤ò»ÈÍѤ·¤Þ¤¹¡£

FreeBSD ¤Ï SCSI Àܳ¤ª¤è¤Ó USB Àܳ¤Î¥¹¥­¥ã¥Ê¤Î¤É¤Á¤é¤Ë¤âÂбþ¤·¤Æ¤¤¤Þ¤¹¡£ ÀßÄê¤ò»Ï¤á¤ëÁ°¤Ë¡¢ SANE ¤¬¥¹¥­¥ã¥Ê¤ËÂбþ¤·¤Æ¤¤¤ë¤«³Îǧ¤·¤Æ¤¯¤À¤µ¤¤¡£ SANE ¤Ë¤Ï ¥¹¥­¥ã¥Ê¤Ë¤Ä¤¤¤Æ¤Î¾ðÊó¤È¤½¤Î¾õ¶·¤¬¤Þ¤È¤á¤é¤ì¤Æ¤¤¤ë Âбþ¥Ç¥Ð¥¤¥¹¤Î°ìÍ÷ ¤¬¤¢¤ê¤Þ¤¹¡£FreeBSD 8.X ¤è¤êÁ°¤Î¥·¥¹¥Æ¥à¤Ç¤Ï¡¢ FreeBSD ¤Î uscanner(4) ¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ë¤âÂбþ USB ¥¹¥­¥ã¥Ê¤Î°ìÍ÷¤¬µ­ºÜ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£

8.7.2. ¥«¡¼¥Í¥ë¤Î¥³¥ó¥Õ¥£¥°¥ì¡¼¥·¥ç¥ó

Á°½Ò¤Î¤è¤¦¤Ë¡¢FreeBSD ¤Ï¥¹¥­¥ã¥Ê¤Î¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤È¤·¤Æ SCSI ¤È USB ¤ÎξÊý¤ËÂбþ¤·¤Æ¤¤¤Þ¤¹¡£ ¥¹¥­¥ã¥Ê¤Î¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤Ë¤è¤Ã¤Æ¡¢É¬ÍפȤʤë¥É¥é¥¤¥Ð¤¬°Û¤Ê¤ê¤Þ¤¹¡£

8.7.2.1. USB ¥¤¥ó¥¿¥Õ¥§¡¼¥¹

GENERIC ¥«¡¼¥Í¥ë¤Ë¤Ï¥Ç¥Õ¥©¥ë¥È¤Ç USB ¥¹¥­¥ã¥Ê¤ËÂбþ¤¹¤ë¤¿¤á¤Î¥Ç¥Ð¥¤¥¹¥É¥é¥¤¥Ð¤¬ÅëºÜ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ ¥«¥¹¥¿¥à¥«¡¼¥Í¥ë¤ò»ÈÍѤ¹¤ëºÝ¤Ë¤Ï¡¢ °Ê²¼¤Î¹Ô¤¬¥«¡¼¥Í¥ë¥³¥ó¥Õ¥£¥°¥ì¡¼¥·¥ç¥ó¥Õ¥¡¥¤¥ë¤Ë¤¢¤ë¤³¤È¤ò ³Îǧ¤·¤Æ¤¯¤À¤µ¤¤¡£

device usb
device uhci
device ohci
device ehci

FreeBSD 8.X ¤è¤êÁ°¤Î¥·¥¹¥Æ¥à¤Ç¤Ï°Ê²¼¤Î¹Ô¤âɬÍפȤʤê¤Þ¤¹¡£

device uscanner

¤³¤Î¥Ð¡¼¥¸¥ç¥ó¤Î FreeBSD ¤Ç¤Ï¡¢uscanner(4) ¥Ç¥Ð¥¤¥¹¥É¥é¥¤¥Ð¤¬ USB ¥¹¥­¥ã¥Ê¤Ø¤Î¥¢¥¯¥»¥¹¤òÄ󶡤·¤Æ¤¤¤Þ¤¹¡£ FreeBSD 8.0 °Ê¹ß¤Ç¤Ï¡¢libusb(3) ¥é¥¤¥Ö¥é¥ê¤¬Ä¾ÀÜÄ󶡤·¤Þ¤¹¡£

ŬÀڤʥɥ饤¥Ð¤òÁȤ߹þ¤ó¤À¥«¡¼¥Í¥ë¤ÇºÆµ¯Æ°¸å¡¢ USB ¥¹¥­¥ã¥Ê¤ò¥·¥¹¥Æ¥à¤ËÀܳ¤·¤Þ¤¹¡£ ¤¹¤ë¤È¡¢¥á¥Ã¥»¡¼¥¸¥Ð¥Ã¥Õ¥¡ (dmesg(8)) ¤Ë¥¹¥­¥ã¥Ê¤¬Ç§¼±¤µ¤ì¤¿¤³¤È¤ò¼¨¤¹¥á¥Ã¥»¡¼¥¸¤¬½ÐÎϤµ¤ì¤Þ¤¹¡£

ugen0.2: <EPSON> at usbus0

FreeBSD 7.X ¥·¥¹¥Æ¥à¤Ç¤Ï¡¢ °Ê²¼¤Î¤è¤¦¤Ê¥á¥Ã¥»¡¼¥¸¤¬½ÐÎϤµ¤ì¤Þ¤¹¡£

uscanner0: EPSON EPSON Scanner, rev 1.10/3.02, addr 2

¤³¤ì¤é¤ÎÎã¤Ç¤Ï¡¢»ÈÍѤ·¤Æ¤¤¤ë FreeBSD ¤Î¥Ð¡¼¥¸¥ç¥ó¤Ë±þ¤¸¤Æ¡¢ ¥¹¥­¥ã¥Ê¤¬ /dev/ugen0.2 ¤Þ¤¿¤Ï¡¢/dev/uscanner0 ¥Ç¥Ð¥¤¥¹¥Î¡¼¥É¤ò»ÈÍѤ·¤Æ¤¤¤ë¤³¤È¤¬¤ï¤«¤ê¤Þ¤¹¡£ ¤³¤ÎÎã¤Ç¤Ï¡¢EPSON Perfection® 1650 USB ¥¹¥­¥ã¥Ê¤¬»È¤ï¤ì¤Æ¤¤¤Þ¤¹¡£

8.7.2.2. SCSI ¥¤¥ó¥¿¥Õ¥§¡¼¥¹

¥¹¥­¥ã¥Ê¤ËÉÕ°¤·¤Æ¤¤¤ë¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤¬ SCSI ¤Ç¤¢¤ì¤Ð¡¢ ½ÅÍפʤΤϤɤΠSCSI ¥Ü¡¼¥É¤ò»ÈÍѤ¹¤ì¤Ð¤è¤¤¤«ÇÄ°®¤¹¤ë¤³¤È¤Ç¤¹¡£ »ÈÍѤ¹¤ë SCSI ¥Á¥Ã¥×¥»¥Ã¥È¤Ë¤è¤Ã¤Æ¡¢ ¥«¡¼¥Í¥ë¥³¥ó¥Õ¥£¥°¥ì¡¼¥·¥ç¥ó¥Õ¥¡¥¤¥ë¤òÄ´À°¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£ GENERIC ¥«¡¼¥Í¥ë¤Ï °ìÈ̤˻ÈÍѤµ¤ì¤ë SCSI ¥³¥ó¥È¥í¡¼¥é¤Î¤Û¤È¤ó¤É¤ËÂбþ¤·¤Æ¤¤¤Þ¤¹¡£ NOTES ¥Õ¥¡¥¤¥ë¤òÆɤó¤Ç¡¢ ŬÀڤʹԤò¥«¡¼¥Í¥ë¥³¥ó¥Õ¥£¥°¥ì¡¼¥·¥ç¥ó¥Õ¥¡¥¤¥ë¤ËÄɲ䷤Ƥ¯¤À¤µ¤¤¡£ ¤Þ¤¿¡¢SCSI ¥¢¥À¥×¥¿¥É¥é¥¤¥Ð¤Ë²Ã¤¨¤Æ¡¢ °Ê²¼¤Î¹Ô¤ò¥«¡¼¥Í¥ë¥³¥ó¥Õ¥£¥°¥ì¡¼¥·¥ç¥ó¥Õ¥¡¥¤¥ë¤Ë µ­½Ò¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£

device scbus
device pass

¥«¡¼¥Í¥ë¤òŬÀڤ˥³¥ó¥Ñ¥¤¥ë¤·¤Æ¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë¤È¡¢ ¥·¥¹¥Æ¥à¤Îµ¯Æ°»þ¤Ë¥Ç¥Ð¥¤¥¹¤¬¥á¥Ã¥»¡¼¥¸¥Ð¥Ã¥Õ¥¡¤Ë½ÐÎϤµ¤ì¤ë¤Ï¤º¤Ç¤¹¡£

pass2 at aic0 bus 0 target 2 lun 0
pass2: <AGFA SNAPSCAN 600 1.10> Fixed Scanner SCSI-2 device
pass2: 3.300MB/s transfers

¥·¥¹¥Æ¥à¤òµ¯Æ°¤¹¤ëºÝ¤Ë¥¹¥­¥ã¥Ê¤ÎÅŸ»¤òÆþ¤ì¤Æ¤Ê¤±¤ì¤Ð¡¢ camcontrol(8) ¥³¥Þ¥ó¥É¤ò»ÈÍѤ·¤Æ SCSI ¥Ð¥¹¤ò¥¹¥­¥ã¥ó¤·¡¢ °Ê²¼¤Î¤è¤¦¤Ë¼êÆ°¤Ç¥Ç¥Ð¥¤¥¹¤ò¸¡½Ð¤µ¤»¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£

# camcontrol rescan all
Re-scan of bus 0 was successful
Re-scan of bus 1 was successful
Re-scan of bus 2 was successful
Re-scan of bus 3 was successful

¤¹¤ë¤È¡¢¥¹¥­¥ã¥Ê¤Ï SCSI ¥Ç¥Ð¥¤¥¹¤Î°ìÍ÷¤Ë¸½¤ì¤ë¤Ç¤·¤ç¤¦¡£

# camcontrol devlist
<IBM DDRS-34560 S97B>              at scbus0 target 5 lun 0 (pass0,da0)
<IBM DDRS-34560 S97B>              at scbus0 target 6 lun 0 (pass1,da1)
<AGFA SNAPSCAN 600 1.10>           at scbus1 target 2 lun 0 (pass3)
<PHILIPS CDD3610 CD-R/RW 1.00>     at scbus2 target 0 lun 0 (pass2,cd0)

SCSI ¥Ç¥Ð¥¤¥¹¤Ë¤Ä¤¤¤Æ¤Î¾ÜºÙ¤Ï¡¢scsi(4) ¤ª¤è¤Ó camcontrol(8) ¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤ò¤´Í÷¤¯¤À¤µ¤¤¡£

8.7.3. SANE ¤ÎÀßÄê

SANE ¥·¥¹¥Æ¥à¤Ï¡¢ Æó¤Ä¤ÎÉôʬ¡¢¤¹¤Ê¤ï¤Á¥Ð¥Ã¥¯¥¨¥ó¥É ( graphics/sane-backends) ¤È¥Õ¥í¥ó¥È¥¨¥ó¥É ( graphics/sane-frontends) ¤Ëʬ³ä¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ ¥Ð¥Ã¥¯¥¨¥ó¥É¤Ï¥¹¥­¥ã¥Ê¤½¤Î¤â¤Î¤ËÂФ¹¤ë¥¢¥¯¥»¥¹¤òÄ󶡤·¤Þ¤¹¡£ SANE ¤Î Âбþ¥Ç¥Ð¥¤¥¹¤Î°ìÍ÷ ¤Ë¤Ï¡¢¤É¤Î¥Ð¥Ã¥¯¥¨¥ó¥É¤¬²èÁü¥¹¥­¥ã¥Ê¤ËÂбþ¤·¤Æ¤¤¤ë¤«¤¬µ­ºÜ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ ¥Ç¥Ð¥¤¥¹¤ò»ÈÍѤ¹¤ë¤¿¤á¤Ë¤Ï¡¢Àµ¤·¤¤¥Ð¥Ã¥¯¥¨¥ó¥É¤ò·èÄꤹ¤ë¤Î¤Ïɬ¿Ü¤Ç¤¹¡£ ¤Þ¤¿¡¢¥Õ¥í¥ó¥È¥¨¥ó¥É¤Ï¥°¥é¥Õ¥£¥«¥ë¤Ê¥¹¥­¥ã¥Ë¥ó¥°¥¤¥ó¥¿¥Õ¥§¡¼¥¹ (xscanimage) ¤òÄ󶡤·¤Þ¤¹¡£

¤Ï¤¸¤á¤Ë¡¢ graphics/sane-backends ¤Î port ¤Þ¤¿¤Ï package ¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Þ¤·¤ç¤¦¡£ ¼¡¤Ë¡¢sane-find-scanner ¥³¥Þ¥ó¥É¤ò»ÈÍѤ·¤Æ¡¢ SANE ¥·¥¹¥Æ¥à¤Ç»ÈÍѤ¹¤ë¥Ð¥Ã¥¯¥¨¥ó¥É¤ò¸¡½Ð¤·¤Þ¤¹¡£

# sane-find-scanner -q
found SCSI scanner "AGFA SNAPSCAN 600 1.10" at /dev/pass3

¤³¤Î½ÐÎϤ«¤é¡¢ ¥¹¥­¥ã¥Ê¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤Î¼ïÎà¤È ¥·¥¹¥Æ¥à¤ËÀܳ¤µ¤ì¤Æ¤¤¤ë¥¹¥­¥ã¥Ê¤¬»ÈÍѤ¹¤ë¥Ç¥Ð¥¤¥¹¥Î¡¼¥É¤¬¤ï¤«¤ê¤Þ¤¹¡£ ¥Ù¥ó¥À̾¤äÀ½ÉʤΥâ¥Ç¥ë̾¤Ïɽ¼¨¤µ¤ì¤Ê¤¤¤«¤âÃΤì¤Þ¤»¤ó¤¬¡¢ ½ÅÍפǤϤ¢¤ê¤Þ¤»¤ó¡£

注意: USB ¥¹¥­¥ã¥Ê¤Ç¤Ï¥Õ¥¡¡¼¥à¥¦¥§¥¢¤òÆɤ߹þ¤àɬÍפ¬¤¢¤ë¾ì¹ç¤¬¤¢¤ê¤Þ¤¹¡£ ¤³¤ì¤Ï¥Ð¥Ã¥¯¥¨¥ó¥É¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤ÇÀâÌÀ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ sane-find-scanner(1) ¤È sane(7) ¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤âÆɤó¤Ç¤¯¤À¤µ¤¤¡£

¥¹¥­¥ã¥Ê¤¬¥Õ¥í¥ó¥È¥¨¥ó¥É¤Çǧ¼±¤µ¤ì¤ë¤«Ä´¤Ù¤Æ¤ß¤Þ¤·¤ç¤¦¡£ ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢SANE ¤Î¥Ð¥Ã¥¯¥¨¥ó¥É¤Ë¤Ï scanimage(1) ¤È¸Æ¤Ð¤ì¤ë¥³¥Þ¥ó¥É¥é¥¤¥ó¥Ä¡¼¥ë¤¬ÉÕ°¤·¤Þ¤¹¡£ ¤³¤Î¥³¥Þ¥ó¥É¤ò»ÈÍѤ¹¤ë¤È¡¢ ¥Ç¥Ð¥¤¥¹¤Î°ìÍ÷¤òɽ¼¨¤·¤¿¤ê²èÁü¤ò¼èÆÀ¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ -L ¥ª¥×¥·¥ç¥ó¤ò»È¤¦¤È¡¢ ¥¹¥­¥ã¥Ê¥Ç¥Ð¥¤¥¹¤Î°ìÍ÷¤¬½ÐÎϤµ¤ì¤Þ¤¹¡£

# scanimage -L
device `snapscan:/dev/pass3' is a AGFA SNAPSCAN 600 flatbed scanner

¤Þ¤¿¡¢項8.7.2.1 ¤Ç»ÈÍѤ·¤¿ USB ¥¹¥­¥ã¥Ê¤ÎÎã¤Ç¤Ï¡¢°Ê²¼¤Î½ÐÎϤ¬ÆÀ¤é¤ì¤ë¤Ç¤·¤ç¤¦¡£

# scanimage -L
device 'epson2:libusb:/dev/usb:/dev/ugen0.2' is a Epson GT-8200 flatbed scanner

¤³¤ì¤Ï¡¢FreeBSD 8.X ¥·¥¹¥Æ¥à¤Ç¤Î½ÐÎÏÎã¤Ç¤¢¤ê¡¢ 'epson2:libusb:/dev/usb:/dev/ugen0.2' ¤«¤é¡¢ »ÈÍѤ·¤Æ¤¤¤ë¥¹¥­¥ã¥Ê¤Î¥Ð¥Ã¥¯¥¨¥ó¥É̾ (epson2) ¤È¥Ç¥Ð¥¤¥¹¥Î¡¼¥É (/dev/ugen0.2) ¤Î¾ðÊó¤òÆÀ¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

注意: ²¿¤â½ÐÎϤ¬ÆÀ¤é¤ì¤Ê¤«¤Ã¤¿¤ê¡¢ ¥¹¥­¥ã¥Ê¤¬¸«¤Ä¤«¤é¤Ê¤«¤Ã¤¿¤È¤¤¤¦¥á¥Ã¥»¡¼¥¸¤¬É½¼¨¤µ¤ì¤¿¤é¡¢ scanimage(1) ¤Ï¥¹¥­¥ã¥Ê¤òǧ¼±¤Ç¤­¤Ê¤«¤Ã¤¿¤Î¤Ç¤·¤ç¤¦¡£ ¤³¤Î¤è¤¦¤Ê¾ì¹ç¤Ï¡¢¥Ð¥Ã¥¯¥¨¥ó¥É¤ÎÀßÄê¥Õ¥¡¥¤¥ë¤òÊÔ½¸¤·¡¢ »ÈÍѤ¹¤ë¥¹¥­¥ã¥Ê¥Ç¥Ð¥¤¥¹¤òÄêµÁ¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£ /usr/local/etc/sane.d/ ¥Ç¥£¥ì¥¯¥È¥ê¤Ë¤Ï¡¢ ¥Ð¥Ã¥¯¥¨¥ó¥É¤¬»ÈÍѤ¹¤ë¤¹¤Ù¤Æ¤ÎÀßÄê¥Õ¥¡¥¤¥ë¤¬¤¢¤ê¤Þ¤¹¡£ ¤³¤Î¥Ç¥Ð¥¤¥¹¤Îǧ¼±¤Ë¤è¤ëÌäÂê¤Ï¡¢ ÆÃÄê¤Î USB ¥¹¥­¥ã¥Ê¤ÇȯÀ¸¤¹¤ë¤â¤Î¤Ç¤¹¡£

¤¿¤È¤¨¤Ð¡¢ 項8.7.2.1 ¤Ç»ÈÍѤ·¤¿ USB ¥¹¥­¥ã¥Ê¤Ï¡¢ FreeBSD 8.X ¤Ë¤ª¤¤¤ÆÀµ¾ï¤Ëǧ¼±¤µ¤ìÆ°ºî¤·¤Þ¤¹¡£ ¤·¤«¤·¡¢¤½¤ì¤è¤êÁ°¤Î¥Ð¡¼¥¸¥ç¥ó¤Î (uscanner(4) ¥É¥é¥¤¥Ð¤òÍøÍѤ¹¤ë) FreeBSD ¤Ç¤Ï¡¢ sane-find-scanner ¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ë¤È¡¢°Ê²¼¤Î¤è¤¦¤Ê¾ðÊó¤¬ÆÀ¤é¤ì¤Þ¤¹¡£

# sane-find-scanner -q
found USB scanner (UNKNOWN vendor and product) at device /dev/uscanner0

¥¹¥­¥ã¥Ê¤ÏÀµ¤·¤¯¸¡½Ð¤µ¤ì¤Þ¤·¤¿¡£ USB ¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤ò»ÈÍѤ·¡¢ /dev/uscanner0 ¥Ç¥Ð¥¤¥¹¥Î¡¼¥É¤ËÀܳ¤µ¤ì¤Æ¤¤¤ë¤³¤È¤¬¤ï¤«¤ê¤Þ¤¹¡£ ¼¡¤Ë¡¢¥¹¥­¥ã¥Ê¤¬Àµ¤·¤¯Ç§¼±¤µ¤ì¤Æ¤¤¤ë¤«¤É¤¦¤«³Îǧ¤·¤Æ¤ß¤Þ¤·¤ç¤¦¡£

# scanimage -L

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).

¥¹¥­¥ã¥Ê¤¬Ç§¼±¤µ¤ì¤Ê¤«¤Ã¤¿¤Î¤Ç¡¢ /usr/local/etc/sane.d/epson2.conf ¥Õ¥¡¥¤¥ë¤òÊÔ½¸¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£ ¤³¤Î¥¹¥­¥ã¥Ê¤Î¥â¥Ç¥ë¤Ï EPSON Perfection 1650 ¤Ê¤Î¤Ç¡¢ epson2 ¥Ð¥Ã¥¯¥¨¥ó¥É¤ò»ÈÍѤ¹¤ì¤Ð¤¤¤¤¤³¤È¤¬¤ï¤«¤ê¤Þ¤¹¡£ ¥Ð¥Ã¥¯¥¨¥ó¥É¤ÎÀßÄê¥Õ¥¡¥¤¥ë¤Ë½ñ¤«¤ì¤Æ¤¤¤ë¥³¥á¥ó¥È¤òɬ¤ºÆɤó¤Ç¤¯¤À¤µ¤¤¡£ ÀßÄê¥Õ¥¡¥¤¥ë¤òÊѹ¹¤¹¤ë¤Î¤ÏÈó¾ï¤Ë´Êñ¤Ç¤¹¡£ »ÈÍѤ·¤Æ¤¤¤ë¥¹¥­¥ã¥Ê¤Ë¤ÏÉÔŬÀڤʥ¤¥ó¥¿¥Õ¥§¡¼¥¹¤ò¤¹¤Ù¤Æ¥³¥á¥ó¥È¥¢¥¦¥È¤· (º£²ó¤Î¾ì¹ç¤Ï¡¢USB ¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤ò»ÈÍѤ¹¤ë¤Î¤Ç scsi ¤È¤¤¤¦¸ì¤Ç»Ï¤Þ¤ë¹Ô¤ò¤¹¤Ù¤Æ¥³¥á¥ó¥È¥¢¥¦¥È¤·¤Þ¤¹)¡¢ ¥Õ¥¡¥¤¥ë¤ÎËöÈø¤Ë»ÈÍѤ¹¤ë¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤È¥Ç¥Ð¥¤¥¹¥Î¡¼¥É¤òÄɲä·¤Þ¤¹¡£ ¤³¤ÎÎã¤Ç¤Ï¡¢°Ê²¼¤Î¹Ô¤òÄɲä·¤Þ¤·¤¿¡£

usb /dev/uscanner0

¾ÜºÙ¤È»ÈÍѤ¹¤Ù¤­¹½Ê¸¤Ï¡¢ ¥Ð¥Ã¥¯¥¨¥ó¥É¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï¤â¤Á¤í¤ó¤Î¤³¤È¡¢ ¥Ð¥Ã¥¯¥¨¥ó¥É¤ÎÀßÄê¥Õ¥¡¥¤¥ë¤Ë½ñ¤«¤ì¤Æ¤¤¤ë¥³¥á¥ó¥È¤âÆɤó¤Ç¤¯¤À¤µ¤¤¡£ °Ê¾å¤ÎÀßÄê¤Ç¡¢¥¹¥­¥ã¥Ê¤¬Ç§¼±¤µ¤ì¤¿¤«¤É¤¦¤«¤ò³Îǧ¤Ç¤­¤Þ¤¹¡£

# scanimage -L
device `epson:/dev/uscanner0' is a Epson GT-8200 flatbed scanner

USB ¥¹¥­¥ã¥Ê¤¬Ç§¼±¤µ¤ì¤Þ¤·¤¿¡£ ¥Ö¥é¥ó¥É¤ä¥â¥Ç¥ë¤¬¥¹¥­¥ã¥Ê¤Ë°ìÃפ·¤Ê¤«¤Ã¤¿¤È¤·¤Æ¤â¡¢¤½¤ì¤Û¤É½ÅÍפǤϤ¢¤ê¤Þ¤»¤ó¡£ ÃåÌܤ¹¤Ù¤­¤Ï `epson:/dev/uscanner0' ¤È¤¤¤¦Éôʬ¤Ç¡¢ ¥Ð¥Ã¥¯¥¨¥ó¥É̾¤È¥Ç¥Ð¥¤¥¹¥Î¡¼¥É¤¬Àµ¤·¤¯Ç§¼±¤µ¤ì¤Æ¤¤¤ë¤³¤È¤¬¤ï¤«¤ê¤Þ¤¹¡£

scanimage -L ¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤Æ¥¹¥­¥ã¥Ê¤¬Ç§¼±¤µ¤ì¤¿¤³¤È¤¬¤ï¤«¤ì¤Ð¡¢ÀßÄê¤Ï½ªÎ»¤Ç¤¹¡£ ¥Ç¥Ð¥¤¥¹¤Ï¥¹¥­¥ã¥ó¤¹¤ë½àÈ÷¤¬¤Ç¤­¤Þ¤·¤¿¡£

scanimage(1) ¥³¥Þ¥ó¥É¤ò»ÈÍѤ¹¤ë¤È ¥³¥Þ¥ó¥É¥é¥¤¥ó¤«¤é²èÁü¤ò¼èÆÀ¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¤½¤Î°ìÊý¤Ç¡¢ GUI ¤ò»ÈÍѤ·¤Æ²èÁü¤ò¼èÆÀ¤Ç¤­¤ë¤È°ìÁØÎɤ¤¤Ç¤·¤ç¤¦¡£ SANE ¤Ï¡¢´ÊÁǤǤ¹¤¬Ìò¤ËΩ¤Ä¥°¥é¥Õ¥£¥«¥ë¤Ê¥¤¥ó¥¿¥Õ¥§¡¼¥¹ xscanimage ( graphics/sane-frontends) ¤òÄ󶡤·¤Æ¤¤¤Þ¤¹¡£

Xsane (graphics/xsane) ¤Ï¤â¤¦°ì¤Ä¤Î¥°¥é¥Õ¥£¥«¥ë¤Ê¥¹¥­¥ã¥Ë¥ó¥°¥Õ¥í¥ó¥È¥¨¥ó¥É¤Ç¡¢ ¿Íµ¤¤¬¤¢¤ê¤Þ¤¹¡£ Xsane ¤Ë¤Ï¡¢¤µ¤Þ¤¶¤Þ¤Ê¥¹¥­¥ã¥Ë¥ó¥°¥â¡¼¥É (¼Ì¿¿¡¢FAX ¤Ê¤É)¡¢ ¿§ÊäÀµ¡¢¥Ð¥Ã¥Á¥¹¥­¥ã¥ó¤Ê¤ÉÀè¿ÊŪ¤Êµ¡Ç½¤¬¤¢¤ê¤Þ¤¹¡£ ¤³¤ì¤é¤Î¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤ÎξÊý¤È¤â GIMP ¤Î¥×¥é¥°¥¤¥ó¤È¤·¤Æ»ÈÍѤ¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

8.7.4. ¾¤Î¥æ¡¼¥¶¤¬¥¹¥­¥ã¥Ê¤Ë¥¢¥¯¥»¥¹¤¹¤ë¤³¤È¤òµö²Ä¤¹¤ë

Á°½Ò¤ÎÁàºî¤Ë¤Ï¡¢ ¤¹¤Ù¤Æ root ¸¢¸Â¤¬É¬ÍפȤʤê¤Þ¤¹¡£ ¤·¤«¤·¤Ê¤¬¤é¡¢Â¾¤Î¥æ¡¼¥¶¤¬¥¹¥­¥ã¥Ê¤Ë ¥¢¥¯¥»¥¹¤Ç¤­¤ë¤è¤¦¤Ë¤¹¤ë¤³¤È¤â²Äǽ¤Ç¤¹¡£ ¤½¤Î¤¿¤á¤Ë¤Ï¡¢¥¹¥­¥ã¥Ê¤¬»ÈÍѤ¹¤ë¥Ç¥Ð¥¤¥¹¥Î¡¼¥É¤Ø¤Î Æɤ߹þ¤ß¸¢¸Â¤È½ñ¤­¹þ¤ß¸¢¸Â¤ò¥æ¡¼¥¶¤ËÍ¿¤¨¤Þ¤¹¡£ °ìÎã¤È¤·¤Æ¡¢USB ¥¹¥­¥ã¥Ê¤¬¡¢/dev/ugen0.2 ¥Ç¥Ð¥¤¥¹¥Î¡¼¥É¤ò»ÈÍѤ·¤Æ¤¤¤ë¤â¤Î¤È¤·¤Þ¤¹¡£ ¤³¤Î¥Ç¥Ð¥¤¥¹¥Î¡¼¥É¤Ï¡¢ /dev/usb/0.2.0 ¤Ø¤Î¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤Ç¤¹ (/dev ¥Ç¥£¥ì¥¯¥È¥ê¤òÄ´¤Ù¤ë¤È¡¢ ´Êñ¤Ë³Îǧ¤Ç¤­¤Þ¤¹)¡£ ¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤È¥Ç¥Ð¥¤¥¹¥Î¡¼¥É¤Ï¡¢ ¤½¤ì¤¾¤ì wheel ¤ª¤è¤Ó operator ¥°¥ë¡¼¥×¤¬½êÍ­¤·¤Æ¤¤¤Þ¤¹¡£ ¥æ¡¼¥¶ joe ¤ò ¤³¤ì¤é¤Î¥°¥ë¡¼¥×¤Ë²Ã¤¨¤ë¤È¡¢Èà¤Ï¥¹¥­¥ã¥Ê¤ò»ÈÍѤǤ­¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£ ¤â¤Á¤í¤ó¡¢¥æ¡¼¥¶¤ò¤É¤ó¤Ê¥°¥ë¡¼¥× (Æä˥°¥ë¡¼¥× wheel) ¤ËÄɲ乤ë»þ¤Ï¤¤¤Ä¤Ç¤â¡¢ ¥»¥­¥å¥ê¥Æ¥£¾å¤ÎÍýͳ¤«¤éÆóÅ٤ϸ¡Æ¤¤ò¹Ô¤¦¤Ù¤­¤Ç¤¹¡£ Îɤ¤ÊýË¡¤Ï¡¢USB ¥Ç¥Ð¥¤¥¹¤òÍøÍѤ¹¤ë¤¿¤á¤Ë¥°¥ë¡¼¥×¤òºîÀ®¤·¡¢ ¤³¤Î¥°¥ë¡¼¥×¤ËÂФ·¤Æ¥¹¥­¥ã¥Ê¥Ç¥Ð¥¤¥¹¤òÍøÍѤǤ­¤ë¤è¤¦¤Ë¤¹¤ë¤³¤È¤Ç¤¹¡£

Îã¤È¤·¤Æ¡¢usb ¤È¤¤¤¦Ì¾Á°¤Î¥°¥ë¡¼¥×¤ò»ÈÍѤ·¤Þ¤¹¡£ ¤Þ¤ººÇ½é¤Ë¡¢pw(8) ¥³¥Þ¥ó¥É¤ò»È¤Ã¤Æ¥°¥ë¡¼¥×¤òºîÀ®¤·¤Þ¤¹¡£

# pw groupadd usb

¤½¤Î¸å¡¢¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯ /dev/ugen0.2 ¤ª¤è¤Ó¡¢/dev/usb/0.2.0 ¥Ç¥Ð¥¤¥¹¥Î¡¼¥É¤ËÂФ·¤Æ¡¢ usb ¥°¥ë¡¼¥×¤¬ÍøÍѤǤ­¤ë¤è¤¦¤ËŬÀڤʵö²Ä°À­ (0660 ¤Þ¤¿¤Ï 0664) ¤òÀßÄꤹ¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£ ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¤³¤ì¤é¤Î¥Õ¥¡¥¤¥ë¤Î½êÍ­¼Ô (root) ¤Î¤ß¤¬½ñ¤­¹þ¤ß²Äǽ¤Ç¤¹¡£ /etc/devfs.rules ¤Ë¼¡¤Î¹Ô¤òÄɲ䷤Ƥ¯¤À¤µ¤¤¡£

[system=5]
add path ugen0.2 mode 0660 group usb
add path usb/0.2.0 mode 0666 group usb

FreeBSD 7.X ¤Î¥æ¡¼¥¶¤Ï¡¢¥Ç¥Ð¥¤¥¹¥Î¡¼¥É /dev/uscanner0 ¤ËÂФ·¡¢ °Ê²¼¤Î¤è¤¦¤Ê¹Ô¤ÎÄɲä¬É¬ÍפȤʤë¤Ç¤·¤ç¤¦¡£

[system=5]
add path uscanner0 mode 660 group usb

¼¡¤Ë¡¢/etc/rc.conf ¤Ë°Ê²¼¤Î¹Ô¤òÄɲä·¤Æ ¥·¥¹¥Æ¥à¤òºÆµ¯Æ°¤·¤Þ¤¹¡£

devfs_system_ruleset="system"

/etc/devfs.rules ¤ÇÀßÄꤷ¤¿ÆâÍƤˤĤ¤¤Æ¤Î¾ÜºÙ¤Ï¡¢devfs(8) ¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤ò¤´Í÷¤¯¤À¤µ¤¤¡£

ºÇ¸å¤Ë¡¢¥¹¥­¥ã¥Ê¤òÍøÍѤ¹¤ë¥æ¡¼¥¶¤ò usb ¥°¥ë¡¼¥×¤ËÄɲä·¤Þ¤¹¡£

# pw groupmod usb -m joe

¾ÜºÙ¤Ë¤Ä¤¤¤Æ¤Ï¡¢pw(8) ¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤ò¤´Í÷¤¯¤À¤µ¤¤¡£

ËÜʸ½ñ¡¢¤ª¤è¤Ó¾¤Îʸ½ñ¤Ï ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/ ¤«¤é¥À¥¦¥ó¥í¡¼¥É¤Ç¤­¤Þ¤¹¡£

FreeBSD ¤Ë´Ø¤¹¤ë¼ÁÌ䤬¤¢¤ë¾ì¹ç¤Ë¤Ï¡¢¥É¥­¥å¥á¥ó¥È ¤òÆɤó¤À¾å¤Ç <questions@FreeBSD.org> ¤Þ¤Ç (±Ñ¸ì¤Ç) Ï¢Íí¤·¤Æ¤¯¤À¤µ¤¤¡£
ËÜʸ½ñ¤Ë´Ø¤¹¤ë¼ÁÌä¤Ë¤Ä¤¤¤Æ¤Ï¡¢<doc@FreeBSD.org> ¤Þ¤ÇÅŻҥ᡼¥ë¤ò (±Ñ¸ì¤Ç) Á÷¤Ã¤Æ¤¯¤À¤µ¤¤¡£