sane-project-website/old-archive/1999-08/0265.html

86 wiersze
3.3 KiB
HTML

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="Sun Aug 22 09:13:05 1999 PDT" -->
<!-- sent="Sun, 22 Aug 1999 14:52:07 +0200" -->
<!-- name="Andreas Beck" -->
<!-- email="becka@rz.uni-duesseldorf.de" -->
<!-- subject="Re: net problem" -->
<!-- id="" -->
<!-- inreplyto="37BFD481.52E3A3A7@tvd.be" -->
<title>sane-devel: Re: net problem</title>
<h1>Re: net problem</h1>
<b>Andreas Beck</b> (<a href="mailto:becka@rz.uni-duesseldorf.de"><i>becka@rz.uni-duesseldorf.de</i></a>)<br>
<i>Sun, 22 Aug 1999 14:52:07 +0200</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#265">[ date ]</a><a href="index.html#265">[ thread ]</a><a href="subject.html#265">[ subject ]</a><a href="author.html#265">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0266.html">Oliver Rauch: "xsane-0.33 available"</a>
<li> <b>Previous message:</b> <a href="0264.html">Oliver Rauch: "sane-umax-build-9"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>
<!-- body="start" -->
<i>&gt; Added</i><br>
<i>&gt; sane 6566/tcp # network scanner daemon</i><br>
<i>&gt; to /etc/services</i><br>
Correct.<br>
<p>
<i>&gt; sane stream tcp nowait root /usr/local/sbin/saned saned</i><br>
<i>&gt; to /etc/inetd.conf</i><br>
<p>
The root is not so nice, but o.k. for testing. I myself use "nobody" and<br>
have a setgid saned for minimum risk, but for a first test, root should be<br>
o.k.<br>
<p>
And I suppose you have sent SIGHUP to inetd, so it rereads its config -<br>
right ?<br>
<p>
<i>&gt; localhost</i><br>
<i>&gt; to /usr/local/etc/sane.d/net.conf</i><br>
Right.<br>
<p>
<i>&gt; uncommented net in dll.conf</i><br>
Yep.<br>
<p>
<i>&gt; this is the output I get (with SANE_DEBUG_NET=128), the first</i><br>
<i>&gt; succesfull probe is from the local microtek2 backend, the other</i><br>
<i>&gt; failing probe is from the net driver. Needless to say, the net</i><br>
<p>
<i>&gt; [sanei_init_debug]: Setting debug level of net to 128.</i><br>
<i>&gt; [net] adding backend localhost</i><br>
<i>&gt; [net] get_devices: ignoring rpc-returned status Unknown SANE status code 168448867</i><br>
<p>
This is very weird. This sounds like the sane daemon failing very very early<br>
or not connecting at all. Try straceing both sides of the connection.<br>
The logs should give a clue on that.<br>
<p>
The daemon side might be a bit tricky, as it appears, when the connection is<br>
made, started from inetd. There are two possible ways to get around this:<br>
<p>
1. Make a small script "ssaned", that looks like<br>
#!/bin/bash<br>
exec strace saned 2&gt;/tmp/logfile<br>
<p>
2. use "strace -p [pid_of_inetd] -f" to attach to the inetd, and "-f"ollow<br>
when it forks off the saned.<br>
<p>
CU, Andy<br>
<p>
<pre>
--
= Andreas Beck | Email : &lt;<a href="mailto:andreas.beck@ggi-project.org">andreas.beck@ggi-project.org</a>&gt; =
<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="0266.html">Oliver Rauch: "xsane-0.33 available"</a>
<li> <b>Previous message:</b> <a href="0264.html">Oliver Rauch: "sane-umax-build-9"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>