Translation

(itstool) path: sect2/para
Alternatively, to install from the Ports Collection
13/510
Context English Chinese (Simplified) (zh_CN) State
ugen0.2: <EPSON> at usbus0
ugen0.2: <EPSON> at usbus0
In this example, an <trademark class="registered">EPSON Perfection</trademark> 1650 <acronym>USB</acronym> scanner was detected on <filename>/dev/ugen0.2</filename>.
本例在 <filename>/dev/ugen0.2</filename>检测到<trademark class="registered">EPSON Perfection</trademark> 1650 <acronym>USB</acronym>扫描仪。
If the scanner uses a <acronym>SCSI</acronym> interface, it is important to know which <acronym>SCSI</acronym> controller board it will use. Depending upon the <acronym>SCSI</acronym> chipset, a custom kernel configuration file may be needed. The <filename>GENERIC</filename> kernel supports the most common <acronym>SCSI</acronym> controllers. Refer to <filename>/usr/src/sys/conf/NOTES</filename> to determine the correct line to add to a custom kernel configuration file. In addition to the <acronym>SCSI</acronym> adapter driver, the following lines are needed in a custom kernel configuration file:
如果扫描仪使用 <acronym> SCSI </acronym> 接口,则了解它将使用哪个 <acronym> SCSI </acronym> 控制器板非常重要。根据<acronym>SCSI</acronym>芯片组, 可能需要自定义内核配置文件。<filename> GENIC </filename> 内核支持常见 <acronym> SCSI </acronym> 控制器。请参阅<filename>/usr/src/sys/conf/NOTES</filename>,以确定要添加到自定义内核配置文件中的正确行。除了 <acronym> SCSI </acronym> 适配器驱动程序外,自定义内核配置文件中还需要以下行:
device scbus
device pass
device scbus
device pass
Verify that the device is displayed in the system message buffer:
验证设备是否显示在系统消息缓冲区中:
pass2 at aic0 bus 0 target 2 lun 0
pass2: &lt;AGFA SNAPSCAN 600 1.10&gt; Fixed Scanner SCSI-2 device
pass2: 3.300MB/s transfers
pass2 at aic0 bus 0 target 2 lun 0
pass2: &lt;AGFA SNAPSCAN 600 1.10&gt; Fixed Scanner SCSI-2 device
pass2: 3.300MB/s transfers
If the scanner was not powered-on at system boot, it is still possible to manually force detection by performing a <acronym>SCSI</acronym> bus scan with <command>camcontrol</command>:
如果您的扫描仪没有在系统启动的时候加电, 很可能还需要强制手动检测一下,用 <citerefentry><refentrytitle>camcontrol</refentrytitle><manvolnum>8</manvolnum></citerefentry> 命令执行一次 SCSI 总线扫描:
<prompt>#</prompt> <userinput>camcontrol rescan all</userinput>
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
<prompt>#</prompt> <userinput>camcontrol rescan all</userinput>
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
The scanner should now appear in the <acronym>SCSI</acronym> devices list:
然后扫描仪就会出现在 SCSI 设备列表里:
<prompt>#</prompt> <userinput>camcontrol devlist</userinput>
&lt;IBM DDRS-34560 S97B&gt; at scbus0 target 5 lun 0 (pass0,da0)
&lt;IBM DDRS-34560 S97B&gt; at scbus0 target 6 lun 0 (pass1,da1)
&lt;AGFA SNAPSCAN 600 1.10&gt; at scbus1 target 2 lun 0 (pass3)
&lt;PHILIPS CDD3610 CD-R/RW 1.00&gt; at scbus2 target 0 lun 0 (pass2,cd0)
<prompt>#</prompt> <userinput>camcontrol devlist</userinput>
&lt;IBM DDRS-34560 S97B&gt; at scbus0 target 5 lun 0 (pass0,da0)
&lt;IBM DDRS-34560 S97B&gt; at scbus0 target 6 lun 0 (pass1,da1)
&lt;AGFA SNAPSCAN 600 1.10&gt; at scbus1 target 2 lun 0 (pass3)
&lt;PHILIPS CDD3610 CD-R/RW 1.00&gt; at scbus2 target 0 lun 0 (pass2,cd0)
Refer to <citerefentry><refentrytitle>scsi</refentrytitle><manvolnum>4</manvolnum></citerefentry> and <citerefentry><refentrytitle>camcontrol</refentrytitle><manvolnum>8</manvolnum></citerefentry> for more details about <acronym>SCSI</acronym> devices on FreeBSD.
有关 SCSI 设备的更多细节, 可查看 <citerefentry><refentrytitle>scsi</refentrytitle><manvolnum>4</manvolnum></citerefentry> 和 <citerefentry><refentrytitle>camcontrol</refentrytitle><manvolnum>8</manvolnum></citerefentry> 手册页。
<application>SANE</application> Configuration
<application>SANE</application>设定
The <application>SANE</application> system provides the access to the scanner via backends (<package>graphics/sane-backends</package>). Refer to <link xlink:href="http://www.sane-project.org/sane-supported-devices.html">http://www.sane-project.org/sane-supported-devices.html</link> to determine which backend supports the scanner. A graphical scanning interface is provided by third party applications like <application>Kooka</application> (<package>graphics/kooka</package>) or <application>XSane</application> (<package>graphics/xsane</package>). <application>SANE</application>'s backends are enough to test the scanner.
<application>SANE</application> 系统通过后端 (<package>graphics/sane-backends</package>) 连接扫描仪。 参考<link xlink:href="http://www.sane-project.org/sane-supported-devices.html">http://www.sane-project.org/sane-supported-devices.html</link>查看扫描仪支持情况。图形扫描接口由类似<application>Kooka</application> (<package>graphics/kooka</package>) 或 <application>XSane</application> (<package>graphics/xsane</package>)提供。<application>SANE</application>的功能足已完成扫描仪测试。
To install the backends from binary package:
使用二进制安装包安装后端:
<prompt>#</prompt> <userinput>pkg install sane-backends</userinput>
<prompt>#</prompt> <userinput>pkg install sane-backends</userinput>
Alternatively, to install from the Ports Collection
或由 Port 套件集安装
<prompt>#</prompt> <userinput>cd /usr/ports/graphics/sane-backends</userinput>
<prompt>#</prompt> <userinput>make install clean</userinput>
<prompt>#</prompt> <userinput>cd /usr/ports/graphics/sane-backends</userinput>
<prompt>#</prompt> <userinput>make install clean</userinput>
After installing the <package>graphics/sane-backends</package> port or package, use <command>sane-find-scanner</command> to check the scanner detection by the <application>SANE</application> system:
要做的第一步就是安装 <package>graphics/sane-backends</package> port 或者 package。然后,使用 <command>sane-find-scanner</command> 命令来检查 <application>SANE</application> 系统做的扫描仪检测:
<prompt>#</prompt> <userinput>sane-find-scanner -q</userinput>
found SCSI scanner "AGFA SNAPSCAN 600 1.10" at /dev/pass3
<prompt>#</prompt> <userinput>sane-find-scanner -q</userinput>
found SCSI scanner "AGFA SNAPSCAN 600 1.10" at /dev/pass3
The output should show the interface type of the scanner and the device node used to attach the scanner to the system. The vendor and the product model may or may not appear.
输出显示了扫描仪的接口类型和扫描仪连接到系统上的设备节点。 生产厂家和产品型号可能没有显示,不过不重要。
Some <acronym>USB</acronym> scanners require firmware to be loaded. Refer to sane-find-scanner(1) and sane(7) for details.
一些 USB 扫描仪需要您加载固件,后端的手册页中有这方面的解释。 您也应该阅读 <citerefentry vendor="ports"><refentrytitle>sane-find-scanner</refentrytitle><manvolnum>1</manvolnum></citerefentry> 和 <citerefentry vendor="ports"><refentrytitle>sane</refentrytitle><manvolnum>7</manvolnum></citerefentry> 手册页。
Next, check if the scanner will be identified by a scanning frontend. The <application>SANE</application> backends include <command>scanimage</command> which can be used to list the devices and perform an image acquisition. Use <option>-L</option> to list the scanner devices. The first example is for a <acronym>SCSI</acronym> scanner and the second is for a <acronym>USB</acronym> scanner:
现在我们需要检查扫描仪是否可以被扫描前端识别。 默认情况下, <application>SANE</application> 后端自带一个叫做 <citerefentry vendor="ports"><refentrytitle>scanimage</refentrytitle><manvolnum>1</manvolnum></citerefentry> 的命令行工具。 这个命令允许您列出设备以及从命令行执行图片扫描。 <option>-L</option> 选项用来列出扫描仪设备:
<prompt>#</prompt> <userinput>scanimage -L</userinput>
device `snapscan:/dev/pass3' is a AGFA SNAPSCAN 600 flatbed scanner
<prompt>#</prompt> <userinput>scanimage -L</userinput>
device 'epson2:libusb:000:002' is a Epson GT-8200 flatbed scanner
<prompt>#</prompt> <userinput>scanimage -L</userinput>
device `snapscan:/dev/pass3' is a AGFA SNAPSCAN 600 flatbed scanner
<prompt>#</prompt> <userinput>scanimage -L</userinput>
device 'epson2:libusb:000:002' is a Epson GT-8200 flatbed scanner
In this second example, <literal>epson2</literal> is the backend name and <literal>libusb:000:002</literal> means <filename>/dev/ugen0.2</filename> is the device node used by the scanner.
在第二个示例中, <literal>libusb:000:002</literal>是后端名称 (<literal> epson2 </literal>),<filename>/dev/ugen0.2</filename>是扫描仪使用的设备挂载点。
If <command>scanimage</command> is unable to identify the scanner, this message will appear:
或者, 如果使用的是 <xref linkend="scanners-kernel-usb"/> 中的 USB 扫描仪:
<prompt>#</prompt> <userinput>scanimage -L</userinput>

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).
<prompt>#</prompt> <userinput>scanimage -L</userinput>

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).
If this happens, edit the backend configuration file in <filename>/usr/local/etc/sane.d/</filename> and define the scanner device used. For example, if the undetected scanner model is an <trademark class="registered">EPSON Perfection</trademark> 1650 and it uses the <literal>epson2</literal> backend, edit <filename>/usr/local/etc/sane.d/epson2.conf</filename>. When editing, add a line specifying the interface and the device node used. In this case, add the following line:
如果发生这种情况,请编辑<filename>/usr/local/etc/sane.d/</filename>中的后端配置文件,并定义所使用的扫描设备。例如,如果未检测到的扫描仪模型是一个<trademark class="registered">EPSON Perfection</trademark>1650,并且它使用了<literal>epson2</literal>后端,则编辑<filename>/usr/local/etc/sane.d/epson2.conf</filename>。编辑时,添加一行,指定使用的接口和设备节点。在这种情况下,请添加以下行:
usb /dev/ugen0.2
usb /dev/ugen0.2
Save the edits and verify that the scanner is identified with the right backend name and the device node:
保存编辑并验证扫描仪是否标识了正确的后端名称和设备节点:
<prompt>#</prompt> <userinput>scanimage -L</userinput>
device 'epson2:libusb:000:002' is a Epson GT-8200 flatbed scanner
<prompt>#</prompt> <userinput>scanimage -L</userinput>
device 'epson2:libusb:000:002' is a Epson GT-8200 flatbed scanner
Once <command>scanimage -L</command> sees the scanner, the configuration is complete and the scanner is now ready to use.
一旦 <command>scanimage -L</command> 命令可以看到扫描仪, 配置就完成了。设备现在准备好等待扫描了。

Loading…

Alternatively, to install from the Ports Collection
或由 Port 套件集安装
8 months ago
Browse all component changes

Glossary

English Chinese (Simplified) (zh_CN)
No related strings found in the glossary.

Source information

Source string comment
(itstool) path: sect2/para
Labels
No labels currently set.
Source string location
book.translate.xml:15609
Source string age
11 months ago
Translation file
books/zh_CN/handbook.po, string 2755