CentOSインストール後にやること

いらないサービスを止める

# for i in acpid apmd avahi-daemon bluetooth cpuspeed cups hidd ip6tables iptables mcstrans multipathd nfslock pcscd portmap restorecond rpcgssd rpcidmapd sendmail smartd xfs yum-updatesd
do
/sbin/chkconfig $i off
done

SELinuxを無効化

# vi /etc/selinux/config

#SELINUX=enforcing
SELINUX=disabled

IPv6を無効化

# vi /etc/modprobe.conf

# Turn off IPv6
alias net-pf-10 off
alias ipv6 off

yumをプロキシ経由で使えるようにする(必要なら)

# vi /etc/yum.repos.d/CentOS-Base.repo
mirrorlistをコメントアウトし、ftp.riken.jpを使うようにする。

vi /usr/bin/yum-proxy

#!/bin/sh
echo -n "User for Proxy: "
read user
echo -n "Password for Proxy: "
stty -echo
read pass
stty echo
export http_proxy="http://${user}:${pass}@proxy.hogehoge.com:port"
/usr/bin/yum $*

chmod 755 /usr/bin/yum-proxy

# vi ~/.bash_profile

alias yum='/usr/bin/yum-proxy'