#!/bin/bash
version=`cat /etc/redhat-release |grep CentOS |awk '{print $3}' |awk -F . '{print $1}'`
if [ $version = 5 ] ; then
yum -y groupinstall "X Window System"
yum -y groupinstall "GNOME Desktop Environment"
yum -y install "kde-i18n-Korean" "fonts-korean"
else
yum -y groupinstall "X Window System" "Desktop"
yum -y groupinstall korean-support -x xorg-x11-server-Xorg
fi
sed -i "s/id\:3/id\:5/g" /etc/inittab
/sbin/chkconfig --list |grep "5:on" |awk '{print $1}' |while read service ;do /sbin/chkconfig --level 5 $service off ;done
/sbin/chkconfig --list |grep "3:on" |awk '{print $1}' |while read service ;do /sbin/chkconfig --level 5 $service on ;done
init 6
ÇѱÛÀÔ·Â
CentOS 5 NABI ¼³Ä¡
CentOS 6 Ctrl + Space º¯È¯°¡´É