[sane-devel] inetd and saned problem
Hi, I have been trying to use the latest saned trough busybox inetd. And I have ran across some serious problems, if i run "saned -d" it works just fine both to find and use the scanner, but as soon as i try to use it trough inetd it refuses. I running a cross compiler for saned.My run environment is:i386,Uclibc 0.9.18,kernel linux 2.4.25. I have followed the saned guide on the website, this is what i have added: /etc/services: sane6566/tcpsaned # scanning service /etc/inetd.conf: sanestream tcp nowait root/usr/sbin/saned saned /etc/sane.d/net.conf: localhost 192.168.0.1(my computer IP) /etc/sane.d/saned.conf: + (when i tried without tcpd i used localhost and the IP of my workstation) When i try to run "SANE_DEBUG_NET=128 scanimage -L" from my workstation (or from the server itself) i get: "[sanei_debug] Setting debug level of net to 128. [net] sane_init: authorize = 0x8049260, version_code = 0xb548 [net] sane_init: SANE net backend version 1.0.6 from sane-backends-1.0.7 [net] sane_init: Client has little endian byte order [net] sane_init: determining sane service port [net] sane_init: found port 6566 [net] sane_init: searching for config file [net] sane_init: trying to add 192.168.0.1 [net] add_device: adding backend 192.168.0.1 [net] add_device: backend 192.168.0.1 added [net] sane_init: done reading config [net] sane_init: evaluating environment variable SANE_NET_HOSTS [net] sane_init: done [net] sane_get_devices: local_only = 0 [net] connect_dev: trying to connect to 192.168.0.1 [net] connect_dev: connection succeeded [net] connect_dev: sanei_w_init [net] connect_dev: net_init (user=(null), local version=1.0.3) [net] connect_dev: argument marshalling error (Connection reset by peer) [net] connect_dev: closing connection to 192.168.0.1 [net] sane_get_devices: ignoring failure to connect to 192.168.0.1 [net] sane_get_devices: finished (0 devices) No scanners were identified. If you were expecting something different, check that the scanner is plugged in, turned on and detected by the sane-find-scanner tool (if appropriate). Please read the documentation which came with this software (README, FAQ, manpages). [net] sane_exit: exiting [net] sane_exit: closing dev 0x805e5b8, ctl=-1 [net] sane_exit: finished." When i try to run telnet 192.168.0.1 from other PC. [root@localhost ~]# telnet 192.168.0.1 6566 Trying 192.168.0.1... Connected to 192.168.0.1 (192.168.0.1). Escape character is '^]'. Connection closed by foreign host. But I run ./busybox telnet 127.0.0.1 6566 on my PC .It is fine.The saned can run. why ? Thanks for a great app anyways. Jacket _ ÂÊÏȳ¢ÊÔ Windows Live Mail¡£ http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-4911fb2b2e6d
[sane-devel] (no subject)
Hi, I have been trying to use the latest saned trough busybox inetd. And I have ran across some serious problems, if i run "saned -d" it works just fine both to find and use the scanner, but as soon as i try to use it trough inetd it refuses. I running a cross compiler for saned.My run environment is:i386,Uclibc 0.9.18,kernel linux 2.4.25. I have followed the saned guide on the website, this is what i have added: /etc/services: sane6566/tcpsaned # scanning service /etc/inetd.conf: sanestream tcp nowait root/usr/sbin/saned saned /etc/sane.d/net.conf: localhost 192.168.0.1(my computer IP) /etc/sane.d/saned.conf: + (when i tried without tcpd i used localhost and the IP of my workstation) When i try to run "SANE_DEBUG_NET=128 scanimage -L" from my workstation (or from the server itself) i get: "[sanei_debug] Setting debug level of net to 128. [net] sane_init: authorize = 0x8049260, version_code = 0xb548 [net] sane_init: SANE net backend version 1.0.6 from sane-backends-1.0.7 [net] sane_init: Client has little endian byte order [net] sane_init: determining sane service port [net] sane_init: found port 6566 [net] sane_init: searching for config file [net] sane_init: trying to add 192.168.0.1 [net] add_device: adding backend 192.168.0.1 [net] add_device: backend 192.168.0.1 added [net] sane_init: done reading config [net] sane_init: evaluating environment variable SANE_NET_HOSTS [net] sane_init: done [net] sane_get_devices: local_only = 0 [net] connect_dev: trying to connect to 192.168.0.1 [net] connect_dev: connection succeeded [net] connect_dev: sanei_w_init [net] connect_dev: net_init (user=(null), local version=1.0.3) [net] connect_dev: argument marshalling error (Connection reset by peer) [net] connect_dev: closing connection to 192.168.0.1 [net] sane_get_devices: ignoring failure to connect to 192.168.0.1 [net] sane_get_devices: finished (0 devices) No scanners were identified. If you were expecting something different, check that the scanner is plugged in, turned on and detected by the sane-find-scanner tool (if appropriate). Please read the documentation which came with this software (README, FAQ, manpages). [net] sane_exit: exiting [net] sane_exit: closing dev 0x805e5b8, ctl=-1 [net] sane_exit: finished." When i try to run telnet 192.168.0.1 from other PC. [root@localhost ~]# telnet 192.168.0.1 6566 Trying 192.168.0.1... Connected to 192.168.0.1 (192.168.0.1). Escape character is '^]'. Connection closed by foreign host. But I run ./busybox telnet 127.0.0.1 6566 on my PC .It is fine.The saned can run. why ? Thanks for a great app anyways. Jacket _ ÂÊÏȳ¢ÊÔ Windows Live Mail¡£ http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-4911fb2b2e6d
[sane-devel] Help!I can not compile successfully
No,It is not my default compiler.I want to know Why show the error "/tools/sane-desc: Inadequate competence" Thank you Best Regards > From: olaf.meeuwis...@avasys.jp > To: wuly12...@hotmail.com > CC: sane-devel@lists.alioth.debian.org > Subject: Re: [sane-devel] Help!I can not compile successfully > Date: Tue, 18 Jul 2006 11:00:55 +0900 > > "wulywuly" writes: > > > Dear All: > > >I have downloadn the source package(sane-backends-1.0.17) for > >compiling.I use command "./configure CC=gcc 3.3 --host=i386", My > > Are you sure you didn't forget a dash? Using "CC=gcc-3.3" might help > but if that is your default compiler, then there is no need to > explicitly set CC. > > >gcc version is 3.3.The configure have passed.But when making,It > >fail.It show that " Entering directory > >`/home/SANE/new/sane-backends-1.0.17/doc',/bin/sh: > >../tools/sane-desc: Inadequate competence " error.I have change > >the competence of sane-desc -rwxrwxrwx.Why?How to do? > > Hope this helps, > -- > Olaf Meeuwissen EPSON AVASYS Corporation, SE1 > FSF Associate Member #1962 sign up at http://member.fsf.org/ > GnuPG key: 6BE37D90/AB6B 0D1F 99E7 1BF5 EB97 976A 16C7 F27D 6BE3 7D90 > Penguin's lib! -- I hack, therefore I am -- LPIC-2 _ ÂÊÏȳ¢ÊÔ Windows Live Mail¡£ http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-4911fb2b2e6d
[sane-devel] Help!I can not compile successfully
Dear All: I have downloadn the source package(sane-backends-1.0.17) for compiling.I use command "./configure CC=gcc 3.3 --host=i386", My gcc version is 3.3.The configure have passed.But when making,It fail.It show that " Entering directory `/home/SANE/new/sane-backends-1.0.17/doc',/bin/sh: ../tools/sane-desc: Inadequate competence " error.I have change the competence of sane-desc -rwxrwxrwx.Why?How to do? _ ÂÊÏȳ¢ÊÔ Windows Live Mail¡£ http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-4911fb2b2e6d
[sane-devel] use net scanner server problem
Hi all: My printer is HP offcejet v40.I have shared my printer on Fedora Core 4. I use xsane(xsane for win32 ) on Windows XP to connect the scanner server.It is successful.But when the xsan start up ,It show "Could not create temporary file" and "Could not creat filenames for preview files".When I scan a picture,The device work fine,but when the picture is scaned finish,It show "Could not create temporary file" ,"Could not creat filenames for preview files" and "Failed to open '(NULL)':no such file or directory".Why show the error?How i to do?My OS is Windows XP SP2 £¨Simplified Chinese£© Thank you! wuly _ ÂÊÏȳ¢ÊÔ Windows Live Mail¡£ http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-4911fb2b2e6d
[sane-devel] Do not open the pnm file or tif file on windows with scanimage
Hi all: My printer is HP offcejet v40.I have shared my printer on Fedora Core 4. I use xsane(xsane for win32 ) on Windows XP to connect the scanner server.It is successful.But When I use command-line "scanimage >out.pnm" or "canimage >out.tif",The device work fine,but the out.pnm and out.tif do not open.I copy them to the liunux,the image become anamorphosis.Why is it? Thank you! wuly _ Windows Live Safety Center ΪÄúµÄ¼ÆËã»úÌṩÃâ·ÑµÄ°²È«É¨Ãè·þÎñ¡£ http://safety.live.com/site/ZH-CN/default.htm
[sane-devel] The xsane problem
Hi all: My printer is HP offcejet v40.I have shared my printer on Fedora Core 4. I use xsane(xsane for win32 ) on Windows XP to connect the scanner server.It is successful.But when the xsan start up ,It show "Could not create temporary file" and "Could not creat filenames for preview files".When I scan a picture,The device work fine,but when the picture is finished,It show "Could not create temporary file" ,"Could not creat filenames for preview files" and "Failed to open '(NULL)':no such file or directory".Why show the error?How i to do? Thank you! wuly _ ÂÊÏȳ¢ÊÔ Windows Live Mail¡£ http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-4911fb2b2e6d