Minimisation des services sur Linux Mint
Ayant hérité d’un vieux coucou du type Pentium 4 3GHz avec disque et DVD IDE, mon choix en termes de distribution Linux s’est assez naturellement porté sur une Linux Mint MATE 32 bits.
Doté de 512 Mo, il m’a fallu minimiser les services. Comme sysv-rc-conf ne permettait pas de tout faire, je me suis intéressé à upstart et à la commande initctl.
Liste des services qui s’exécutent
Pour obtenir la liste des services qui s’exécutent, tapez alors la commande :
initctl list | egrep -i -E "(start|running)" | sort
Désactiver un service lancé avec upstart
Pour désactiver à froid un service sous Linux Mint (par exemple le service bluetooth), tapez à partir de la ligne de commande :
echo manual > /etc/init/bluetooth.override
Vous devez rebooter votre système Linux pour que les modifications soient alors prises en charge.
135 Mo de mémoire consommée
Au final, sous Linux Mint, j’obtiens une consommation mémoire d’un peu plus de 128 Mo en laissant s’exécuter les services suivants :
cups-browsed start/running, process 784 cups start/running, process 599 dbus start/running, process 555 mountall-bootclean.sh start/running mountall.sh start/running mountdevsubfs.sh start/running mountkernfs.sh start/running mountnfs-bootclean.sh start/running mountnfs.sh start/running mtab.sh start/running networking start/running network-interface (eth0) start/running network-interface (lo) start/running network-interface-security (networking) start/running network-interface-security (network-interface/eth0) start/running network-interface-security (network-interface/lo) start/running network-interface-security (network-manager) start/running network-manager start/running, process 905 plymouth-upstart-bridge stop/waiting resolvconf start/running rsyslog start/running, process 455 startpar-bridge stop/waiting systemd-logind start/running, process 612 tty1 start/running, process 937 tty2 start/running, process 708 tty3 start/running, process 709 tty4 start/running, process 700 tty5 start/running, process 702 tty6 start/running, process 712 udev start/running, process 354 upstart-file-bridge start/running, process 441 upstart-socket-bridge start/running, process 663 upstart-udev-bridge start/running, process 348 usb-modeswitch-upstart stop/waiting