Services pouvant etre désactivés

Tags: #<Tag:0x00007f63e4950098>

Bonjour,

Je suis entrain de me livrer à un état des lieux de mon pc et je n’aime pas ce que je vois: il y a un certain nombre de services, qui se lancent auto, que je sais pouvoir être arrêtés ( enfin je pense) mais d’autre sur lesquels je suis envahi de doute.

Voilà la liste

user@server:~$ ls -lrtha /etc/systemd/system/multi-user.target.wants/
total 16K
lrwxrwxrwx  1 root root   42 avril 25  2019  wpa_supplicant.service -> /lib/systemd/system/wpa_supplicant.service
lrwxrwxrwx  1 root root   36 avril 25  2019  whoopsie.service -> /lib/systemd/system/whoopsie.service
lrwxrwxrwx  1 root root   47 avril 25  2019  unattended-upgrades.service -> /lib/systemd/system/unattended-upgrades.service
lrwxrwxrwx  1 root root   31 avril 25  2019  ufw.service -> /lib/systemd/system/ufw.service
lrwxrwxrwx  1 root root   36 avril 25  2019  thermald.service -> /lib/systemd/system/thermald.service
lrwxrwxrwx  1 root root   44 avril 25  2019  systemd-resolved.service -> /lib/systemd/system/systemd-resolved.service
lrwxrwxrwx  1 root root   33 avril 25  2019  snapd.service -> /lib/systemd/system/snapd.service
lrwxrwxrwx  1 root root   40 avril 25  2019  snapd.seeded.service -> /lib/systemd/system/snapd.seeded.service
lrwxrwxrwx  1 root root   44 avril 25  2019  snapd.core-fixup.service -> /lib/systemd/system/snapd.core-fixup.service
lrwxrwxrwx  1 root root   44 avril 25  2019  snapd.autoimport.service -> /lib/systemd/system/snapd.autoimport.service
lrwxrwxrwx  1 root root   35 avril 25  2019  rsyslog.service -> /lib/systemd/system/rsyslog.service
lrwxrwxrwx  1 root root   33 avril 25  2019  rsync.service -> /lib/systemd/system/rsync.service
lrwxrwxrwx  1 root root   36 avril 25  2019  remote-fs.target -> /lib/systemd/system/remote-fs.target
lrwxrwxrwx  1 root root   36 avril 25  2019  pppd-dns.service -> /lib/systemd/system/pppd-dns.service
lrwxrwxrwx  1 root root   36 avril 25  2019  ondemand.service -> /lib/systemd/system/ondemand.service
lrwxrwxrwx  1 root root   42 avril 25  2019  NetworkManager.service -> /lib/systemd/system/NetworkManager.service
lrwxrwxrwx  1 root root   38 avril 25  2019  networking.service -> /lib/systemd/system/networking.service
lrwxrwxrwx  1 root root   47 avril 25  2019  networkd-dispatcher.service -> /lib/systemd/system/networkd-dispatcher.service
lrwxrwxrwx  1 root root   40 avril 25  2019  ModemManager.service -> /lib/systemd/system/ModemManager.service
lrwxrwxrwx  1 root root   38 avril 25  2019  kerneloops.service -> /lib/systemd/system/kerneloops.service
lrwxrwxrwx  1 root root   38 avril 25  2019  irqbalance.service -> /lib/systemd/system/irqbalance.service
lrwxrwxrwx  1 root root   37 avril 25  2019  dns-clean.service -> /lib/systemd/system/dns-clean.service
lrwxrwxrwx  1 root root   29 avril 25  2019  cups.path -> /lib/systemd/system/cups.path
lrwxrwxrwx  1 root root   40 avril 25  2019  cups-browsed.service -> /lib/systemd/system/cups-browsed.service
lrwxrwxrwx  1 root root   32 avril 25  2019  cron.service -> /lib/systemd/system/cron.service
lrwxrwxrwx  1 root root   41 avril 25  2019  console-setup.service -> /lib/systemd/system/console-setup.service
lrwxrwxrwx  1 root root   40 avril 25  2019  avahi-daemon.service -> /lib/systemd/system/avahi-daemon.service
lrwxrwxrwx  1 root root   35 avril 25  2019  anacron.service -> /lib/systemd/system/anacron.service
lrwxrwxrwx  1 root root   44 avril 26  2019  clamav-freshclam.service -> /lib/systemd/system/clamav-freshclam.service
lrwxrwxrwx  1 root root   38 avril 27  2019  lm-sensors.service -> /lib/systemd/system/lm-sensors.service
lrwxrwxrwx  1 root root   46 avril 28  2019  openvswitch-switch.service -> /lib/systemd/system/openvswitch-switch.service
lrwxrwxrwx  1 root root   32 avril 28  2019  dpdk.service -> /lib/systemd/system/dpdk.service
lrwxrwxrwx  1 root root   35 mai    4  2019  postfix.service -> /lib/systemd/system/postfix.service
lrwxrwxrwx  1 root root   41 sept. 11  2019  snap-gifcurry-8.mount -> /etc/systemd/system/snap-gifcurry-8.mount
lrwxrwxrwx  1 root root   52 oct.   4  2019 'snap-chromium\x2dffmpeg-15.mount' -> '/etc/systemd/system/snap-chromium\x2dffmpeg-15.mount'
lrwxrwxrwx  1 root root   58 nov.  15  2019 'snap-gnome\x2d3\x2d26\x2d1604-98.mount' -> '/etc/systemd/system/snap-gnome\x2d3\x2d26\x2d1604-98.mount'
lrwxrwxrwx  1 root root   34 déc.  23  2019  smartd.service -> /lib/systemd/system/smartd.service
lrwxrwxrwx  1 root root   35 déc.  24  2019  sysstat.service -> /lib/systemd/system/sysstat.service
lrwxrwxrwx  1 root root   42 déc.  24  2019  binfmt-support.service -> /lib/systemd/system/binfmt-support.service
lrwxrwxrwx  1 root root   41 févr.  5  2020  clamav-daemon.service -> /lib/systemd/system/clamav-daemon.service
lrwxrwxrwx  1 root root   57 avril 11  2020 'snap-gtk2\x2dcommon\x2dthemes-9.mount' -> '/etc/systemd/system/snap-gtk2\x2dcommon\x2dthemes-9.mount'
lrwxrwxrwx  1 root root   36 avril 24  2020  qemu-kvm.service -> /lib/systemd/system/qemu-kvm.service
lrwxrwxrwx  1 root root   34 mai   19  2020  auditd.service -> /lib/systemd/system/auditd.service
lrwxrwxrwx  1 root root   59 mai   30  2020 'snap-gnome\x2d3\x2d26\x2d1604-100.mount' -> '/etc/systemd/system/snap-gnome\x2d3\x2d26\x2d1604-100.mount'
lrwxrwxrwx  1 root root   61 juin   3  2020 'snap-gnome\x2dsystem\x2dmonitor-148.mount' -> '/etc/systemd/system/snap-gnome\x2dsystem\x2dmonitor-148.mount'
lrwxrwxrwx  1 root root   59 juin   7  2020 'snap-gnome\x2d3\x2d28\x2d1804-128.mount' -> '/etc/systemd/system/snap-gnome\x2d3\x2d28\x2d1804-128.mount'
lrwxrwxrwx  1 root root   44 juin  10  2020  snap-cherrytree-22.mount -> /etc/systemd/system/snap-cherrytree-22.mount
lrwxrwxrwx  1 root root   39 juin  16  2020  snap-vlc-1700.mount -> /etc/systemd/system/snap-vlc-1700.mount
lrwxrwxrwx  1 root root   58 juin  22  2020 'snap-gtk2\x2dcommon\x2dthemes-13.mount' -> '/etc/systemd/system/snap-gtk2\x2dcommon\x2dthemes-13.mount'
lrwxrwxrwx  1 root root   42 juil.  9  2020  snapd.apparmor.service -> /lib/systemd/system/snapd.apparmor.service
lrwxrwxrwx  1 root root   58 juil.  9  2020  snapd.recovery-chooser-trigger.service -> /lib/systemd/system/snapd.recovery-chooser-trigger.service
lrwxrwxrwx  1 root root   44 juil. 10  2020  snap-cherrytree-28.mount -> /etc/systemd/system/snap-cherrytree-28.mount
lrwxrwxrwx  1 root root   40 juil. 30  2020  snap-pokerth-1.mount -> /etc/systemd/system/snap-pokerth-1.mount
lrwxrwxrwx  1 root root   52 sept. 10 10:27 'snap-chromium\x2dffmpeg-17.mount' -> '/etc/systemd/system/snap-chromium\x2dffmpeg-17.mount'
lrwxrwxrwx  1 root root   43 sept. 12 13:33  snap-vidcutter-14.mount -> /etc/systemd/system/snap-vidcutter-14.mount
lrwxrwxrwx  1 root root   58 oct.   1 13:59 'snap-gnome\x2d3\x2d34\x2d1804-60.mount' -> '/etc/systemd/system/snap-gnome\x2d3\x2d34\x2d1804-60.mount'
lrwxrwxrwx  1 root root   41 oct.   2 10:41  smartmontools.service -> /lib/systemd/system/smartmontools.service
lrwxrwxrwx  1 root root   33 oct.   2 10:44  dmesg.service -> /lib/systemd/system/dmesg.service
lrwxrwxrwx  1 root root   41 oct.   2 10:52  secureboot-db.service -> /lib/systemd/system/secureboot-db.service
lrwxrwxrwx  1 root root   48 oct.   2 10:53  grub-initrd-fallback.service -> /lib/systemd/system/grub-initrd-fallback.service
lrwxrwxrwx  1 root root   35 oct.   2 10:56  openvpn.service -> /lib/systemd/system/openvpn.service
lrwxrwxrwx  1 root root   45 oct.   2 10:56  blueman-mechanism.service -> /lib/systemd/system/blueman-mechanism.service
lrwxrwxrwx  1 root root   59 oct.  11 18:48 'snap-gnome\x2d3\x2d28\x2d1804-145.mount' -> '/etc/systemd/system/snap-gnome\x2d3\x2d28\x2d1804-145.mount'
lrwxrwxrwx  1 root root   41 oct.  14 07:04  snap-gifcurry-9.mount -> /etc/systemd/system/snap-gifcurry-9.mount
lrwxrwxrwx  1 root root   36 nov.   1 08:05  fail2ban.service -> /lib/systemd/system/fail2ban.service
lrwxrwxrwx  1 root root   59 nov.  24 15:45 'snap-gtk\x2dcommon\x2dthemes-1513.mount' -> '/etc/systemd/system/snap-gtk\x2dcommon\x2dthemes-1513.mount'
lrwxrwxrwx  1 root root   48 nov.  25 17:06 'snap-snap\x2dstore-498.mount' -> '/etc/systemd/system/snap-snap\x2dstore-498.mount'
lrwxrwxrwx  1 root root   41 nov.  25 17:12  snap-blender-51.mount -> /etc/systemd/system/snap-blender-51.mount
lrwxrwxrwx  1 root root   59 nov.  27 06:06 'snap-gtk\x2dcommon\x2dthemes-1514.mount' -> '/etc/systemd/system/snap-gtk\x2dcommon\x2dthemes-1514.mount'
lrwxrwxrwx  1 root root   35 déc.   2 12:04  vboxdrv.service -> /lib/systemd/system/vboxdrv.service
lrwxrwxrwx  1 root root   51 déc.   2 12:04  vboxballoonctrl-service.service -> /lib/systemd/system/vboxballoonctrl-service.service
lrwxrwxrwx  1 root root   49 déc.   2 12:04  vboxautostart-service.service -> /lib/systemd/system/vboxautostart-service.service
lrwxrwxrwx  1 root root   43 déc.   2 12:04  vboxweb-service.service -> /lib/systemd/system/vboxweb-service.service
lrwxrwxrwx  1 root root   31 déc.  13 09:16  ntp.service -> /lib/systemd/system/ntp.service
lrwxrwxrwx  1 root root   42 déc.  16 15:05  snap-core18-1944.mount -> /etc/systemd/system/snap-core18-1944.mount
lrwxrwxrwx  1 root root   48 déc.  19 14:11 'snap-snap\x2dstore-518.mount' -> '/etc/systemd/system/snap-snap\x2dstore-518.mount'
lrwxrwxrwx  1 root root   41 janv.  7 14:23  snap-core-10583.mount -> /etc/systemd/system/snap-core-10583.mount
lrwxrwxrwx  1 root root   58 janv.  8 18:28 'snap-gnome\x2d3\x2d34\x2d1804-66.mount' -> '/etc/systemd/system/snap-gnome\x2d3\x2d34\x2d1804-66.mount'
lrwxrwxrwx  1 root root   41 janv. 18 14:26  snap-core20-904.mount -> /etc/systemd/system/snap-core20-904.mount
lrwxrwxrwx  1 root root   39 janv. 20 17:53  snap-atom-271.mount -> /etc/systemd/system/snap-atom-271.mount
lrwxrwxrwx  1 root root   41 janv. 20 17:55  snap-blender-65.mount -> /etc/systemd/system/snap-blender-65.mount
lrwxrwxrwx  1 root root   39 janv. 26 19:55  snap-vlc-2103.mount -> /etc/systemd/system/snap-vlc-2103.mount
lrwxrwxrwx  1 root root   42 févr.  6 08:26  snap-core18-1988.mount -> /etc/systemd/system/snap-core18-1988.mount
lrwxrwxrwx  1 root root   42 févr.  7 15:58  snap-gtkhash-562.mount -> /etc/systemd/system/snap-gtkhash-562.mount
lrwxrwxrwx  1 root root   44 févr.  7 15:59  snap-chromium-1479.mount -> /etc/systemd/system/snap-chromium-1479.mount
lrwxrwxrwx  1 root root   41 févr. 10 06:52  snap-core-10823.mount -> /etc/systemd/system/snap-core-10823.mount
lrwxrwxrwx  1 root root   38 févr. 10 06:54  snap-code-54.mount -> /etc/systemd/system/snap-code-54.mount
lrwxrwxrwx  1 root root   61 févr. 11 10:02 'snap-gnome\x2dsystem\x2dmonitor-157.mount' -> '/etc/systemd/system/snap-gnome\x2dsystem\x2dmonitor-157.mount'
lrwxrwxrwx  1 root root   40 févr. 11 10:04  snap-skype-162.mount -> /etc/systemd/system/snap-skype-162.mount
lrwxrwxrwx  1 root root   42 févr. 13 19:43  snap-gtkhash-568.mount -> /etc/systemd/system/snap-gtkhash-568.mount
lrwxrwxrwx  1 root root   38 févr. 13 19:43  snap-code-55.mount -> /etc/systemd/system/snap-code-55.mount
lrwxrwxrwx  1 root root   40 févr. 18 06:37  snap-opera-109.mount -> /etc/systemd/system/snap-opera-109.mount
lrwxrwxrwx  1 root root   40 févr. 18 16:03  snap-opera-110.mount -> /etc/systemd/system/snap-opera-110.mount
lrwxrwxrwx  1 root root   39 févr. 18 16:03  snap-atom-273.mount -> /etc/systemd/system/snap-atom-273.mount
lrwxrwxrwx  1 root root   40 févr. 18 16:03  snap-skype-164.mount -> /etc/systemd/system/snap-skype-164.mount
lrwxrwxrwx  1 root root   44 févr. 19 06:35  snap-chromium-1497.mount -> /etc/systemd/system/snap-chromium-1497.mount
drwxr-xr-x  2 root root 4,0K févr. 19 06:35  .
drwxr-xr-x 24 root root 4,0K févr. 19 06:35  ..

Pourriez me dire d’après vous ceux qui peuvent etre desactivés? merci

caux qui sont activés sont ceux que tu vois avec las commandes

  • service système
systemd-analyze blame --no-pager
  • services utilisateur
 systemd-analyze --user blame --no-pager

pour desactiver on utilise
sudo systemctl disable
et
sudo systemctl mask

Merci pour ta rapide réponse, je regarde ca et je reviens vers toi

si tu veux te faire un beau graphe

systemd-analyze plot > boot.svg

et

systemd-analyze --user plot > boot-user.svg

attention image ultra compressée mais lisible dans le navigateur par exemple

Capture d’écran de 2021-02-19 15-40-14