kopia lustrzana https://gitlab.com/sane-project/website
145 wiersze
5.5 KiB
HTML
145 wiersze
5.5 KiB
HTML
<!-- 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>>>>>> "o" == olberg <<a href="mailto:olberg@oso.chalmers.se">olberg@oso.chalmers.se</a>> writes:</i><br>
|
||
<p>
|
||
o> Hej again,<br>
|
||
o> So it seems I am not alone with my problem and I might even have gotten<br>
|
||
o> further than some other people. Here is what I did.<br>
|
||
<p>
|
||
o> In the following I'll call the machine having the scanner connected to it<br>
|
||
o> for server, the machine from which I want to access the scanner via the<br>
|
||
o> net for client.<br>
|
||
<p>
|
||
o> (0) I assume in the following that the scanner (an HP SJIICX in my case)<br>
|
||
o> is working on the server, of course.<br>
|
||
<p>
|
||
o> (1) I added <br>
|
||
<p>
|
||
o> 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> to /etc/inetd.conf on the server. Note that I have root here, which the<br>
|
||
o> documentation advises against, I'll probably change that later. I am using<br>
|
||
o> /usr/sbin/tcpd so I can control the access for individual machines via<br>
|
||
o> /etc/hosts.allow (see: man 5 hosts_access)<br>
|
||
<p>
|
||
o> Note also that I call the service 'sane' and not 'saned'. It was confirmed<br>
|
||
o> in the meantime on this list that this is the right service name. The<br>
|
||
o> documentation isn't completely clear about this.<br>
|
||
<p>
|
||
o> (2) I added<br>
|
||
<p>
|
||
o> sane 6566/tcp # scanner network access<br>
|
||
<p>
|
||
Same here.<br>
|
||
<p>
|
||
o> to /etc/services on the server<br>
|
||
<p>
|
||
o> (3) I did <br>
|
||
<p>
|
||
o> kill -HUP 120<br>
|
||
<p>
|
||
o> where 120 turns out to be the process id of the 'inetd' process. (Do a <br>
|
||
o> 'ps aux | grep inetd' to find that process id.) This will restart 'inetd'<br>
|
||
o> and force it to note the change in /etc/inetd.conf.<br>
|
||
<p>
|
||
o> (4) I added<br>
|
||
<p>
|
||
o> sane 6566/tcp # scanner network access<br>
|
||
<p>
|
||
o> this time to /etc/services on the client. No need to restart inetd or to<br>
|
||
o> modify /etc/inetd.conf.<br>
|
||
<p>
|
||
o> (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> # enable the next line if you want to allow access through the network:<br>
|
||
o> net<br>
|
||
o> ...<br>
|
||
<p>
|
||
o> on actually both the client and the server, I do believe it's only<br>
|
||
o> necessary on the client.<br>
|
||
<p>
|
||
o> (6) I checked that I can reach the 6566 port by trying<br>
|
||
<p>
|
||
o> telnet server 6566<br>
|
||
<p>
|
||
o> on the client. You should just get a few lines of text saying<br>
|
||
<p>
|
||
o> Trying ....<br>
|
||
o> Connected to ...<br>
|
||
o> ...<br>
|
||
<p>
|
||
Yes this works fine on both my machines also.<br>
|
||
<p>
|
||
<p>
|
||
o> hit <CTRL-C> to get your prompt back. You should not see 'permission<br>
|
||
o> denied' or anything else indicating that you couldn't connect. Because I<br>
|
||
o> use tcpd I get an entry in the /var/log/messages file on my server saying<br>
|
||
<p>
|
||
o> Oct 15 08:50:48 server saned[10291]: connect from olberg@client<br>
|
||
<p>
|
||
o> (7) Now for the real test. On the client I did<br>
|
||
<p>
|
||
o> 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>
|