最低限必要な物のまとめ。これをVMイメージで保存しておくと、
色々試してみたりするときにとっても便利だったりするのでお勧め。
1.文字化け対策
「/etc/sysconfig/i18n」を修正
-----------------------------
LANG="ja_JP.UTF-8"
SUPPORTED="ja_JP.UTF-8:ja_JP:ja"
SYSFONT="latarcyrheb-sun16"
-----------------------------
↓
-----------------------------
LANG="ja_JP.eucJP"
SUPPORTED="ja_JP.eucJP:ja_JP:ja"
SYSFONT="lat0-sun16"
SYSFONTACM="8859-15"
-----------------------------
2.yum plugin「fastestmirror」のインストール
#yum -y install yum-plugin-fastestmirror
※4.5からデフォルト設定がにplugin=1に変更されている。
3.yumを使ってアップデート
#yum -y update
4.kernelアップデートのためにリスタート
#reboot
5.lessコマンドだと文字化けするのでlvをインストール
cd /usr/local/src/
wget http://www.ff.iij4u.or.jp/~nrt/freeware/lv451.tar.gz
tar -zxf lv451.tar.gz
cd lv451/src/
./configure
make -j
make install
6.マニュアル文字化け対策のためのPAGER変更
「/etc/man.config」を修正
--------------------------------------
PAGER /usr/bin/less -iRs
--------------------------------------
↓
--------------------------------------
PAGER /usr/local/bin/lv
--------------------------------------
7.ntpインストール
#yum install -y ntp
8.「/etc/ntp.conf」を修正
server部分を下記に変更
--------------------
server ntp.nict.jp
server ntp.nict.jp
server ntp.nict.jp
--------------------
9.時刻修正
ntpdate ntp.nict.jp
10.ntpd起動
#service ntpd start
11.sendmailアンインストール
#yum remove -y sendmail
12.postfixインストール
#yum install -y postfix
chkconfig postfix on
13.不要(そうな)サービスを停止させる
chkconfig mdmonitor off
chkconfig rawdevices off
chkconfig xfs off
chkconfig kudzu off
chkconfig isdn off
chkconfig lvm2-monitor off
chkconfig smartd off
chkconfig acpid off
chkconfig rpcidmapd off
chkconfig openibd off
chkconfig portmap off
chkconfig messagebus off
chkconfig readahead off
chkconfig apmd off
chkconfig xinetd off
chkconfig autofs off
chkconfig iiim off
chkconfig cpuspeed off
chkconfig readahead_early off
chkconfig gpm off
chkconfig atd off
chkconfig cups off
chkconfig microcode_ctl off
chkconfig haldaemon off
chkconfig netfs off
chkconfig pcmcia off
chkconfig nfs off(NFSを使用しない場合)
chkconfig nfslock off(NFSを使用しない場合)