安装步骤
- 确保CentOS主机能够连上Internet
这里将不再详述如何使CentOS上网,直接进行安装。 - 更新yum源为网易源(速度更快)
[[email protected] 6]# cd /etc/yum.repos.d/ [[email protected] yum.repos.d]# mv CentOS-Base.repo CentOS-Base.repo.bak [[email protected] yum.repos.d]# wget http://mirrors.163.com/.help/CentOS6-Base-163.repo#下载163repo文件 [[email protected] yum.repos.d]# mv CentOS6-Base-163.repo CentOS-Base.repo#覆盖原来的repo文件 [[email protected] yum.repos.d]# yum clean all [[email protected] yum.repos.d]# yum update
- 安装
[[email protected] ~]#yum grouplist #显示所有已安装和可用的套件 [[email protected] ~]#yum groupinstall `X Window System` #安装桌面环境 [[email protected] ~]#yum groupinstall `Desktop` #安装gnome
- 启动
[[email protected] ~]#startx
时间: 2024-10-08 10:28:30