Académique Documents
Professionnel Documents
Culture Documents
Reference
Andrew Mitry's Blog
This is for a minimal install of CentOS 5 but will be nearly identical for any Red Hat-based distro and similar for most Linux
distros.
Methodology
Perform minimal OS installations
Install additional software as needed after installation
Minimal installations are more secure
Minimal installations reduce the number of packages requiring updates
No graphical environment needed on servers (generally)
Single CD installation instead of multiple CDs or a DVD
After performing a minimal installation, the machine reboots. When you login disable as many services as possible with the
following commands:
sonoracomm.com/…/114-minimal-svcs… 1/3
12/30/2010 Minimal Services on CentOS 5 Mini-H…
chkconfig yum-updatesd off
chkconfig sendmail off
chkconfig mcstrans off
chkconfig pcscd off
chkconfig bluetooth off
chkconfig hidd off
xinetd
acpid
microcode_ctl
irqbalance
mdmonitor
If you want to compare the list before and after, you can:
chkconfig --list |grep "3:on" |awk '{print $1}' |sort > before
and
chkconfig --list |grep "3:on" |awk '{print $1}' |sort > after
sonoracomm.com/…/114-minimal-svcs… 2/3
12/30/2010 Minimal Services on CentOS 5 Mini-H…
auditd
crond
iptables
kudzu
network
restorecond
sshd
syslog
anacron and kudzu only run at startup and will not stay loaded when finished.
Virtual Terminals
You may also minimize on virtual terminals. The default is six virtual terminals. You can probably do with two.
To disable them, edit the /etc/inittab file and comment out the ones that you don't want running like this:
It's a good idea to reboot after the update to make sure that the system comes up properly.
sonoracomm.com/…/114-minimal-svcs… 3/3