sane-project-website/old-archive/1998-10/0167.html

145 wiersze
5.5 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="Thu Oct 15 11:14:12 1998 PDT" -->
<!-- sent="Thu, 15 Oct 1998 14:12:35 -0400 (EDT)" -->
<!-- name="Ray Curtis" -->
<!-- email="ray@ray.clark.net" -->
<!-- subject="Re: how to make net scanner appear in xscanimage?" -->
<!-- id="" -->
<!-- inreplyto="Pine.LNX.3.96.981015085102.19044A-100000@nain.oso.chalmers.se" -->
<title>sane-devel: Re: how to make net scanner appear in xscanimage?</title>
<h1>Re: how to make net scanner appear in xscanimage?</h1>
<b>Ray Curtis</b> (<a href="mailto:ray@ray.clark.net"><i>ray@ray.clark.net</i></a>)<br>
<i>Thu, 15 Oct 1998 14:12:35 -0400 (EDT)</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#167">[ date ]</a><a href="index.html#167">[ thread ]</a><a href="subject.html#167">[ subject ]</a><a href="author.html#167">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0168.html">leila belhadjali: "Re: Umax 1220s scans 'dark'."</a>
<li> <b>Previous message:</b> <a href="0166.html">Oliver Rauch: "Re: Umax 1220s scans 'dark'."</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>
<!-- body="start" -->
<i>&gt;&gt;&gt;&gt;&gt; "o" == olberg &lt;<a href="mailto:olberg@oso.chalmers.se">olberg@oso.chalmers.se</a>&gt; writes:</i><br>
<p>
o&gt; Hej again,<br>
o&gt; So it seems I am not alone with my problem and I might even have gotten<br>
o&gt; further than some other people. Here is what I did.<br>
<p>
o&gt; In the following I'll call the machine having the scanner connected to it<br>
o&gt; for server, the machine from which I want to access the scanner via the<br>
o&gt; net for client.<br>
<p>
o&gt; (0) I assume in the following that the scanner (an HP SJIICX in my case)<br>
o&gt; is working on the server, of course.<br>
<p>
o&gt; (1) I added <br>
<p>
o&gt; sane stream tcp nowait root /usr/sbin/tcpd saned<br>
<p>
My line from a RedHat-5.1 system reads:<br>
<p>
sane stream tcp nowait root /usr/sbin/in.identd saned<br>
<p>
indentd is a daemon that listens for connections on sockets.<br>
This is the redhat method.<br>
<p>
o&gt; to /etc/inetd.conf on the server. Note that I have root here, which the<br>
o&gt; documentation advises against, I'll probably change that later. I am using<br>
o&gt; /usr/sbin/tcpd so I can control the access for individual machines via<br>
o&gt; /etc/hosts.allow (see: man 5 hosts_access)<br>
<p>
o&gt; Note also that I call the service 'sane' and not 'saned'. It was confirmed<br>
o&gt; in the meantime on this list that this is the right service name. The<br>
o&gt; documentation isn't completely clear about this.<br>
<p>
o&gt; (2) I added<br>
<p>
o&gt; sane 6566/tcp # scanner network access<br>
<p>
Same here.<br>
<p>
o&gt; to /etc/services on the server<br>
<p>
o&gt; (3) I did <br>
<p>
o&gt; kill -HUP 120<br>
<p>
o&gt; where 120 turns out to be the process id of the 'inetd' process. (Do a <br>
o&gt; 'ps aux | grep inetd' to find that process id.) This will restart 'inetd'<br>
o&gt; and force it to note the change in /etc/inetd.conf.<br>
<p>
o&gt; (4) I added<br>
<p>
o&gt; sane 6566/tcp # scanner network access<br>
<p>
o&gt; this time to /etc/services on the client. No need to restart inetd or to<br>
o&gt; modify /etc/inetd.conf.<br>
<p>
o&gt; (5) I uncommented the 'net' device in .../sane.d/dll.conf:<br>
<p>
I even commented out everything except the 'net' entry.<br>
<p>
o&gt; # enable the next line if you want to allow access through the network:<br>
o&gt; net<br>
o&gt; ...<br>
<p>
o&gt; on actually both the client and the server, I do believe it's only<br>
o&gt; necessary on the client.<br>
<p>
o&gt; (6) I checked that I can reach the 6566 port by trying<br>
<p>
o&gt; telnet server 6566<br>
<p>
o&gt; on the client. You should just get a few lines of text saying<br>
<p>
o&gt; Trying ....<br>
o&gt; Connected to ...<br>
o&gt; ...<br>
<p>
Yes this works fine on both my machines also.<br>
<p>
<p>
o&gt; hit &lt;CTRL-C&gt; to get your prompt back. You should not see 'permission<br>
o&gt; denied' or anything else indicating that you couldn't connect. Because I<br>
o&gt; use tcpd I get an entry in the /var/log/messages file on my server saying<br>
<p>
o&gt; Oct 15 08:50:48 server saned[10291]: connect from olberg@client<br>
<p>
o&gt; (7) Now for the real test. On the client I did<br>
<p>
o&gt; xscanimage net:server:hp<br>
<p>
With the server word changed to my server with this I get a popup with the line:<br>
<p>
failed to open device: Error during device I/O<br>
<p>
I also see an entry in the server log file:<br>
<p>
Oct 15 14:07:13 ray saned[7609]: access by <a href="mailto:saned-user@picard.ray.clark.net">saned-user@picard.ray.clark.net</a> rejected<br>
<p>
Now this works fine from the server, just not the client machine.<br>
<p>
Any ideas or suggestions, much appreciated.<br>
<p>
Thanks,<br>
<p>
<pre>
--
<a href="mailto:ray@ray.clark.net">mailto:ray@ray.clark.net</a> <a href="http://www.clark.net/pub/ray">http://www.clark.net/pub/ray</a>
============================================================================
<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="0168.html">leila belhadjali: "Re: Umax 1220s scans 'dark'."</a>
<li> <b>Previous message:</b> <a href="0166.html">Oliver Rauch: "Re: Umax 1220s scans 'dark'."</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>