sane-project-website/old-archive/1998-04/0189.html

76 wiersze
3.8 KiB
HTML
Czysty Wina Historia

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

<!-- received="Sat Apr 18 12:49:26 1998 PDT" -->
<!-- sent="Sat, 18 Apr 1998 13:48:51 -0600" -->
<!-- name="Sean Reifschneider" -->
<!-- email="jafo@tummy.com" -->
<!-- subject="Re: /proc/scsi/scsi" -->
<!-- id="" -->
<!-- inreplyto="199804100927.LAA00659@Babylon5.wolfsburg.de" -->
<title>sane-devel: Re: /proc/scsi/scsi</title>
<h1>Re: /proc/scsi/scsi</h1>
<b>Sean Reifschneider</b> (<a href="mailto:jafo@tummy.com"><i>jafo@tummy.com</i></a>)<br>
<i>Sat, 18 Apr 1998 13:48:51 -0600</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#189">[ date ]</a><a href="index.html#189">[ thread ]</a><a href="subject.html#189">[ subject ]</a><a href="author.html#189">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0190.html">Dave Restall - System Administrator: "Scanace II Technical Details"</a>
<li> <b>Previous message:</b> <a href="0188.html">Kevin Dalley: "Custom gamma table causes undesired distortions in Astra 1200S"</a>
<li> <b>In reply to:</b> <a href="0098.html">Oliver.Rauch@Wolfsburg.DE: "Re: /proc/scsi/scsi"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>
<!-- body="start" -->
I have given this quite a bit of thought over the years. When we first<br>
started selling XVScan for Linux, we were getting quite a high percentage<br>
of support calls that were basically just scanner setup problems...<br>
Once I got a fairly robust install script created, they have essentially<br>
dropped off to zero.<br>
<p>
The problem is more general than just scanners though. It affects other<br>
devices as well (such as CD-ROM writers, etc...). In XVScan, the install<br>
"helper" program is designed such that it can be run at every boot from<br>
the rc scripts in case the scanner has moved.<br>
<p>
But what you really want is a program that will walk through the<br>
connected SCSI devices and takes action based on a configuration<br>
file, something like the following:<br>
<p>
VENDOR="HP" MODEL="*" TYPE=3 CREATE=/dev/scanjet? PERMS=660:root:floppy<br>
VENDOR="*" MODEL="*" TYPE=6 CREATE=/dev/scanner? PERMS=660:root:floppy<br>
VENDOR="YAMAHA" MODEL="*" TYPE=&lt;cd-writer-type&gt; CREATE=/dev/cdwriter?<br>
PERMS=660:root:floppy<br>
<p>
Using regular expressions is of course useful. The CREATE directive would<br>
specify what device file names to create ("filename?" tells the program to<br>
create "filename0" for the first found instance, "filename1" for the second,<br>
etc...). This would also allow you to specify the permissions and owners.<br>
<p>
The problem with just linking "/dev/scanner" to "/dev/sgX" is that the sg<br>
device files RARELY have the proper permissions for scanning as a user.<br>
<p>
Scanner detection can be a problem though. Linux isn't so hard, but<br>
try looking for a scanner on the second bus of an HP workstation...<br>
<p>
Sean<br>
<pre>
--
"If all you have is a hammer, every problem tends to look like a nail."
Sean Reifschneider, Inimitably Superfluous &lt;<a href="mailto:jafo@tummy.com">jafo@tummy.com</a>&gt;
URL: &lt;<a href="http://www.tummy.com/xvscan">http://www.tummy.com/xvscan</a>&gt; HP-UX/Linux/FreeBSD/BSDOS scanning software.
<p>
<pre>
--
Source code, list archive, and docs: <a href="http://www.mostang.com/sane/">http://www.mostang.com/sane/</a>
To unsubscribe: echo unsubscribe sane-devel | mail <a href="mailto:majordomo@mostang.com">majordomo@mostang.com</a>
</pre>
<!-- body="end" -->
<p>
<ul>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0190.html">Dave Restall - System Administrator: "Scanace II Technical Details"</a>
<li> <b>Previous message:</b> <a href="0188.html">Kevin Dalley: "Custom gamma table causes undesired distortions in Astra 1200S"</a>
<li> <b>In reply to:</b> <a href="0098.html">Oliver.Rauch@Wolfsburg.DE: "Re: /proc/scsi/scsi"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>