This document is a WORK IN PROGRESS.
This is just a quick personal cheat sheet: treat its contents with caution!
Ubuntu management¶
Reference(s)
Table of contents¶
- How to remove
avahi
daemon from Ubuntu - How to remove
snap
from Ubuntu - Switch from Gnome to Xfce (and vice versa)
- Switch from GDM to LightDM (and vice versa)
- Troubleshooting
How to remove avahi
daemon from Ubuntu¶
avahi
is the open-source implementation of zeroconf
, used for automatic management of networks
without any centralized configuration. Generally, avahi
is only useful in small local networks
(such as a home LAN).
The avahi-daemon
process handles mDNS, which is used for name resolution and service discovery
within the local network. If you don't need its functions, avahi
can be safely removed.
Local name resolution allows you to reach the computer by a host name.local
name without any
centralized configuration. Since your server most likely has a DNS name, this function is
unnecessary.
Service discovery allows programs to find and advertise running services (for example, to allow listing all SSH or PulseAudio servers in the LAN). This is convenient on a home network, but entirely useless for a data center hosted server. This too can be safely removed like so:
$ sudo systemctl stop avahi-daemon
$ sudo systemctl disable avahi-daemon
$ sudo vi /etc/default/avahi-daemon
> ...
> AVAHI_DAEMON_DETECT_LOCAL=0
> ...
$ sudo apt purge avahi-daemon
$ sudo apt --purge autoremove
How to remove snap
from Ubuntu¶
-
List snap packages ("snaps"):
-
Remove all installed snaps:
-
Cleanup the
If anything remains, the steps below will take care of it.core
package: -
Uninstall
snapd
: -
Remove leftover directories:
-
Block future installs:
Switch from Gnome to Xfce (and vice versa)¶
-
Install Xfce for Ubuntu:
-
Now, at login, in your display manager, you can switch from Gnome to Xfce
Switch from GDM to LightDM (and vice versa)¶
-
Install lightdm:
-
Select lightdm as default display manager and reboot:
Or select gdm as default display manager and reboot:
Troubleshooting¶
Headphone sound always muted¶
If your headphone sound is always muted (for example after an update), even when trying to mix the
sound, e.g. with pulsemixer
or with pulseaudio
volume control, then try to restore your sound
card driver state from its configuration file: $ alsactl restore
If this cheat sheet has been useful to you, then please consider leaving a star here.