Disable the Avahi daemon

Disable the Avahi daemon


#Disable #Avahi #daemon

Implementation of the ZeroConf protocol, the daemon Avahi allows you to automatically detect the resources of a local network and connect to it. In general terms, your objective is to automatically assign an IP address even without a DHCP server, make the DNS function and create a list of services to access them more easily. Local network machines are informed of the arrival or departure of a service, greatly facilitating the shared use of files, printers, etc.

  • Disadvantages of Avahi

  • Disable in Ubuntu 7.04

  • Disable on Ubuntu 7.10 or higher

  • Deactivate in Debian and derivatives

  • Packages

Disadvantages of Avahi

At disadvantages using this daemon are:

  • Memory consumption (about 248 Kb);
  • Opening of two network ports (UDP 32768 and 5353);
  • Possibility of slow network.

Disable in Ubuntu 7.04

If you do not need to and want to disable it, there is a problem: even if you deselect it in the list of services (menu System> Administration> Services), it will continue to run.

To be able to disable it, edit the file

/etc/default/avahi-daemon

like

root: sudo gedit /etc/default/avahi-daemon

replacing the line AVAHI_DAEMON_START = 1 with AVAHI_DAEMON_START = 0.

The next time the machine is started, the Avahi daemon will not run.

Disable on Ubuntu 7.10 or higher

You can use the services panel to disable Avahi, just follow the path menu System> Administration> Services. In that window, uncheck the daemon in the list that will appear.

Deactivate in Debian and derivatives

The name of the daemon may be different, but the method is the same for Debian systems. Another much simpler method is to enter a command that will allow you to remove links to the daemon:

sudo update-rc.d -f avahi-daemon remove

To recreate the links, use the command

sudo update-rc.d avahi-daemon defaults

.

Note: in Ubuntu 7.04, the command

sudo update-rc.d -f avahi-daemon remove

it is also not enough to eliminate Avahi.

Packages

About Avahi, there are some Debian packages available:

  • The Gnome applet service-discovery-applet allows you to discover the services available on the network and connect easily;
  • The program avahi-discover allows you to search for available services;
  • O gshare allows you to easily share files via FTP with Avahi.
  • O gnome-user-share allows you to easily share files via WebDAV (with Apache2) with Avahi.

Photo: © Everypixel.

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *