2.7. Avoid Running Extra Applications
- Graphical desktopDo not run graphics where they are not absolutely required, especially on servers. To check if the system is configured to boot into the GUI by default, run the following command:
systemctl get-defaultIf you see
graphical.target, reconfigure the system to boot into the text mode:
systemctl set-default multi-user.target
- Mail Transfer Agents (MTA, such as Sendmail or Postfix)Unless you are actively using Sendmail on the system you are tuning, disable it. If it is required, ensure it is well tuned or consider moving it to a dedicated machine.
ImportantSendmail is used to send system-generated messages, which are executed by programs such as cron. This includes reports generated by logging functions like logwatch. You will not be able to receive these messages if sendmail is disabled.
- Remote Procedure Calls (RPCs)
- Network File System (NFS)
- Mouse ServicesIf you are not using a graphical interface like Gnome or KDE, then you probably do not need a mouse either. Remove the hardware and uninstall
- Automated tasksCheck for automated
atjobs that could impact performance.
For more information, or for further reading, the following man pages are related to the information given in this section.