<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://dev1galaxy.org/extern.php?action=feed&amp;tid=1519&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Scanner and sane-utils]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=1519</link>
		<description><![CDATA[The most recent posts in Scanner and sane-utils.]]></description>
		<lastBuildDate>Sat, 23 Sep 2017 14:05:25 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Scanner and sane-utils]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=5120#p5120</link>
			<description><![CDATA[<p>Thanks golinux.</p>]]></description>
			<author><![CDATA[dummy@example.com (viverna)]]></author>
			<pubDate>Sat, 23 Sep 2017 14:05:25 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=5120#p5120</guid>
		</item>
		<item>
			<title><![CDATA[Re: Scanner and sane-utils]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=4189#p4189</link>
			<description><![CDATA[<p>Thanks and welcome, viverna.</p>]]></description>
			<author><![CDATA[dummy@example.com (golinux)]]></author>
			<pubDate>Fri, 04 Aug 2017 15:52:19 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=4189#p4189</guid>
		</item>
		<item>
			<title><![CDATA[Scanner and sane-utils]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=4188#p4188</link>
			<description><![CDATA[<p>Hello folks,<br />I&#039;m a new Devuan user (from Debian) from few week.<br />In Debian world I had a problem with my scanner, the script (run by user root) in /usr/local/bin/sanato solves the problem assigning group &#039;scanner&#039; to device:</p><div class="codebox"><pre><code>#!/bin/sh
line=`sane-find-scanner | grep &#039;found USB scanner&#039; | sed -e &#039;s/.*libusb://&#039;`
if [ &quot;$line&quot; = &quot;&quot; ]; then
        echo not found
else
        line=`echo $line | sed -e &#039;s;:;/;&#039;`
        chgrp scanner /dev/bus/usb/$line
fi</code></pre></div><p>With devuan remained the problem. Sane-utils is systemd infected and so I wrote a new script:</p><div class="codebox"><pre><code>#!/bin/sh
line=`lsusb|grep &quot;Your model&quot;|sed -e &#039;s/Bus \([0-9]\+\) Device \([0-9]\+\).\+/\1\/\2/&#039;`
if [ &quot;$line&quot; = &quot;&quot; ]; then
        echo not found
else
        chgrp scanner /dev/bus/usb/$line
fi</code></pre></div><p>Change &quot;Your model&quot; with your scanner.</p><p>Udev rules that run script:</p><div class="codebox"><pre><code># /etc/udev/rules.d/42-usb-permissions.rules
SUBSYSTEM!=&quot;usb&quot;, GOTO=&quot;end_skip_usb&quot;

ACTION==&quot;add&quot;, RUN+=&quot;/usr/local/bin/sanato&quot;

LABEL=&quot;end_skip_usb&quot;</code></pre></div><p>It can serve someone.</p>]]></description>
			<author><![CDATA[dummy@example.com (viverna)]]></author>
			<pubDate>Fri, 04 Aug 2017 14:47:05 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=4188#p4188</guid>
		</item>
	</channel>
</rss>
