Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
List all services names.
:::bash service --status-allList all systemd units.
:::bash systemctlDisable a service.
:::bash systemctl disable service_nameCheck whether systemd is running as PID 1.
:::bash ps --no-headers -o comm 1
A List of Services to Disable¶
Safe to Disable¶
bluetooth
:::bash sudo systemctl disable bluetoothopenvpn
:::bash sudo systemctl disable openvpnvirtualbox
:::bash sudo systemctl disable virtualboxpackagekit
:::bash sudo systemctl mask packagekitNotice that subcommand
systemctl mask(instead ofsystemctl disable) is used assystemctl disabledoes not work in this case. For the difference betweensystemctl disableandsystemctl mask, please refer to What is the difference between “systemctl mask” and “systemctl disable”? .
Controversial Ones¶
snapd
:::bash sudo systemctl disable snapd.service sudo systemctl disable snapd.socket sudo systemctl disable snapd.seeded sudo systemctl disable snapd.snap-repair.timer