The Avahi daemon discovers network resources, allocates IP addresses without the DHCP server, makes the computer accessible by its local machine name by acting as a DNS server and facilitates sharing of files and printers.
What is the Avahi daemon?
The Avahi daemon is a default daemon in Linux and uses system resources and reduces the network performance. Disabling the Avahi daemon cannot be done by un-checking it from the list of system services. To disable Avahi from Ubuntu systems, the avahi-daemon file has to be modified. At Debian Linux operating systems follows the same procedure, but the name of the daemon may be different. The avahi-discover and the service discovery applet are the packages which are available for Avahi. The Avahi daemon is present as default and allows you to discover network resources and get connected to them.
Its primary roles are to:
- Assign an IP address automatically, even without the presence of a DHCP server.
- Act as DNS (each machine is accessible by the name nameMachine.local).
- Publish services and facilitate access.
Avahi is an implementation of the Zeroconf protocol.
What are the possible drawbacks of Avahi?
- It takes up memory (about 248kb)
- It opens 2 network ports (UDP 32768 and 5353)
It has been reported in some cases to decrease network performance.
How to disable the Avahi daemon?
Under Ubuntu 7.04
If you want to disable it it is not enough to disable it from the list of services. You need to:
- Edit the /etc/default/ avahi-daemon file:
sudo gedit /etc/default/avahi-daemon
- Change the line: AVAHI_DAEMON_START = 1
- to: AVAHI_DAEMON_START = 0
- Reboot your system
Note: The command sudo update-rc.d-f avahi-daemon remove is not enough to disable the Avahi Daemon.
Under Ubuntu 7.10
- Go to the list of services to disable Avahi:
- System Menu > Administration > Services
Under Debian systems
The name of daemon may be different but the method remains the same for Debian-based systems:
sudo update-rc.d -f avahi-daemon remove
- To recreate the used links:
sudo update-rc.d avahi-daemon defaults
- There are some Debian packages available for Avahi:
The service-discovery-applet allows you to discover available services on the network and connect easily.
The avahi-discover application allows you to browse the available services.
- gshare allows you easily share files via FTP with Avahi.
gnome-user-share can easily share files via WebDAV (Apache2) with Avahi.
- Avahi-daemon disable
- Ubuntu disable avahi
- What is avahi-daemon
- Logging daemon > Guide
- Sign check error daemon tools > Forum - Software
- Enable Advanced Emulation on Daemon Tools Lite
- Create an ISO Disk Image: in Windows 10, file > Guide
- Daemon Tools Lite: burn an ISO image > Guide
- How to compile assembly code: in Linux, Windows, with NASM
- Search in Vim editor: Linux, for words
- Ubuntu remove password: for sudo, for user, for root
- Debian add printer: command line, install cups
- Change password Linux: script, terminal, Samba
- Debian change language: to English, command
- Linux read file line by line: for loop
- Vim autocomplete: C++, command
- Linux display file in reverse order
- How to install htop Linux: Ubtunu, Mint
- Restart network interface: Linux, Ubuntu
- How to create commands in Linux?
- Customize Wine on Linux: download, install, locate theme
- How to resize partition Linux: Gparted, command line
- How to remove the content of a directory: Linux
- How to recover lost admin password in CUPS?
- How to split a file in Linux: split, merge
- How to convert DOS to UNIX: Linux, command
- Adding space in mount point: to FSTAB
- Delete lines in Linux: SED, commands
- Restoring Linux: from backup, using Tar
- How to uninstall package: in Linux