What's new

avahi install

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

vdemarco

Senior Member
So i did a opkg install of the avahi-daemon

(after installing the entware stuff), it installed just fine.

but when i start up the avahi-daemon it always compains about not having the /opt/var/run/avahi-daemon

Looking at the avahi daemon code for some reason it requires that the group of the directory and owner is the same as the daemon.

The

directory looks like this?

drwxrwxrwx 4 admin root 1024 Mar 2 13:39 .
drwxr-xr-x 6 admin root 1024 Feb 5 01:07 ..
drwxrwxrwx 2 avahi nobody 1024 Mar 2 13:39 avahi-daemon


Not sure what i am doing wrong, i added the following to the

/jffs/configs/group.add

nogroup:*:-1:
netdev:x:1:
avahi:x:2:

and

to the /jffs/configs/passwd.add
avahi:x:2:2:avahi daemon:/opt/sbin/avahi-daemon:/bin/false

I am sure that i have done something stupid. but not sure where to go from here.
 
avahi setup

I really just want a sleep proxy on the network.

I used to have an apple Timecapsule which provided that.

the time capsule sucked except for the sleep proxy. I was hopping i could add that back with avahi
 
Steps to get avahi-daemon to run

I am not sure what you need in order to get your Sleep Proxy to function, but I also had the need to get avahi-daemon up an running on my n66u with the repeater option set. Here are the steps I took to have my ethernet connected Brother laser printer seen in iOS for Airprint.

0. Install entware and nano, following the wiki; have a functioning jffs partition
1. Install avahi-daemon via entware
opkg install avahi-daemon​
2. Edit the avahi-daemon conf file. For me, the key was to add the lines in bold:
nano /opt/etc/avahi/avahi-daemon.conf​
Code:
[server]
host-name=yourrouter
domain-name=yourdomain.local
use-ipv4=yes
use-ipv6=no
check-response-ttl=no
use-iff-running=no
[B]enable-dbus=no
deny-interfaces=eth0[/B]

[publish]
publish-addresses=yes
publish-hinfo=yes
publish-workstation=no
publish-domain=yes
#publish-dns-servers=192.168.1.1
#publish-resolv-conf-dns-servers=yes

[reflector]
[B]enable-reflector=yes[/B]
reflect-ipv=no

[rlimits]
#rlimit-as=
rlimit-core=0
rlimit-data=4194304
rlimit-fsize=0
rlimit-nofile=30
rlimit-stack=4194304
rlimit-nproc=3

3. Add "nogroup" to the group file:
touch /jffs/configs/group.add
echo "nogroup:x:5:" >> /jffs/configs/group.add​
3a. if you want things to run before rebooting the router run this command
echo "nogroup:x:5:" >> /etc/group​

4. It is now set up to run along with other services in the init.d folder. You can start the avahi-daemon manually with this command:
/opt/etc/init.d/S42avahi-daemon start​
Check if it is alive:
/opt/etc/init.d/S42avahi-daemon check​
 
I am not sure what you need in order to get your Sleep Proxy to function, but I also had the need to get avahi-daemon up an running on my n66u with the repeater option set. Here are the steps I took to have my ethernet connected Brother laser printer seen in iOS for Airprint.

0. Install entware and nano, following the wiki; have a functioning jffs partition
1. Install avahi-daemon via entware
opkg install avahi-daemon​
2. Edit the avahi-daemon conf file. For me, the key was to add the lines in bold:
nano /opt/etc/avahi/avahi-daemon.conf​
Code:
[server]
host-name=yourrouter
domain-name=yourdomain.local
use-ipv4=yes
use-ipv6=no
check-response-ttl=no
use-iff-running=no
[B]enable-dbus=no
deny-interfaces=eth0[/B]

[publish]
publish-addresses=yes
publish-hinfo=yes
publish-workstation=no
publish-domain=yes
#publish-dns-servers=192.168.1.1
#publish-resolv-conf-dns-servers=yes

[reflector]
[B]enable-reflector=yes[/B]
reflect-ipv=no

[rlimits]
#rlimit-as=
rlimit-core=0
rlimit-data=4194304
rlimit-fsize=0
rlimit-nofile=30
rlimit-stack=4194304
rlimit-nproc=3

3. Add "nogroup" to the group file:
touch /jffs/configs/group.add
echo "nogroup:x:5:" >> /jffs/configs/group.add​
3a. if you want things to run before rebooting the router run this command
echo "nogroup:x:5:" >> /etc/group​

4. It is now set up to run along with other services in the init.d folder. You can start the avahi-daemon manually with this command:
/opt/etc/init.d/S42avahi-daemon start​
Check if it is alive:
/opt/etc/init.d/S42avahi-daemon check​

THanks that did the trick. I did everything that you did but i didn't update the conf file.

Thanks again..
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top