Hi Joao,
Thanks for the user info.
I used you commands to make the default group and default user
addgroup -S -g <group id> default
adduser -S -g "avahi daemon" -G default -u <user id under 100> -h /var/
lib/default default
chown -R default:default /etc/avahi/
ln -sf /usr/sbin/rcscript /sbin/rcavahi
Note that your posting made an avahi user, it needs to be default,
also there wasn't a .conf file I don't think so I made the whole avahi
directory owned by default.
Anyway, if took me a while to work out I needed to do the save
settings via the web admin to make the user and group stay there after
reboot :)
On boot the log seems to say that avahi started successfully so thats
good.
%%%%%%%%%%%%%%%%%%%% from system log
Nov 17 20:33:26 CampbellNAS
daemon.info avahi-daemon[483]: Found user
'default' (UID 83) and group 'default' (GID 83).
Nov 17 20:33:26 CampbellNAS
daemon.info avahi-daemon[483]:
Successfully dropped root privileges.
Nov 17 20:33:26 CampbellNAS
daemon.info avahi-daemon[483]: avahi-
daemon 0.6.23 starting up.
Nov 17 20:33:26 CampbellNAS daemon.warn avahi-daemon[483]: WARNING: No
NSS support for mDNS detected, consider installing nss-mdns!
Nov 17 20:33:26 CampbellNAS
daemon.info avahi-daemon[483]: Loading
service file /etc/avahi/services/sftp-ssh.service.
Nov 17 20:33:26 CampbellNAS
daemon.info avahi-daemon[483]: Loading
service file /etc/avahi/services/ssh.service.
Nov 17 20:33:26 CampbellNAS
daemon.info avahi-daemon[483]: Joining
mDNS multicast group on interface eth0.IPv4 with address
192.168.0.102.
Nov 17 20:33:26 CampbellNAS
daemon.info avahi-daemon[483]: New
relevant interface eth0.IPv4 for mDNS.
Nov 17 20:33:26 CampbellNAS
daemon.info avahi-daemon[483]: Network
interface enumeration completed.
Nov 17 20:33:26 CampbellNAS
daemon.info avahi-daemon[483]: Registering
new address record for 192.168.0.102 on eth0.IPv4.
Nov 17 20:33:26 CampbellNAS
daemon.info avahi-daemon[483]: Registering
HINFO record with values 'ARMV5TEL'/'LINUX'.
Nov 17 20:33:26 CampbellNAS user.notice root:
Nov 17 20:33:27 CampbellNAS
daemon.info avahi-daemon[483]: Server
startup complete. Host name is CampbellNAS.local. Local service cookie
is 174717744.
Nov 17 20:33:28 CampbellNAS
daemon.info avahi-daemon[483]: Service
"CampbellNAS" (/etc/avahi/services/ssh.service) successfully
established.
Nov 17 20:33:28 CampbellNAS
daemon.info avahi-daemon[483]: Service
"SFTP File Transfer on CampbellNAS" (/etc/avahi/services/sftp-
ssh.service) successfully established.
%%%%%%%%%%%%%
Google seems to say the NSS stuff isn't required.
So now to the problems:
1.
MacBook can't see the nas via avahi/bonjour, but can see the samba.
Ubuntu can see samba AND see 'SFTP File Transfer on CampbellNas' but
can't mount it.
2.
I added Type= net into the start up scripts, so I can see the avahi
daemon in the web admin.
However, even though the service starts on boot, the web page says
that service is not running. ps confirms that it is.
Is there some naming that needs to be the same for it to know it is
running. I put a NAME= in the script too, which is the same as the
name of the daemon I believe.
Any help appreciated.
Haven't played any more with miniDLNA, but will do some at some point.