Child pages
  • QNAP NAS

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
Installing xinetd (2.3.14-9) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q1armel/cross/unstable
/xinetd_2.3.14-9_arm.ipk
Nothing to be done
Successfully terminated.
Collected errors:
Package xinetd md5sum mismatch. Either the ipkg or the package index are corrupt
. Try 'ipkg update'.

 

 

 

 

Code Block
ipkg update

And try to install again.

Then execute the following command:

...

Normally this shouldn't be any problem.
When this is done we need to configure all this.

From now on i only give the foldernames for RAID1 configurations.
So keep in mind if your Foldernames contains HDA_DATA then use this in stead of my examples with MD0_DATA, If you are using older firmware versions also think about the different folder structure.
 

Nrowse Browse to the following folder in telnet command window:

...

Code Block
[~] # cd /share/MD0_DATA/.qpkg/Optware/etc/xinetd.d

 

(note HDA_DATA can be different , check your configuration)

create here a new file named : saned it this not yet exist if already exist just open with vi

...

ADD THIS LINE to services file:

 

Code Block
# Local services

saned 6566/tcp # SANE network scanner daemon

...

Code Block
#
# saned.conf
#
# The contents of the saned.conf file is a list of host names, IP
# addresses or IP subnets (CIDR notation) that are permitted to use local
# SANE devices. IPv6 addresses must be enclosed in brackets, and should
# always be specified in their compressed form.
#
# The hostname matching is not case-sensitive.
#
#scan-client.somedomain.firm
#192.168.0.1
#192.168.0.1/29
#[2001:7a8:185e::42:12]
#[2001:7a8:185e::42:12]/64
#
# NOTE: /etc/inetd.conf (or /etc/xinetd.conf) and
# /etc/services must also be properly configured to start
# the saned daemon as documented in saned(8), services(4)
# and inetd.conf(4) (or xinetd.conf(5)).
192.168.1.0/24 #grant access to scanner from network 192.168.1.x

 

THIS LINE IS ONLY THAT IS IMPORTANT

My netwerk is 192.168.1.0 until 192.168.1.255 so with subnetmask : 255.255.255.0

Change it to you network settings: other example : 10.10.1.0/24 alwasy add /24 ad the end
If you want a bigger mask like 255.255.0.0 then use this : 192.168.0.0/16

save the file : first press few times on the ESC button
then type :

...

Code Block
~] # /opt/sbin/xinetd -d
08/11/7@22:21:26: DEBUG: 1493 {handle_includedir} Reading included configuration
 file: /opt/etc/xinetd.d/saned [file=/opt/etc/xinetd.conf] [line=15]
Service defaults
 Instances = 60
 CPS = max conn:25 wait:30
 Bind = All addresses.
 Only from: 127.0.0.1(NUMERIC) 192.168.1.0/255.255.255.0(NET)
 No access: No blocked sites
 Logging to syslog. Facility = authpriv, level = info
 Log_on_success flags = HOST PID
 Log_on_failure flags = HOST

Service configuration: saned
 id = saned
 flags = IPv4
 socket_type = stream
 Protocol (name,number) = (tcp,6)
 port = 6566
 wait = no
 user = 0
 group = 0
 Groups = no
 PER_SOURCE = -1
 Bind = All addresses.
 Server = /opt/sbin/saned
 Server argv = saned
 Only from: 127.0.0.1(NUMERIC) 192.168.1.0/255.255.255.0(NET)
 No access: No blocked sites
 Logging to syslog. Facility = authpriv, level = info
 Log_on_success flags = HOST PID
 Log_on_failure flags = HOST

08/11/7@22:21:26: DEBUG: 1493 {cnf_start_services} Started service: saned
08/11/7@22:21:26: DEBUG: 1493 {cnf_start_services} mask_max = 6, services_starte
d = 1
08/11/7@22:21:26: NOTICE: 1493 {main} xinetd Version 2.3.14 started with no opti
ons compiled in.
08/11/7@22:21:26: NOTICE: 1493 {main} Started working: 1 available service
08/11/7@22:21:26: DEBUG: 1493 {main_loop} active_services = 1

 

...

 

Auto start the config

This method consists in declaring a dummy QPKG which lunch your script at startup.
Log into your QNAP device using SSH or Telnet, for instance by using Putty
Edit QPKG config file:

...