Accueil > Linux - Ubuntu > ubuntu - désactiver les services inutiles
ubuntu - désactiver les services inutiles
mardi 14 mai 2019, par
Manipulation
Il faut penser aux services se trouvant dans /etc/init.d et l’arborescence de /etc/systemd ... ainsi que /etc/xdg/autostart !!
Désactivation des services suivants (le plus souvent, il ne vaut mieux pas tenter de supprimer le paquetage du fait des dépendances) :
systemctl disable apt-daily.timer
systemctl disable apt-daily-upgrade.timer
systemctl disable dbus-fi.w1.wpa_supplicant1.service
systemctl disable thermald.service
systemctl disable ModemManager.service
systemctl disable ondemand.service
systemctl disable spice-vdagentd.socket
systemctl disable spice-vdagent.service
service disable speech-dispatcher
systemctl disable smartmontools
systemctl disable postfix
systemctl disable postfix.service
systemctl disable smartmontools.service
systemctl disable unattended-upgrades.service
systemctl disable unattended-upgrades
systemctl disable apparmor
systemctl disable lm-sensors
systemctl disable anacron
systemctl disable anacron.service
systemctl disable cron
systemctl disable cron.service
systemctl disable anacron.timer fstrim.timer
Pour le moment, il faut bien avouer que snap est inutile à la population lambda :
systemctl disable snap
systemctl disable snapd.socket
systemctl disable snapd.snap-repair.timer
systemctl disable snapd.seeded.service
systemctl disable snapd.system-shutdown.service
systemctl disable snap-core-6673.mount
systemctl disable snapd.autoimport.service
systemctl disable snapd.*
systemctl disable snap*
systemctl disable 'snap-software\x2dboutique-39.mount'
systemctl disable 'snap-ubuntu\x2dmate\x2dwelcome-313.mount'
systemctl disable 'snap-ubuntu\x2dmate\x2dwelcome-319.mount'
Si on n’a pas besoin du son :
systemctl disable pulseaudio
systemctl disable alsa-utils
Rendre inopérant le lancement des exécutables suivants dans /etc/initd.d (attention, c’est un exemple et à adapter à la configuration :
cd /etc/init.d
chmod -x saned speech-dispatcher
chmod -x lm-sensors ufw hddtemp
chmod -x apmd anacron atd bluez-utils cron festival klogd laptop-mode pcmcia* powernowd* skeleton sysklogd
chmod lvm mdadm*
chmod -x cups cups-browsed
Nota ... on désactive cups et cups-browsed dans un environnement ou l’on n’aura pas besoin d’imprimante. Item, si on utilise un système Raid, il n’est pas judicieux du tout de désactiver mdadm !
Sinon, carrément renommer le nom du service :
mv pulseaudio-system.conf pulseaudio-system.conf.disabled
mv org.mate.CPUFreqSelector.conf org.mate.CPUFreqSelector.conf.disabled
mv org.freedesktop.ModemManager1.conf org.freedesktop.ModemManager1.conf.disabled
mv pulseaudio-system.conf.disabled pulseaudio-system.conf
mv pulseaudio-system.conf pulseaudio-system.conf.disable
mv org.freedesktop.GeoClue2.Agent.conf org.freedesktop.GeoClue2.Agent.conf.disabled
mv org.freedesktop.GeoClue2.conf org.freedesktop.GeoClue2.conf.disabled
mv org.freedesktop.thermald.conf org.freedesktop.thermald.conf.disabled
mv pulseaudio-system.conf.disable pulseaudio-system.conf.disabled
Dans la même veine :
systemctl disable saned
systemctl disable cups
systemctl disable cups-browsed
Cas chiant de at-spi :
systemctl disable at-spi-dbus-bus
Liens
Que faire après l’installation ?
Optimiser le démarrage d’Ubuntu