It was not so old. Anyway http://trac.nslu2-linux.org/optware/changeset/7986 upgraded sane-backends to latest release.
SANE-Backends-1.0.19 has been released on Februar with new and updated backends. I'm not a Linux guru, I can't build the ipk package, but I need it -- I want to buy a new scanner. Have anybody already planned to build the new version?
It was not so old. Anyway http://trac.nslu2-linux.org/optware/changeset/7986 upgraded sane-backends to latest release.
But the ipk package is pretty old...
It seems that wl500g is not supported any more. Oleg firmware now uses http://ipkg.nslu2-linux.org/feeds/op.../cross/stable/
To get this package you must use wl500g toolchain yourself.
Hi everyone,
I have been trying to follow this howto and now i am stuck on getting xinet working. i got this strange error:
Jan 1 00:00:14 xinetd[167]: Bad socket type: stream^M [file=/opt/etc/xinetd.d/saned] [line=4]
I created the file with nano editor...
Can anyone give a clue of whats the problem?
Thanks in advance,
PCTV
here goes the system log:
Code:Jan 1 00:00:11 kernel: kjournald starting. Commit interval 5 seconds Jan 1 00:00:11 kernel: EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,1), internal journal Jan 1 00:00:11 kernel: EXT3-fs: mounted filesystem with ordered data mode. Jan 1 00:00:11 kernel: Adding Swap: 70700k swap-space (priority -1) Jan 1 00:00:12 kernel: printer.c: usblp0 Device ID string [84/max 1552]='MFG:EPSON;CMD:ESCPL2,BDC,D4;MDL:Stylus CX3600;CLS:PRINTER;DES:EPSON Stylus CX3600;' Jan 1 00:00:12 kernel: printer.c: Parsing USBLPID... Jan 1 00:00:12 kernel: HTB init, kernel part version 3.16 Jan 1 00:00:12 kernel: HTB: quantum of class 10001 is big. Consider r2q change. Jan 1 00:00:13 kernel: HTB: quantum of class 10010 is small. Consider r2q change. Jan 1 00:00:13 kernel: HTB: quantum of class 10011 is small. Consider r2q change. Jan 1 00:00:13 kernel: HTB: quantum of class 10013 is big. Consider r2q change. Jan 1 00:00:14 kernel: HTB init, kernel part version 3.16 Jan 1 00:00:14 kernel: HTB: quantum of class 10001 is big. Consider r2q change. Jan 1 00:00:14 xinetd[167]: Bad socket type: stream^M [file=/opt/etc/xinetd.d/saned] [line=4] Jan 1 00:00:14 xinetd[167]: Error parsing attribute socket_type - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=4] Jan 1 00:00:14 xinetd[167]: Server /opt/sbin/saned^M is not executable [file=/opt/etc/xinetd.d/saned] [line=5] Jan 1 00:00:14 xinetd[167]: Error parsing attribute server - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=5] Jan 1 00:00:14 xinetd[167]: Protocol tcp^M not in /etc/protocols [file=/opt/etc/xinetd.d/saned] [line=6] Jan 1 00:00:14 xinetd[167]: Error parsing attribute protocol - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=6] Jan 1 00:00:14 xinetd[167]: Unknown user: root^M [file=/opt/etc/xinetd.d/saned] [line=7] Jan 1 00:00:14 xinetd[167]: Error parsing attribute user - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=7] Jan 1 00:00:14 xinetd[167]: Unknown group: root^M [file=/opt/etc/xinetd.d/saned] [line=8] Jan 1 00:00:14 xinetd[167]: Error parsing attribute group - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=8] Jan 1 00:00:14 xinetd[167]: Bad value for wait: no^M [file=/opt/etc/xinetd.d/saned] [line=9] Jan 1 00:00:14 xinetd[167]: Error parsing attribute wait - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=9] Jan 1 00:00:14 xinetd[167]: Bad value: no^M [file=/opt/etc/xinetd.d/saned] [line=10] Jan 1 00:00:14 xinetd[167]: Error parsing attribute disable - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=10] Jan 1 00:00:14 xinetd[167]: 167 {init_services} no services. Exiting... Jan 1 00:00:14 kernel: lp driver: get device ID Jan 1 00:00:14 xinetd[171]: Bad socket type: stream^M [file=/opt/etc/xinetd.d/saned] [line=4] Jan 1 00:00:14 xinetd[171]: Error parsing attribute socket_type - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=4] Jan 1 00:00:14 xinetd[171]: Server /opt/sbin/saned^M is not executable [file=/opt/etc/xinetd.d/saned] [line=5] Jan 1 00:00:14 xinetd[171]: Error parsing attribute server - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=5] Jan 1 00:00:14 xinetd[171]: Protocol tcp^M not in /etc/protocols [file=/opt/etc/xinetd.d/saned] [line=6] Jan 1 00:00:14 xinetd[171]: Error parsing attribute protocol - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=6] Jan 1 00:00:14 xinetd[171]: Unknown user: root^M [file=/opt/etc/xinetd.d/saned] [line=7] Jan 1 00:00:14 xinetd[171]: Error parsing attribute user - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=7] Jan 1 00:00:14 xinetd[171]: Unknown group: root^M [file=/opt/etc/xinetd.d/saned] [line=8] Jan 1 00:00:14 xinetd[171]: Error parsing attribute group - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=8] Jan 1 00:00:14 xinetd[171]: Bad value for wait: no^M [file=/opt/etc/xinetd.d/saned] [line=9] Jan 1 00:00:14 xinetd[171]: Error parsing attribute wait - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=9] Jan 1 00:00:14 xinetd[171]: Bad value: no^M [file=/opt/etc/xinetd.d/saned] [line=10] Jan 1 00:00:14 kernel: neg fail Jan 1 00:00:14 xinetd[171]: Error parsing attribute disable - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=10] Jan 1 00:00:14 xinetd[171]: 171 {init_services} no services. Exiting... Jan 1 00:00:14 kernel: neg fail Jan 1 00:00:14 kernel: HTB: quantum of class 10010 is small. Consider r2q change. Jan 1 00:00:14 kernel: HTB: quantum of class 10011 is small. Consider r2q change. Jan 1 00:00:14 kernel: HTB: quantum of class 10013 is big. Consider r2q change. Jan 1 00:00:14 kernel: HTB init, kernel part version 3.16 Jan 1 00:00:14 kernel: HTB: quantum of class 10001 is big. Consider r2q change. Jan 1 00:00:15 kernel: HTB: quantum of class 10010 is small. Consider r2q change. Jan 1 00:00:15 kernel: HTB: quantum of class 10011 is small. Consider r2q change. Jan 1 00:00:15 kernel: HTB: quantum of class 10013 is big. Consider r2q change. Jan 1 00:00:15 dhcp client: bound IP : 83.132.141.130 from 83.132.141.254 Jan 1 00:00:20 kernel: MSDOS FS: Using codepage 850 Jan 1 00:00:20 USB storage: vfat fs at /dev/discs/disc1/part1 mounted to /tmp/mnt/disc1_1 Mar 18 04:23:02 ntp client: Synchronizing time with time.nist.gov ...
TryCode:sed -i -e 's/\r$//' /opt/etc/xinetd.d/saned
Thanks Oleo, for the fast response but didnt work...
Code:Jan 1 00:00:11 kernel: kjournald starting. Commit interval 5 seconds Jan 1 00:00:11 dnsmasq[90]: DHCPREQUEST(br0) 192.168.1.203 00:19:d2:53:70:51 Jan 1 00:00:11 dnsmasq[90]: DHCPACK(br0) 192.168.1.203 00:19:d2:53:70:51 MARIOGON-M400 Jan 1 00:00:11 kernel: EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,1), internal journal Jan 1 00:00:11 kernel: EXT3-fs: mounted filesystem with ordered data mode. Jan 1 00:00:11 kernel: Adding Swap: 70700k swap-space (priority -1) Jan 1 00:00:12 kernel: printer.c: usblp0 Device ID string [84/max 1552]='MFG:EPSON;CMD:ESCPL2,BDC,D4;MDL:Stylus CX3600;CLS:PRINTER;DES:EPSON Stylus CX3600;' Jan 1 00:00:12 kernel: printer.c: Parsing USBLPID... Jan 1 00:00:12 kernel: HTB init, kernel part version 3.16 Jan 1 00:00:13 kernel: HTB: quantum of class 10001 is big. Consider r2q change. Jan 1 00:00:13 kernel: HTB: quantum of class 10010 is small. Consider r2q change. Jan 1 00:00:13 kernel: HTB: quantum of class 10011 is small. Consider r2q change. Jan 1 00:00:13 kernel: HTB: quantum of class 10013 is big. Consider r2q change. Jan 1 00:00:14 kernel: HTB init, kernel part version 3.16 Jan 1 00:00:14 xinetd[171]: Bad socket type: stream^M [file=/opt/etc/xinetd.d/saned] [line=4] Jan 1 00:00:14 xinetd[171]: Error parsing attribute socket_type - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=4] Jan 1 00:00:14 xinetd[171]: Server /opt/sbin/saned^M is not executable [file=/opt/etc/xinetd.d/saned] [line=5] Jan 1 00:00:14 xinetd[166]: Bad socket type: stream^M [file=/opt/etc/xinetd.d/saned] [line=4] Jan 1 00:00:14 xinetd[166]: Error parsing attribute socket_type - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=4] Jan 1 00:00:14 xinetd[166]: Server /opt/sbin/saned^M is not executable [file=/opt/etc/xinetd.d/saned] [line=5] Jan 1 00:00:14 xinetd[166]: Error parsing attribute server - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=5] Jan 1 00:00:14 xinetd[166]: Protocol tcp^M not in /etc/protocols [file=/opt/etc/xinetd.d/saned] [line=6] Jan 1 00:00:14 xinetd[171]: Error parsing attribute server - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=5] Jan 1 00:00:14 xinetd[171]: Protocol tcp^M not in /etc/protocols [file=/opt/etc/xinetd.d/saned] [line=6] Jan 1 00:00:14 xinetd[166]: Error parsing attribute protocol - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=6] Jan 1 00:00:14 xinetd[166]: Unknown user: root^M [file=/opt/etc/xinetd.d/saned] [line=7] Jan 1 00:00:14 xinetd[166]: Error parsing attribute user - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=7] Jan 1 00:00:14 xinetd[166]: Unknown group: root^M [file=/opt/etc/xinetd.d/saned] [line=8] Jan 1 00:00:14 xinetd[166]: Error parsing attribute group - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=8] Jan 1 00:00:14 xinetd[166]: Bad value for wait: no^M [file=/opt/etc/xinetd.d/saned] [line=9] Jan 1 00:00:14 xinetd[166]: Error parsing attribute wait - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=9] Jan 1 00:00:14 xinetd[166]: Bad value: no^M [file=/opt/etc/xinetd.d/saned] [line=10] Jan 1 00:00:14 xinetd[166]: Error parsing attribute disable - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=10] Jan 1 00:00:14 xinetd[166]: 166 {init_services} no services. Exiting... Jan 1 00:00:14 kernel: lp driver: get device ID Jan 1 00:00:14 xinetd[171]: Error parsing attribute protocol - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=6] Jan 1 00:00:14 xinetd[171]: Unknown user: root^M [file=/opt/etc/xinetd.d/saned] [line=7] Jan 1 00:00:14 xinetd[171]: Error parsing attribute user - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=7] Jan 1 00:00:14 kernel: neg fail Jan 1 00:00:14 xinetd[171]: Unknown group: root^M [file=/opt/etc/xinetd.d/saned] [line=8] Jan 1 00:00:14 xinetd[171]: Error parsing attribute group - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=8] Jan 1 00:00:14 xinetd[171]: Bad value for wait: no^M [file=/opt/etc/xinetd.d/saned] [line=9] Jan 1 00:00:14 xinetd[171]: Error parsing attribute wait - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=9] Jan 1 00:00:14 xinetd[171]: Bad value: no^M [file=/opt/etc/xinetd.d/saned] [line=10] Jan 1 00:00:14 xinetd[171]: Error parsing attribute disable - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=10] Jan 1 00:00:14 xinetd[171]: 171 {init_services} no services. Exiting... Jan 1 00:00:14 kernel: neg fail
It is obvious that you have DOS CR/LD problem. Erase config and type if from scratch using vi.
It got better after editing with VI.
Thanks again for this fantastic HowTo and support!
Now it returns the following error:
Code:Jan 1 00:00:13 xinetd[166]: Unknown user: root [file=/opt/etc/xinetd.d/saned] [line=7] Jan 1 00:00:13 xinetd[166]: Error parsing attribute user - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=7] Jan 1 00:00:13 xinetd[166]: service/protocol combination not in /etc/services: saned/tcp Jan 1 00:00:13 xinetd[166]: 166 {init_services} no services. Exiting...
Last edited by PCTV; 18-03-2008 at 14:09.
duplicate user admin in /etc/passwd to root
and register /etc/passwd in flashfs /usr/local/.files
Sorry for my newbie questions, but what do you mean by register, i dont have the file or directory .files...
Concerning the duplicating my passwd its now like this:
admin:$$$$$$$$$$$$$$$$$/:0:0:root:/usr/local/root:/bin/sh
root:$$$$$$$$$$$$$$$$/:0:0:root:/usr/local/root:/bin/sh
nobody:x:99:99:nobody:/:/sbin/nologin
the log appears like this:
And scanimage -L doesn´t found anything...Code:Jan 1 00:00:05 kernel: hub.c: USB hub found Jan 1 00:00:05 kernel: hub.c: 4 ports detected Jan 1 00:00:05 kernel: lp0: using parport0 (polling). Jan 1 00:00:06 kernel: hub.c: new USB device 00:04.0-1.1, assigned address 3 Jan 1 00:00:06 kernel: usb.c: USB device 3 (vend/prod 0x1370/0x2168) is not claimed by any active driver. Jan 1 00:00:06 kernel: usb.c: registered new driver usblp Jan 1 00:00:06 kernel: printer.c: v0.13: USB Printer Device Class driver Jan 1 00:00:06 kernel: hub.c: new USB device 00:04.0-1.2, assigned address 4 Jan 1 00:00:06 kernel: printer.c: usblp0: USB Bidirectional printer dev 4 if 1 alt 0 proto 2 vid 0x04B8 pid 0x080E Jan 1 00:00:06 kernel: printer.c: usblp0 Device ID string [84]='MFG:EPSON;CMD:ESCPL2,BDC,D4;MDL:Stylus CX3600;CLS:PRINTER;DES:EPSON Stylus CX3600;' ........ Jan 1 00:00:11 kernel: printer.c: usblp0 Device ID string [84/max 1552]='MFG:EPSON;CMD:ESCPL2,BDC,D4;MDL:Stylus CX3600;CLS:PRINTER;DES:EPSON Stylus CX3600;' Jan 1 00:00:11 kernel: printer.c: Parsing USBLPID... Jan 1 00:00:12 kernel: HTB init, kernel part version 3.16 Jan 1 00:00:12 kernel: HTB: quantum of class 10001 is big. Consider r2q change. Jan 1 00:00:12 kernel: HTB: quantum of class 10010 is small. Consider r2q change. Jan 1 00:00:12 kernel: HTB: quantum of class 10011 is small. Consider r2q change. Jan 1 00:00:13 kernel: usb.c: registered new driver usbscanner Jan 1 00:00:13 kernel: scanner.c: 0.4.16:USB Scanner Driver Jan 1 00:00:13 kernel: HTB: quantum of class 10013 is big. Consider r2q change. Jan 1 00:00:13 xinetd[158]: Unknown user: root [file=/opt/etc/xinetd.d/saned] [line=7] Jan 1 00:00:13 xinetd[158]: Error parsing attribute user - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=7] Jan 1 00:00:13 xinetd[158]: service/protocol combination not in /etc/services: saned/tcp Jan 1 00:00:13 xinetd[158]: 158 {init_services} no services. Exiting...
Once again, thanks,
Mário
Hi everyone,
I figure it out the register and dupicating, and minor issues...
The only error on log now is:
So far scanimage -L doesnt find any scanners...Code:Jan 1 00:00:03 kernel: hub.c: new USB device 00:04.0-1.2, assigned address 4 Jan 1 00:00:03 kernel: usb.c: USB device 4 (vend/prod 0x4b8/0x80e) is not claimed by any active driver. ........ Jan 1 00:00:13 kernel: usb.c: registered new driver usbscanner Jan 1 00:00:13 kernel: scanner.c: 0.4.16:USB Scanner Driver Jan 1 00:00:13 kernel: scanner.c: probe_scanner: User specified USB scanner -- Vendor:Product - 4b8:80e Jan 1 00:00:13 kernel: HTB init, kernel part version 3.16 Jan 1 00:00:13 kernel: HTB: quantum of class 10001 is big. Consider r2q change. Jan 1 00:00:13 kernel: HTB: quantum of class 10010 is small. Consider r2q change. Jan 1 00:00:13 kernel: HTB: quantum of class 10011 is small. Consider r2q change. Jan 1 00:00:13 xinetd[160]: xinetd Version 2.3.14 started with no options compiled in. Jan 1 00:00:13 xinetd[160]: Started working: 1 available service Jan 1 00:00:13 xinetd[166]: bind failed (Address already in use (errno = 125)). service = saned Jan 1 00:00:13 xinetd[166]: Service saned failed to start and is deactivated. Jan 1 00:00:13 xinetd[166]: 166 {init_services} no services. Exiting...
I have a all-in-one Epson CX3650.
I guess i need the Epson backend. I founf this one http://khk.net/sane/download.html but i not able to compile it... Can anyone do it, please?
Thanks in advance, for any help...
PCTV
Last edited by PCTV; 19-03-2008 at 00:33.
xinetd is neded for remote scanning only. You must edit dll.conf and inclde appropriate scanner. LikeThen you could try scanimage of findscanner. Of course you need USB modules loaded into kernel.Code:# /etc/sane.d/dll.conf - Configuration file for the SANE dynamic backend loader # # See the end of this file for information on some specific backends. # enable the next line if you want to allow access through the network: #net epson
Edit /etc/services and include sane service!
Yur driver should be included in sane-backends distro
Good morning Oleo,
I have the following info on these files:
- /etc/services
- dll.conf, epson, line is includedCode:# Local services saned 6566/tcp # SANE network scanner daemon
- /opt/etc/sane.d/epson.conf
What do you mean by "try scanimage of findscanner".Code:usb # For libusb support for unknown scanners use the following command # usb <product ID> <device ID> # e.g.: usb 0x4b8 0x080e # And for the scanner module, use the following configuration: usb /dev/usbscanner0 usb /dev/usb/scanner0
Regarding the USB modules they should be ok, because i can print remotely...
The output of lsmod, looks like this, and show that scanner module is loaded:
What is missing?Code:[admin@wl500g sane.d]$ lsmod Module Size Used by Tainted: P scanner 11996 0 (unused) usb-storage 63928 2 sd_mod 13276 4 scsi_mod 70200 2 [usb-storage sd_mod] printer 12836 0 lp 8668 0 parport_splink 2956 1 parport 25696 1 [lp parport_splink] usb-ohci 21908 0 (unused) usbcore 78496 1 [scanner usb-storage printer usb-ohci] ip_nat_ftp 3912 0 (unused) ip_conntrack_ftp 5216 1 wl 728968 0 (unused) et 31256 0 (unused)
Cheers,
Mário
man sane-find-scanner and man scanimage