特殊:Badtitle/NS100:ScanningHowTo:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
(未显示同一用户的4个中间版本) | |||
第1行: | 第1行: | ||
{{From|https://help.ubuntu.com/community/ScanningHowTo}} | {{From|https://help.ubuntu.com/community/ScanningHowTo}} | ||
{{Languages|UbuntuHelp:ScanningHowTo}} | {{Languages|UbuntuHelp:ScanningHowTo}} | ||
<<Include(Tag/NeedsExpansion)>> | |||
Scanning in Ubuntu is actually quite easy. This guide will walk you through how to use your scanner and what to do if Ubuntu cannot find your scanner. | Scanning in Ubuntu is actually quite easy. This guide will walk you through how to use your scanner and what to do if Ubuntu cannot find your scanner. | ||
=== Does my scanner work with Ubuntu? === | === Does my scanner work with Ubuntu? === | ||
第15行: | 第16行: | ||
=== What if it says "No devices available"? === | === What if it says "No devices available"? === | ||
There are | There are five reasons why you might get this message. | ||
<ol><li>Your scanner is not supported in Ubuntu. The most common type of scanner not supported is old parallel port or Lexmark All-in-One printer/scanner/faxes | <ol><li>Your scanner is not supported in Ubuntu. The most common type of scanner not supported is old parallel port or Lexmark All-in-One printer/scanner/faxes | ||
</li><li>The driver for your scanner is not being autoloaded | </li><li>The driver for your scanner is not being autoloaded | ||
</li><li>If your scanner is a Mustek 1200 UB Plus you will need this file [http://www.meier-geinitz.de/sane/gt68xx-backend/firmware/sbfw.usb sbfw.usb] then rename it to "PS1fw.usb" then put the file in the directory "/usr/share/sane/gt68xx" (remember to give read permission to all users)</li></ol> | </li><li>You need to install the firmware file (probably a *.fw or *.usb) for your particular scanner. You simply need to copy the file into /usr/share/sane/ In my case I got the firmware file from the CD that came with the scanner (if the file is not there, try installing the cd with WINE- don't use the program but search for the needed file and copy it or do a quick internet search) and copied this file "ccd548.fw" into /usr/share/sane/gt68xx/ | ||
</li><li>If your scanner is a Mustek 1200 UB Plus you will need this file [http://www.meier-geinitz.de/sane/gt68xx-backend/firmware/sbfw.usb sbfw.usb] then rename it to "PS1fw.usb" then put the file in the directory "/usr/share/sane/gt68xx" (remember to give read permission to all users) | |||
</li><li>You have a parallel port scanner and you are not a member of the scanner group. The device /dev/parport0 (or whichever parallel port your scanner is connected to) by default is only readable and writable by user lp and group scanner. You can become member of group scanner via the User Privileges tab of the Account Properties dialog in the User Settings (Users and Groups) administration tool.</li></ol> | |||
==== Manually installing a scanner ==== | ==== Manually installing a scanner ==== | ||
第46行: | 第49行: | ||
4.) Fire up sane and scan away. | 4.) Fire up sane and scan away. | ||
'''Note:''' Because of the way Linux's hotplugging stuff works, you may need to plug in the scanner after the computer has booted. If you're having problems seeing the scanner, you might want to try this. | '''Note:''' Because of the way Linux's hotplugging stuff works, you may need to plug in the scanner after the computer has booted. If you're having problems seeing the scanner, you might want to try this. | ||
=== Manually Installing a Network Scanner === | |||
Ubuntu does not automatically detect a scanner that is shared by a remote computer so you need to set it up manually: | Ubuntu does not automatically detect a scanner that is shared by a remote computer so you need to set it up manually: | ||
===== Server-side Setup ===== | ===== Server-side Setup (9.10) ===== | ||
Do the same as for 9.04 below, except : | |||
- Add the following line to /etc/inetd.conf | |||
<pre><nowiki> | |||
sane-port stream tcp nowait saned.saned /usr/sbin/saned root (if you put saned it doesn't work for me) | |||
</nowiki></pre> | |||
- in /etc/default/saned | |||
<pre><nowiki> | |||
change RUN_AS_USER from saned to root | |||
</nowiki></pre> | |||
===== Server-side Setup (9.04) ===== | |||
On the computer that is sharing the scanner you need to change one line in /etc/default/saned to read: | |||
<pre><nowiki> | |||
# Set to yes to start saned | |||
RUN=yes | |||
</nowiki></pre> | |||
Now add the following line to /etc/sane.d/saned.conf to share the printer with all computers on your subnet: | |||
<pre><nowiki> | |||
192.168.1.0/24 | |||
</nowiki></pre> | |||
Then start the Sane daemon (saned) by running: (when on Ubuntu 9.10) | |||
<pre><nowiki> | |||
sudo invoke-rc.d saned start (restart instead of start) | |||
</nowiki></pre> | |||
To configure the Sane daemon start automatically at boot up run: | |||
<pre><nowiki> | |||
sudo update-rc.d saned defaults | |||
</nowiki></pre> | |||
===== Server-side Setup (8.10 and earlier) ===== | |||
On the computer that is sharing the scanner you need to add the following line to /etc/inetd.conf | On the computer that is sharing the scanner you need to add the following line to /etc/inetd.conf | ||
<pre><nowiki> | <pre><nowiki> | ||
第59行: | 第90行: | ||
Or, if you are using xinetd, create a file called /etc/xinetd.d/saned and enter the following in the file: | Or, if you are using xinetd, create a file called /etc/xinetd.d/saned and enter the following in the file: | ||
<pre><nowiki> | <pre><nowiki> | ||
service saned | |||
{ | { | ||
socket_type = stream | socket_type = stream | ||
第64行: | 第96行: | ||
protocol = tcp | protocol = tcp | ||
user = saned | user = saned | ||
group = | group = scanner | ||
wait = no | wait = no | ||
disable = no | disable = no | ||
第73行: | 第105行: | ||
sudo /etc/init.d/xinetd restart | sudo /etc/init.d/xinetd restart | ||
</nowiki></pre> | </nowiki></pre> | ||
Now add the following line to /etc/sane.d/ | Now add the following line to /etc/sane.d/saned.conf to share the printer with all computers on your subnet: | ||
<pre><nowiki> | <pre><nowiki> | ||
192.168.1.0/24 | 192.168.1.0/24 | ||
</nowiki></pre> | </nowiki></pre> | ||
Finally, you need to add "saned" group to "scanner" at /etc/group, because of the permissions. If your scanner is an old parallel port scanner you need to add | |||
"saned" to the "lp" group. | |||
====== ACL permissions for saned ====== | |||
Because of a change is the way access permissions are now applied to devices, saned may still not be able to access the scanner when it is launched by inetd or xinetd. This can happen even though other regular users on the server have access. The following bug-report contains a solution to this problem : | |||
* [https://bugs.launchpad.net/ubuntu/+source/sane-backends/+bug/229343 saned cannot access the scanner in Hardy] | |||
===== Client-side Setup ===== | ===== Client-side Setup ===== | ||
From the client, all you need to do is add server name or IP address of the scanner server to /etc/sane.d/net.conf: | From the client, all you need to do is add server name or IP address of the scanner server to /etc/sane.d/net.conf: | ||
第96行: | 第133行: | ||
* [http://www.sane-project.org/ SANE project] (Scanner Access Now Easy) | * [http://www.sane-project.org/ SANE project] (Scanner Access Now Easy) | ||
* [http://tldp.org/HOWTO/Scanner-HOWTO/index.html SANE's scanner howto] | * [http://tldp.org/HOWTO/Scanner-HOWTO/index.html SANE's scanner howto] | ||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2010年5月20日 (四) 00:08的最新版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/ScanningHowTo }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:ScanningHowTo | UbuntuHelp:ScanningHowTo | {{#if: | :}}ScanningHowTo}}/af | • {{#if: UbuntuHelp:ScanningHowTo|Afrikaans| [[::ScanningHowTo/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ScanningHowTo | UbuntuHelp:ScanningHowTo | {{#if: | :}}ScanningHowTo}}/ar | • {{#if: UbuntuHelp:ScanningHowTo|العربية| [[::ScanningHowTo/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ScanningHowTo | UbuntuHelp:ScanningHowTo | {{#if: | :}}ScanningHowTo}}/az | • {{#if: UbuntuHelp:ScanningHowTo|azərbaycanca| [[::ScanningHowTo/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ScanningHowTo | UbuntuHelp:ScanningHowTo | {{#if: | :}}ScanningHowTo}}/bcc | • {{#if: UbuntuHelp:ScanningHowTo|جهلسری بلوچی| [[::ScanningHowTo/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ScanningHowTo | UbuntuHelp:ScanningHowTo | {{#if: | :}}ScanningHowTo}}/bg | • {{#if: UbuntuHelp:ScanningHowTo|български| [[::ScanningHowTo/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ScanningHowTo | UbuntuHelp:ScanningHowTo | {{#if: | :}}ScanningHowTo}}/br | • {{#if: UbuntuHelp:ScanningHowTo|brezhoneg| [[::ScanningHowTo/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ScanningHowTo | UbuntuHelp:ScanningHowTo | {{#if: | :}}ScanningHowTo}}/ca | • {{#if: UbuntuHelp:ScanningHowTo|català| [[::ScanningHowTo/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ScanningHowTo | UbuntuHelp:ScanningHowTo | {{#if: | :}}ScanningHowTo}}/cs | • {{#if: UbuntuHelp:ScanningHowTo|čeština| [[::ScanningHowTo/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ScanningHowTo | UbuntuHelp:ScanningHowTo | {{#if: | :}}ScanningHowTo}}/de | • {{#if: UbuntuHelp:ScanningHowTo|Deutsch| [[::ScanningHowTo/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ScanningHowTo | UbuntuHelp:ScanningHowTo | {{#if: | :}}ScanningHowTo}}/el | • {{#if: UbuntuHelp:ScanningHowTo|Ελληνικά| [[::ScanningHowTo/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ScanningHowTo | UbuntuHelp:ScanningHowTo | {{#if: | :}}ScanningHowTo}}/es | • {{#if: UbuntuHelp:ScanningHowTo|español| [[::ScanningHowTo/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ScanningHowTo | UbuntuHelp:ScanningHowTo | {{#if: | :}}ScanningHowTo}}/fa | • {{#if: UbuntuHelp:ScanningHowTo|فارسی| [[::ScanningHowTo/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ScanningHowTo | UbuntuHelp:ScanningHowTo | {{#if: | :}}ScanningHowTo}}/fi | • {{#if: UbuntuHelp:ScanningHowTo|suomi| [[::ScanningHowTo/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ScanningHowTo | UbuntuHelp:ScanningHowTo | {{#if: | :}}ScanningHowTo}}/fr | • {{#if: UbuntuHelp:ScanningHowTo|français| [[::ScanningHowTo/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ScanningHowTo | UbuntuHelp:ScanningHowTo | {{#if: | :}}ScanningHowTo}}/gu | • {{#if: UbuntuHelp:ScanningHowTo|ગુજરાતી| [[::ScanningHowTo/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ScanningHowTo | UbuntuHelp:ScanningHowTo | {{#if: | :}}ScanningHowTo}}/he | • {{#if: UbuntuHelp:ScanningHowTo|עברית| [[::ScanningHowTo/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ScanningHowTo | UbuntuHelp:ScanningHowTo | {{#if: | :}}ScanningHowTo}}/hu | • {{#if: UbuntuHelp:ScanningHowTo|magyar| [[::ScanningHowTo/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ScanningHowTo | UbuntuHelp:ScanningHowTo | {{#if: | :}}ScanningHowTo}}/id | • {{#if: UbuntuHelp:ScanningHowTo|Bahasa Indonesia| [[::ScanningHowTo/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ScanningHowTo | UbuntuHelp:ScanningHowTo | {{#if: | :}}ScanningHowTo}}/it | • {{#if: UbuntuHelp:ScanningHowTo|italiano| [[::ScanningHowTo/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ScanningHowTo | UbuntuHelp:ScanningHowTo | {{#if: | :}}ScanningHowTo}}/ja | • {{#if: UbuntuHelp:ScanningHowTo|日本語| [[::ScanningHowTo/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ScanningHowTo | UbuntuHelp:ScanningHowTo | {{#if: | :}}ScanningHowTo}}/ko | • {{#if: UbuntuHelp:ScanningHowTo|한국어| [[::ScanningHowTo/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ScanningHowTo | UbuntuHelp:ScanningHowTo | {{#if: | :}}ScanningHowTo}}/ksh | • {{#if: UbuntuHelp:ScanningHowTo|Ripoarisch| [[::ScanningHowTo/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ScanningHowTo | UbuntuHelp:ScanningHowTo | {{#if: | :}}ScanningHowTo}}/mr | • {{#if: UbuntuHelp:ScanningHowTo|मराठी| [[::ScanningHowTo/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ScanningHowTo | UbuntuHelp:ScanningHowTo | {{#if: | :}}ScanningHowTo}}/ms | • {{#if: UbuntuHelp:ScanningHowTo|Bahasa Melayu| [[::ScanningHowTo/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ScanningHowTo | UbuntuHelp:ScanningHowTo | {{#if: | :}}ScanningHowTo}}/nl | • {{#if: UbuntuHelp:ScanningHowTo|Nederlands| [[::ScanningHowTo/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ScanningHowTo | UbuntuHelp:ScanningHowTo | {{#if: | :}}ScanningHowTo}}/no | • {{#if: UbuntuHelp:ScanningHowTo|norsk| [[::ScanningHowTo/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ScanningHowTo | UbuntuHelp:ScanningHowTo | {{#if: | :}}ScanningHowTo}}/oc | • {{#if: UbuntuHelp:ScanningHowTo|occitan| [[::ScanningHowTo/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ScanningHowTo | UbuntuHelp:ScanningHowTo | {{#if: | :}}ScanningHowTo}}/pl | • {{#if: UbuntuHelp:ScanningHowTo|polski| [[::ScanningHowTo/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ScanningHowTo | UbuntuHelp:ScanningHowTo | {{#if: | :}}ScanningHowTo}}/pt | • {{#if: UbuntuHelp:ScanningHowTo|português| [[::ScanningHowTo/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ScanningHowTo | UbuntuHelp:ScanningHowTo | {{#if: | :}}ScanningHowTo}}/ro | • {{#if: UbuntuHelp:ScanningHowTo|română| [[::ScanningHowTo/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ScanningHowTo | UbuntuHelp:ScanningHowTo | {{#if: | :}}ScanningHowTo}}/ru | • {{#if: UbuntuHelp:ScanningHowTo|русский| [[::ScanningHowTo/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ScanningHowTo | UbuntuHelp:ScanningHowTo | {{#if: | :}}ScanningHowTo}}/si | • {{#if: UbuntuHelp:ScanningHowTo|සිංහල| [[::ScanningHowTo/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ScanningHowTo | UbuntuHelp:ScanningHowTo | {{#if: | :}}ScanningHowTo}}/sq | • {{#if: UbuntuHelp:ScanningHowTo|shqip| [[::ScanningHowTo/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ScanningHowTo | UbuntuHelp:ScanningHowTo | {{#if: | :}}ScanningHowTo}}/sr | • {{#if: UbuntuHelp:ScanningHowTo|српски / srpski| [[::ScanningHowTo/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ScanningHowTo | UbuntuHelp:ScanningHowTo | {{#if: | :}}ScanningHowTo}}/sv | • {{#if: UbuntuHelp:ScanningHowTo|svenska| [[::ScanningHowTo/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ScanningHowTo | UbuntuHelp:ScanningHowTo | {{#if: | :}}ScanningHowTo}}/th | • {{#if: UbuntuHelp:ScanningHowTo|ไทย| [[::ScanningHowTo/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ScanningHowTo | UbuntuHelp:ScanningHowTo | {{#if: | :}}ScanningHowTo}}/tr | • {{#if: UbuntuHelp:ScanningHowTo|Türkçe| [[::ScanningHowTo/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ScanningHowTo | UbuntuHelp:ScanningHowTo | {{#if: | :}}ScanningHowTo}}/vi | • {{#if: UbuntuHelp:ScanningHowTo|Tiếng Việt| [[::ScanningHowTo/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ScanningHowTo | UbuntuHelp:ScanningHowTo | {{#if: | :}}ScanningHowTo}}/yue | • {{#if: UbuntuHelp:ScanningHowTo|粵語| [[::ScanningHowTo/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ScanningHowTo | UbuntuHelp:ScanningHowTo | {{#if: | :}}ScanningHowTo}}/zh | • {{#if: UbuntuHelp:ScanningHowTo|中文| [[::ScanningHowTo/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ScanningHowTo | UbuntuHelp:ScanningHowTo | {{#if: | :}}ScanningHowTo}}/zh-hans | • {{#if: UbuntuHelp:ScanningHowTo|中文(简体)| [[::ScanningHowTo/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ScanningHowTo | UbuntuHelp:ScanningHowTo | {{#if: | :}}ScanningHowTo}}/zh-hant | • {{#if: UbuntuHelp:ScanningHowTo|中文(繁體)| [[::ScanningHowTo/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:ScanningHowTo|:ScanningHowTo|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :ScanningHowTo/zh | | {{#ifexist: ScanningHowTo/zh | | {{#ifeq: {{#titleparts:ScanningHowTo|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:ScanningHowTo|1|-1|}} | zh | | }}
<<Include(Tag/NeedsExpansion)>> Scanning in Ubuntu is actually quite easy. This guide will walk you through how to use your scanner and what to do if Ubuntu cannot find your scanner.
Does my scanner work with Ubuntu?
There are three ways to see if you scanner works in Ubuntu:
- Simply plug it in and try it! If it is a newer USB scanner, it is likely that it will just work.
- Check https://wiki.ubuntu.com/HardwareSupportComponentsScanners which is Ubuntu specific.
- SANE project listing of support scanners - The SANE (Scanner Access Now Easy) project provides most of the backends to the scanning software on Ubuntu.
Using your scanner
Most of the time, Ubuntu will simply detect your scanner and you just be able to use it. To scan a document, you need to follow these steps:
- Place what you want to scan on the scanner
- Go to Applications --> Graphics --> XSane Image Scanner
- Alternately, pressing the scan button on the scanner should also work
What if it says "No devices available"?
There are five reasons why you might get this message.
- Your scanner is not supported in Ubuntu. The most common type of scanner not supported is old parallel port or Lexmark All-in-One printer/scanner/faxes
- The driver for your scanner is not being autoloaded
- You need to install the firmware file (probably a *.fw or *.usb) for your particular scanner. You simply need to copy the file into /usr/share/sane/ In my case I got the firmware file from the CD that came with the scanner (if the file is not there, try installing the cd with WINE- don't use the program but search for the needed file and copy it or do a quick internet search) and copied this file "ccd548.fw" into /usr/share/sane/gt68xx/
- If your scanner is a Mustek 1200 UB Plus you will need this file sbfw.usb then rename it to "PS1fw.usb" then put the file in the directory "/usr/share/sane/gt68xx" (remember to give read permission to all users)
- You have a parallel port scanner and you are not a member of the scanner group. The device /dev/parport0 (or whichever parallel port your scanner is connected to) by default is only readable and writable by user lp and group scanner. You can become member of group scanner via the User Privileges tab of the Account Properties dialog in the User Settings (Users and Groups) administration tool.
Manually installing a scanner
There are some scanners that have less than complete drivers from the SANE project. They can sometimes be used, but not all the features may work. These scanners are:
- HP 4200
- HP 3300C
- HP 4300C
- Agfa Snapscan Touch
- HP 4400C
- HP 4470C
- Make sure the Universe repository is enabled. The easiest way to do this is probably through Synaptic.
- Get the drivers by searching Synaptic for libsane-extras or at a terminal type:
sudo apt-get install libsane-extras
- Edit the /etc/sane.d/dll.conf and enable the right driver for your scanner. Look for the lines that say:
# The following backends are not part of the SANE distribution # but are provided by the libsane-extras Debian package
Below it are several commented out lines. Uncomment (delete the #) the right one for your scanner, as follows:
- HP 4200 - uncomment the
hp4200
line. - HP 3300C, HP 3400C, HP 4300C, Afga Snapscan Touch - uncomment the
niash
line. - HP 4400C, HP 4470C - uncomment the
hp_rts88xx
line.
4.) Fire up sane and scan away. Note: Because of the way Linux's hotplugging stuff works, you may need to plug in the scanner after the computer has booted. If you're having problems seeing the scanner, you might want to try this.
Manually Installing a Network Scanner
Ubuntu does not automatically detect a scanner that is shared by a remote computer so you need to set it up manually:
Server-side Setup (9.10)
Do the same as for 9.04 below, except : - Add the following line to /etc/inetd.conf
sane-port stream tcp nowait saned.saned /usr/sbin/saned root (if you put saned it doesn't work for me)
- in /etc/default/saned
change RUN_AS_USER from saned to root
Server-side Setup (9.04)
On the computer that is sharing the scanner you need to change one line in /etc/default/saned to read:
# Set to yes to start saned RUN=yes
Now add the following line to /etc/sane.d/saned.conf to share the printer with all computers on your subnet:
192.168.1.0/24
Then start the Sane daemon (saned) by running: (when on Ubuntu 9.10)
sudo invoke-rc.d saned start (restart instead of start)
To configure the Sane daemon start automatically at boot up run:
sudo update-rc.d saned defaults
Server-side Setup (8.10 and earlier)
On the computer that is sharing the scanner you need to add the following line to /etc/inetd.conf
sane-port stream tcp nowait saned.saned /usr/sbin/saned saned
And restart inetd:
sudo /etc/init.d/inetd restart
Or, if you are using xinetd, create a file called /etc/xinetd.d/saned and enter the following in the file:
service saned { socket_type = stream server = /usr/sbin/saned protocol = tcp user = saned group = scanner wait = no disable = no }
And restart xinetd:
sudo /etc/init.d/xinetd restart
Now add the following line to /etc/sane.d/saned.conf to share the printer with all computers on your subnet:
192.168.1.0/24
Finally, you need to add "saned" group to "scanner" at /etc/group, because of the permissions. If your scanner is an old parallel port scanner you need to add "saned" to the "lp" group.
ACL permissions for saned
Because of a change is the way access permissions are now applied to devices, saned may still not be able to access the scanner when it is launched by inetd or xinetd. This can happen even though other regular users on the server have access. The following bug-report contains a solution to this problem :
Client-side Setup
From the client, all you need to do is add server name or IP address of the scanner server to /etc/sane.d/net.conf:
192.168.1.100
Now run xsane and it should pick up the new network scanner.
Specific Models
Some specific models have been documented here:
Helping Ubuntu support more scanners
There are a number of ways you can help Ubuntu support more scanners
- Support the SANE (Scanner Access Now Easy) project, which provides most of the scanning backend information. Contributing to SANE
- When purchasing a new scanner, always ask if it works in Linux
- Contact the manufacturer about supporting your scanner under Linux. Make certain you tell them about the SANE project
External links
- SANE project (Scanner Access Now Easy)
- SANE's scanner howto