CentOS 5: 

安装GUI


  1. yum groupinstall "X Window System" "GNOME Desktop Environment"


启动GUI


  1. startx


如果需要在系统启动的时候,自动启动GUI


编辑 /etc/inittab


  1. id:3:initdefault:


把3 改成 5


  1. id:5:initdefault:



 CentOS 6:

  1. yum groupinstall "X Window System" "Desktop"