Ubuntu – How to disable unnecessary services starting at boot in Ubuntu 18.04

18.04bootservices

I have disables the boot animation in my Ubuntu 18.04 machine, now I can see all the services(such as snap, postgresql, mongodb etc.) that are loaded during the boot process.
Some of the them are programs that I have installed and rarely used. They Take a lot of time to load and slows the whole booting process.

Is there a way to identify the processes Ubuntu comes pre installed?
Then I can disable the other processes from booting.

Best Answer

To see which service takes how long to start during system boot, you can run systemd-analyze blame. This will give you a list of services sorted by how long it took to start each service. From there, you can see if there's anything you don't need on your system and disable it with sudo systemctl disable.

Related Question