
理論上這個掃描器可以在 Linux 和 Ubuntu 下運作。我找到了我試圖遵循的這份文件。
http://luuklangens.nl/blog/howto-fujitsu-scansnap-s1300-s300-ubuntu-linux
我安裝了 sane,複製固件,確認配置中的位置等。
潛在問題領域
sudo 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.
found SCSI processor "Marvell 91xx Config 1.01" at /dev/sg5
# Your SCSI scanner was detected. It may or may not be supported by SANE. Try
# scanimage -L and read the backend's manpage.
could not fetch string descriptor: Pipe error
could not fetch string descriptor: Pipe error
found USB scanner (vendor=0x04c5 [FUJITSU], product=0x128d [ScanSnap S1300i]) at libusb:005:007
could not fetch string descriptor: Pipe error
# 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.
好的。因此掃描器被檢測並列出,它會列印出一堆額外的噪音
# 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).
好的,我們來驗證一下韌體檔案:
ls -lh /usr/share/sane/epjitsu
total 136K
-rw-r----- 1 root root 65K Jan 1 17:49 1300_0C26.nal
-rw-r----- 1 root root 65K Jan 1 17:49 300_0C00.nal
查看設定檔:(片段)
# Fujitsu S300
firmware /usr/share/sane/epjitsu/300_0C00.nal
usb 0x04c5 0x1156
# Fujitsu S1300
firmware /usr/share/sane/epjitsu/1300_0C26.nal
usb 0x04c5 0x11ed
我嘗試的最後一件事是從 sane-find-scanner 中拉出線路並更新配置
sane-find-scanner 傳回不同的產品 ID。我更新了上面的配置文件,重新啟動了 sane 服務,我仍然運行 scanimage -L,未檢測到掃描器。
作為參考,我在同一台電腦上的 virtualbox 虛擬機器上運行了該程式。如果我能讓它在 Windows 下運作那就太理想了。任何建議將不勝感激。
更新:添加 1300i 韌體後我重新審視了該行為,但它仍然無法正常工作。
偶爾當我運行時,這就是輸出。如果我再次運行它就會失敗。
scanimage -L
device `epjitsu:libusb:005:008' is a FUJITSU ScanSnap S1300i scanner
另外 sudo gscan2pdf 和 sudo simple-scan 都無法偵測到掃描器。無論有沒有 sudo 權限,它都會失敗。
答案1
感謝在這裡發布有價值資訊和連結的所有人。沒有你的帖子,我將無法弄清楚。
這是我之前提到 Sane v.1.0.23 / Ubuntu 14.04 的文章的修訂版本。 Sane v.1.0.23 偵測到 Fujitsu S1300i 掃描儀,但隨後不知何故被卡住,並且在第二次和後續運行“scanimage -L”時找不到掃描儀,如之前的帖子中所述。
Sane v.1.0.25 (Ubuntu 16.04) 使用「sane-find-scanner」或「sudo sane-find-scanner」檢測 Fujitsu S1300i。但是,「scanimage -L」或「sudo scanimage -L」根本無法在我的 Ubuntu 16.04 系統上偵測到 S1300i。
以下過程旨在使 Fujitsu S1300i 在 Ubuntu 16.04 桌面系統上運作。經過適當的修改,它應該也適用於其他 Ubuntu 版本。
1.取得、編譯並安裝最新版本的Sane
以下說明大致基於“從原始碼編譯 Sane”文章位於Ubuntu 社群幫助維基。
下面的指令將把 Sane 安裝到 /usr/local 中。如果您選擇安裝到 /usr 而不是 /usr/local,請查看“從原始碼編譯 Sane”並使用適當的開關而不是下面使用的開關。我建議安裝到 /usr/local 中,因為這將使您的 Sane 原始安裝完好無損,以防您想切換回使用原始版本。
安裝先決條件:
sudo apt-get install libusb-dev build-essential libsane-dev
sudo apt-get install libavahi-client-dev libavahi-glib-dev libjpeg-dev
sudo apt-get install git-core
下載最新的薩內:
git clone git://git.debian.org/sane/sane-backends.git
在撰寫本文時,最新的提交是:
$ git log -n 1
commit 1e013654cc3af09f4731ab9ec8d8324d03a7de4a
Author: Alessandro Zummo <[email protected]>
Date: Mon May 9 11:10:35 2016 +0200
編譯並安裝 Sane:
cd sane-backends
./configure
make
sudo make install
如果您決定刪除此 Sane 安裝,請使用「sudo make uninstall」從 /usr/local 中刪除所有已安裝的檔案。這是恢復使用 /usr 中的原始安裝的乾淨方法。
2.註冊libsane
檢查您的系統如何找到 Sane 共享物件庫:
sudo ldconfig -v | grep libsane
如果您看到類似以下內容:
libsane.so.1 -> libsane.so.1.0.25
libsane.so.1 -> libsane.so.1.0.26
這表示系統首先尋找版本 1.0.25,然後尋找 1.0.26,這不是正確的順序。在這種情況下,您必須更改 /etc/ld.so.conf 中庫路徑的順序,或者必須為 sane 建立新的設定檔:
echo "/usr/local/lib" | sudo tee -a /etc/ld.so.conf.d/1-sane.conf
一旦您更改了 /etc/ld.so.conf 中的庫路徑或在 1-sane.conf 中創建了新的配置文件,請使用“sudo ldconfig -v | grep libsane”再次檢查庫的順序。確保版本 1.0.26 首先出現在任何其他版本之前。
3. 安裝掃描器韌體
從安裝掃描器軟體的 Windows 電腦複製 Fujitsu S1300i 驅動程式檔案「1300i_0D12.nal」。通常,該驅動程式檔案位於「C:\Windows\SSDriver\S300」中。將驅動程式檔案放入 /usr/local 層次結構中:
sudo mkdir -p /usr/local/share/sane/epjitsu
sudo cp ./1300i_0D12.nal /usr/local/share/sane/epjitsu/
4.調整非root使用者存取掃描器的權限
預設 udev 規則將 USB 裝置的所有權設為“root”,並將群組所有權設為“root”。變更 udev 規則以將群組所有權設為「scanner」。使用您最喜歡的編輯器建立此文件:
/etc/udev/rules.d/79-scanner.rules
並將以下內容放入其中:
# Fujitsu ScanSnap S1300i
ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="128d", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes"
如有必要,將自己新增至「掃描器」群組:
sudo usermod -a -G scanner <username>
5. 完成安裝
重新啟動電腦。您也許無需重新啟動電腦即可開始使用 Fujitsu S1300i 掃描儀,但強烈建議重新啟動。我觀察到一些奇怪的行為,即使在進行所有必要的配置更改後,「scanimage -L」在重新啟動之前第二次運行時也無法找到掃描器。 Sane 早期版本的某些程式庫或驅動程式可能「卡在」快取或其他位置的某個位置。系統重新啟動即可清除所有內容。
重新啟動後,連接掃描儀,打開蓋子並執行:
scanimage -L
就這樣。享受您的掃描器。
答案2
實際上,我很幸運地在一些 Ubuntu 安裝上設定了 ScanSnap S1300 掃描器。我這個週末剛剛在 16.04 系統上設定了它。說明位於http://luuklangens.nl/blog/howto-fujitsu-scansnap-s1300-s300-ubuntu-linux過去為我工作過,但這篇文章不再可用。
作為替代方案,請參考以下說明:http://www.openfusion.net/linux/scansnap_1300i看起來非常適用,但我要提醒大家的是,S1300 和 S1300i 之間的差異似乎很重要。我這個週末的具體過程是下載 1300_0C26.nal 和 1300i_0D12.nal 文件,然後我選擇了 Beef Eater 回應中的第三步,但安裝了這兩個文件。重新啟動後,簡單的掃描工作沒有問題。我做到了不是從原始碼建置。
僅供參考 - 我顯然已經安裝了 saned 1.0.25+git20150528-1ubuntu2 。