|
META TOPICPARENT |
name="WebHome" |
Installing CentOS 6 |
|
- Make sure root cannot log in via ssh by changing /etc/ssh/sshd_config:
-
PermitRootLogin without-password
- This will disable logging in as root, via ssh, but it is still possible to log in as root using SSH public key authentication.
|
|
< < |
- Disable SELinux by setting
SELINUX=disabled in /etc/sysconfig/selinux (a reboot is needed to disable SELinux)
|
|
- Disable the firewall (when in a secure network), by running:
chkconfig iptables off; chkconfig ip6tables off
- Add the following line to /etc/sysconfig/network:
- Install the following packages:
|
|
< < | yum install irqbalance sysstat iotop strace tcpdump lsof ntp man man-pages man-pages-overrides mlocate wget openssh-clients perl iptraf-ng bind-utils |
> > | yum install -y irqbalance sysstat iotop strace tcpdump lsof ntp man man-pages man-pages-overrides mlocate wget openssh-clients perl iptraf-ng bind-utils vim-enhanced |
|
- Enable irqbalance:
chkconfig irqbalance on (only useful on an SMP system)
- Set up /etc/ntp.conf:
|
| server 2.nl.pool.ntp.org
server 3.nl.pool.ntp.org
|
|
< < |
- Change /etc/sysconfig/ntpdate:
|
> > |
- Change /etc/ntp/step-tickers:
|
| |
|
< < | OPTIONS="-U ntp -s -b 0.nl.pool.ntp.org 1.nl.pool.ntp.org" |
> > | 0.nl.pool.ntp.org
1.nl.pool.ntp.org |
|
- Enable ntpdate and ntpd:
chkconfig ntpdate on; chkconfig ntpd on
- Reboot the system to activate all changes
|