How i can remove all softwares of Ubuntu server and make it lock like Ubuntu Desktop without GUI? to make boot faster.
Asked
Active
Viewed 667 times
1 Answers
3
Since you're willing to experiment with your system, and don't mind reinstalling (I take those two as prerequisites for your question), you could remove the ubuntu-server
metapackage for starters:
sudo apt remove ubuntu-server
This will remove a bunch of server-related tools, and their dependencies (I've removed a bunch of those myself on my own server). If you need any of the tools afterward, you can then install them manually.
You're also right that removing cloud-init
will help - please see this existing answer.
I'm not sure this will affect your bootup time that much, but I believe it is the most precise answer to your question.

Artur Meinild
- 26,018
systemd-analyze
andsystemd-analyze blame
nobody will be able to help you. – Bruni Sep 14 '22 at 07:45