Linux安装图形化桌面

来源:互联网 发布:陈道明 左小青 知乎 编辑:程序博客网 时间:2024/05/16 17:52

1、安装桌面软件

yum groupinstall "Desktop"

2、安装X-Window组件

yum groupinstall "X-Window"

3、最简版的CentoS需要安装wget

yum install wget

4、备份yum源改为阿里云的yum源

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo

5、清空yum的缓存

yum clean

yum makecache

6、安装字体

yum -y install dejavu-sans-* dejavu-serif-fonts

7、设置开机启动

编辑/etc/inittab文件,将"id:3:initdefault:" 修改成为"id:5:initdefault:" 这样就重启后生效