시스템(리눅스)

CentOS 최소설치된 환경에서 x-window 설치하기

캡슐리어 2014. 8. 13. 10:25

#  yum -y groupinstall "Desktop" "X Window System" "Fonts"





위 명령어 한줄로 기본적인 설치는 완료된다.

이후 /etc/inittab에서 런레벨을 5로 수정한다.

이 과정을 거치지 않으면 재부팅시에도 x-window환경이 아닌 CLI환경으로 부팅된다.


# vi /etc/inittab

# inittab is only used by upstart for the default runlevel.

#

# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.

#

# System initialization is started by /etc/init/rcS.conf

#

# Individual runlevels are started by /etc/init/rc.conf

#

# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf

#

# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,

# with configuration in /etc/sysconfig/init.

#

# For information on how to write upstart event handlers, or how

# upstart works, see init(5), init(8), and initctl(8).

#

# Default runlevel. The runlevels used are:

#   0 - halt (Do NOT set initdefault to this)

#   1 - Single user mode

#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)

#   3 - Full multiuser mode

#   4 - unused

#   5 - X11

#   6 - reboot (Do NOT set initdefault to this)

#

id:3:initdefault:    <-- 이부분의 숫자를 변경한다.