<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://buffalo.nas-central.org/w/skins/common/feed.css?207"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>Scanner - Revision history</title>
		<link>http://buffalo.nas-central.org/w/index.php?title=Scanner&amp;action=history</link>
		<description>Revision history for this page on the wiki</description>
		<language>en</language>
		<generator>MediaWiki 1.15.1</generator>
		<lastBuildDate>Thu, 23 May 2013 18:03:18 GMT</lastBuildDate>
		<item>
			<title>Andre:&amp;#32;added reference to http://buffalo.nas-central.org/index.php/USB_devices_including_CUPS_printing%2C_scanners%2C_and_webcams#Scanner_Sharing</title>
			<link>http://buffalo.nas-central.org/w/index.php?title=Scanner&amp;diff=20376&amp;oldid=prev</link>
			<description>&lt;p&gt;added reference to http://buffalo.nas-central.org/index.php/USB_devices_including_CUPS_printing%2C_scanners%2C_and_webcams#Scanner_Sharing&lt;/p&gt;

		&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;col class='diff-marker' /&gt;
		&lt;col class='diff-content' /&gt;
		&lt;col class='diff-marker' /&gt;
		&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 06:56, 10 May 2008&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 63:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 63:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;nbsp; &amp;lt;font color=red&amp;gt;http://sanetwain.ozuzo.net/ &amp;lt;/font&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;nbsp; &amp;lt;font color=red&amp;gt;http://sanetwain.ozuzo.net/ &amp;lt;/font&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;EDIT: More details in our own article http://buffalo.nas-central.org/index.php/USB_devices_including_CUPS_printing%2C_scanners%2C_and_webcams#Scanner_Sharing andre&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;It will allow Twain integration easily into any windows programs including work etc as though it were directly connected (NB check your firewalls to allow access). You may have to delete the Devices line in the C:\Windows\sanetwain.ini file before connecting. I don't know a good solution yet, but it is caused by sanetwain recording the last good libusb connection number, but it changes the next time the scanner is turned on.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;It will allow Twain integration easily into any windows programs including work etc as though it were directly connected (NB check your firewalls to allow access). You may have to delete the Devices line in the C:\Windows\sanetwain.ini file before connecting. I don't know a good solution yet, but it is caused by sanetwain recording the last good libusb connection number, but it changes the next time the scanner is turned on.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff generator: internal 2013-05-19 08:49:41 --&gt;
&lt;!-- diff cache key nascentral_wiki-mwiki_:diff:version:1.11a:oldid:9333:newid:20376 --&gt;
&lt;/table&gt;</description>
			<pubDate>Sat, 10 May 2008 06:56:23 GMT</pubDate>			<dc:creator>Andre</dc:creator>			<comments>http://buffalo.nas-central.org/wiki/Talk:Scanner</comments>		</item>
		<item>
			<title>Bauldrick at 09:48, 26 January 2007</title>
			<link>http://buffalo.nas-central.org/w/index.php?title=Scanner&amp;diff=9333&amp;oldid=prev</link>
			<description>&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Template:Articles}}''&amp;lt;font color=red&amp;gt;&amp;lt;small&amp;gt;&lt;br /&gt;
This article &lt;br /&gt;
Based on work by Myno, andre, mindbender, downlalaway, Thorongil, frontalot, and TcT.&lt;br /&gt;
Originally by downlalaway&lt;br /&gt;
at Linkstationwiki.org&lt;br /&gt;
&amp;lt;/small&amp;gt;&amp;lt;/font&amp;gt;''&amp;lt;br&amp;gt;&lt;br /&gt;
This is a basic run through of USB devices connecting for Debian on an PPC LinkStation. The USB hard drive is USB 2.0 at 3Mb/s (on a laptop HD). NB. This was based on using the original kernel #990 conversion of the LS 1 and not the Freelink project. It has been updated for use with Freelink 1.11 but requires run-throughs by others to check.&lt;br /&gt;
USB and hotplug was/is a little flakey on 2.4 kernels in recognising devices. A reboot while the device is in should make things work. The 2.6 debian kernel is highly recommended if hot-swapping of usb devices might occur.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Scanner Setup ===&lt;br /&gt;
&lt;br /&gt;
For scanner I originally used xsane -this can test if your scanner actually works. Confident people might go straight to sane.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;font color=red&amp;gt;apt-get install xsane  &amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It worked and found the scanner first time through a vnc link as root -before I did &amp;lt;font color=red&amp;gt;./MAKEDEV&amp;lt;/font&amp;gt; or mknod etc. If xsane works this is a good start.&lt;br /&gt;
&lt;br /&gt;
There is a good way of networking your scanner -this is pretty impossible in windows except with a corporate commercial program I saw. You need to install sane on the LS as per:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;font color=red&amp;gt;apt-get install sane sane-utils &amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I used versions 1.0.15-10, a newer version is now current. sane-utils sets up a 'saned' user and group which are the safe ways to access instead of root as xsane used. Best to check this is in /etc/group.&lt;br /&gt;
&lt;br /&gt;
The main difficulty is giving your scanner access to non-root. There's a number of tricks depending on hardware (mine an Epson CX3200 printer/scanner). This is how I (downlalaway) did it:&lt;br /&gt;
As root do &amp;lt;font color=red&amp;gt;scanimage -L&amp;lt;/font&amp;gt; this should find a scanner - if not reboot and reboot/replug scanner. Hopefully a found scanner is id'd and uses libusb. Try as a non-root user - it probably won't find it yet.&lt;br /&gt;
&lt;br /&gt;
'''Note: the following script was unnnecessary when using udev on 2.6.16 experimetning on a debian Linksys NSLU2, and is expected to be the same with udev on a linkststation.&lt;br /&gt;
&lt;br /&gt;
So to get non-root access to the scanner I had to add a small script to automatically give the scanner group as 'scanner' -details from: &amp;lt;font color=red&amp;gt;http://www.freecolormanagement.com/sane/libusb.html&amp;lt;/font&amp;gt;&lt;br /&gt;
And the relevant section:&lt;br /&gt;
Save the script as /etc/hotplug/usb/epson_scanner and make it executable.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;font color=red&amp;gt;&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 &lt;br /&gt;
 if [ &amp;quot;${ACTION}&amp;quot; = &amp;quot;add&amp;quot; ] &amp;amp;&amp;amp; [ -f &amp;quot;${DEVICE}&amp;quot; ]&lt;br /&gt;
 then&lt;br /&gt;
         chown root &amp;quot;${DEVICE}&amp;quot;&lt;br /&gt;
         chgrp scanner &amp;quot;${DEVICE}&amp;quot;&lt;br /&gt;
         chmod 660 &amp;quot;${DEVICE}&amp;quot;&lt;br /&gt;
 fi&lt;br /&gt;
 &amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Check in /etc/group there's a group 'scanner' and add any usernames you want access and the saned user.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;font color=red&amp;gt;scanner:x:102:root,username,saned&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reboot the scanner and LS to update group list. Now we need to log in as saned and check saned access. As root type:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;font color=red&amp;gt;linkstation#su -s /bin/sh - saned &amp;lt;/font&amp;gt;&lt;br /&gt;
 &amp;lt;font color=red&amp;gt;saned@linkstation$scanimage -L    &amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This should find your scanner again if its all worked -try some rebooting/repluggin first if not and check root still finds it.&lt;br /&gt;
So it works for non-root locally now to get networked follow the advice at: &amp;lt;font color=red&amp;gt;http://penguin-breeder.org/sane/saned/ &amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The steps are:&lt;br /&gt;
-&amp;gt;1. Setup up inetd (or xinetd) with /etc/inetd.conf to start saned on a request&lt;br /&gt;
-&amp;gt;2. Check /etc/services (should be default ok)&lt;br /&gt;
-&amp;gt;3. Set inetd to start at boot (Webmin..system..bootup and shutdown.. tick the inetd entry and press button to start on boot)&lt;br /&gt;
&lt;br /&gt;
To access from a Windows box use sanetwain (its great!):&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;font color=red&amp;gt;http://sanetwain.ozuzo.net/ &amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It will allow Twain integration easily into any windows programs including work etc as though it were directly connected (NB check your firewalls to allow access). You may have to delete the Devices line in the C:\Windows\sanetwain.ini file before connecting. I don't know a good solution yet, but it is caused by sanetwain recording the last good libusb connection number, but it changes the next time the scanner is turned on.&lt;br /&gt;
You could also use XSane (for Win or Linux) and other Linux derivatives -Kooka etc.&lt;br /&gt;
&lt;br /&gt;
Enjoy and please carefully comment if it doesn't work or changes needed.&lt;br /&gt;
&lt;br /&gt;
[[Category:USB]]&lt;br /&gt;
[[Category:Debian]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;font color=red&amp;gt;''Originally by downlalaway and edited by frontalot, Myno, andre, mindbender, downlalaway, Thorongil and TcT from linkstationwiki.org''&amp;lt;/font&amp;gt;&amp;lt;/center&amp;gt;&lt;/div&gt;</description>
			<pubDate>Fri, 26 Jan 2007 09:48:08 GMT</pubDate>			<dc:creator>Bauldrick</dc:creator>			<comments>http://buffalo.nas-central.org/wiki/Talk:Scanner</comments>		</item>
	</channel>
</rss>