Want to make a Nethserver-avahi and Netserver-Netatalk module / package

Suite du sujet Feature request: Avahi as a standalone package in the software center:


I read a lot about develop a module for the Avahi service.
I think I could be a perfect opportunity to learn more about the Nethserver webgui.

I think it’s relatively easy to create:
Of course install the avahi package and start the service automatically.
And in the webgui:

  • One left menu entry
    In configuration → Avahi / Bonjour

  • three or four fields to configure the /etc/avahi/avahi-deamon.conf
    Hostname server
    Domain name
    interface(s) to listen
    interface(s) to deny

  • One firewall rule entry.
    open the port 5353 TCP/UDP

But I need help.
How to start?
The documentation is huge… Where to digg?
Is a developer can guide me?

Maybe someone of the Dev “Dream” Team :computer: could help you. @giacomo, @davidep, @filippo_carletti, @alep, @stephdl, @Stll0, @jobezic only if you :pray: a lot

I’d go in two steps:

  1. make avahi work without an interface (only configuration db)
  2. add an interface

We need to create a tutorial from this process.
A good starting point could be a similar package. Any idea @giacomo or @davidep?
nethserver-mysql or nethserver-cups?

1 Like


Do we have it already?

I suggest nethserver-xinetd:

Maybe we could do a tutorial during a live hangout.
Or on irc #nethserver.

1 Like

I suggest nethserver-openssh!

At our last hangout a few participants ask me this /cc @Nas @Ctek @warren_midgley @etino

1 Like

I am also interested… :wink:

I think Irc is better:

  • For the time availability.
  • With writing stuff, you can’t miss something, you can always copy/paste to remember.

So, we don’t need to write nethserver-avahi, because we already have it. :smile:
Maybe we can close this topic, @Jim. Or do you think we need to improve the version we have now?

@alefattorini, I’d leave to you the plan for a “developers hangout”. :smile:

Have a nice weekend everybody.

When the package will be in the repository?
For now, I’ve only

# yum list avahi
Loaded plugins: changelog, fastestmirror, nethserver_events, presto
Loading mirror speeds from cached hostfile
 * nethserver-base: mirror.nethserver.org
 * nethserver-updates: mirror.nethserver.org
centos-base                                              | 3.7 kB     00:00     
centos-updates                                           | 3.4 kB     00:00     
nethserver-base                                          | 3.6 kB     00:00     
nethserver-updates                                       | 4.1 kB     00:00     
Installed Packages
avahi.x86_64                     0.6.25-15.el6                      @centos-base
Available Packages
avahi.i686                       0.6.25-15.el6                      centos-base 
[root@microserver ~]#

Edit: I found the NEthserver-avahi… I will try it

Already there on nethserver-base

[alessio@***]$ yum list nethserver-avahi
Loaded plugins: changelog, downloadonly, fastestmirror, nethserver_events,
              : presto
Loading mirror speeds from cached hostfile
 * nethserver-base: mirror.nethesis.it
Installed Packages
nethserver-avahi.noarch            1.0.2-1.ns6             @nethserver-base/6.5

Anyway devs have gived you a lot of advices for your development dreams :smiley:

Sure, I hope the next one is going to be a “Developers hangout” :slight_smile:

Yes, It can be improved… Where is the left menu item? Where are the few fields to configure the name, domain name and the interface to enable or deny? :smiley:

I was simply thinking about a sort of this above

you have a lot of example of code in your hand, take a look to github or directly inside your server at /usr/share/nethesis/NethServer. It is no more a learning by coding…look, copy, modify, enhance and release.

the difficulty is that you need also to learn git and mock (to make rpm) but for sysadmin or developers it is nothing.


The parameters for Avahi and the basics parameters for afpd are similar.
i.e.: allow interfaces / deny interfaces in avahi
and afp interfaces / afp listen for afpd

If nethserver-avahi already exist, I think for a nethserver-netatalk it could be make with fingers in the noze :grin: