#author("2020-09-13T08:53:56+00:00","","") #author("2020-09-13T12:24:15+00:00","","") #topicpath ////////////////////////////////////////////////////////////////////////////// * 目次 [#f02d87cf] #contents() ////////////////////////////////////////////////////////////////////////////// * パッケージを入れる [#m791b914] # apt-get install udev libsane libusb-1.0-0 scanbd - see also: http://askubuntu.com/questions/455476/ubuntu-14-04-setup-for-canoscan-9000-mark-ii ////////////////////////////////////////////////////////////////////////////// * 使い方 [#w11dec84] + scanner を接続し、電源を投入 + xsane を起動する + xsane 上で「カラー」「スキャナの解像度」などを設定 + 原稿を scanner にセットし、xsane の「スキャン」ボタンを押す /////////////////////////////////////////////////////////////////////////////// * 何らかの不具合でスキャナが動作しない場合 [#da56dae2] - スキャナが lsusb 等で存在は確認出来るが sane の有効でないデバイスとなってしまう場合 -- libsane-common パッケージ又はそのインストール時に何らかの不具合があり、 /etc/sane.d/ 配下に適切にスキャナの設定ファイルが配置されなかった可能性がある。 -- この場合、最悪は他の debian のバージョンの libsane-common パッケージの内容物から /etc/sane.d/*.conf をゴッソリ持ってきて配置すると、動作する可能性がある。 /////////////////////////////////////////////////////////////////////////////// * Scanner の検出 [#x015857f] $ sane-find-scanner # sane-find-scanner will now attempt to detect your scanner. If the # result is different from what you expected, first make sure your # scanner is powered up and properly connected to your computer. # No SCSI scanners found. If you expected something different, make sure that # you have loaded a kernel SCSI driver for your SCSI adapter. could not open USB device 0x2109/0x0817 at 004:002: Access denied (insufficient permissions) could not open USB device 0x1d6b/0x0003 at 004:001: Access denied (insufficient permissions) could not open USB device 0x2109/0x8888 at 003:003: Access denied (insufficient permissions) could not open USB device 0x2109/0x2817 at 003:002: Access denied (insufficient permissions) could not open USB device 0x1d6b/0x0002 at 003:001: Access denied (insufficient permissions) could not open USB device 0x1d6b/0x0003 at 002:001: Access denied (insufficient permissions) could not open USB device 0x04f2/0xb5a7 at 001:005: Access denied (insufficient permissions) could not open USB device 0x8087/0x0a2b at 001:004: Access denied (insufficient permissions) found USB scanner (vendor=0x04a9 [Canon], product=0x190d [CanoScan]) at libusb:001:003 could not open USB device 0x046d/0xc52b at 001:002: Access denied (insufficient permissions) could not open USB device 0x1d6b/0x0002 at 001:001: Access denied (insufficient permissions) # Your USB scanner was (probably) detected. It may or may not be supported by # SANE. Try scanimage -L and read the backend's manpage. # Not checking for parallel port scanners. # Most Scanners connected to the parallel port or other proprietary ports # can't be detected by this program. # You may want to run this program as root to find all devices. Once you # found the scanner devices, be sure to adjust access permissions as # necessary. - 上記結果から、権限がないことがわかる。 - scanner のデバイスファイルは /dev/sg* のどれかとなるので、パーミッションを確認する $ ls -l /dev/sg* crw-rw---- 1 root disk 21, 0 9月 13 11:08 /dev/sg0 ~ $ getfacl /dev/sg0 getfacl: Removing leading '/' from absolute path names # file: dev/sg0 # owner: root # group: disk user::rw- group::rw- other::--- /////////////////////////////////////////////////////////////////////////////// * 参考リンク [#o12cae4f] - https://wiki.debian.org/Scanner#perms