CentOS7 安装 桌面环境 xfce安装


1、安装centos。

官网下载CentOS-7.0-1406-x86_64-Minimal.iso 并安装.

2、开启网络网络

默认情况下是没有网的,所以先要开启网络。

 vi /etc/sysconfig/network-scripts/ifcfg-enp2s0

HWADDR=00:E0:69:01:6A:96
TYPE=Ethernet
BOOTPROTO=dhcp
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no
NAME=enp2s0
UUID=5b0a7d76-1602-4e19-aee6-29f57618ca01
ONBOOT=no   #改成  yes  


systemctl restart network    #重启网络,之后就有网了

3、安装桌面

# yum update
# yum install epel-release    //安装额外包yum源(extra package for Enterprise Linux)。
# yum groupinstall "X Window system" //安装X
# yum groupinstall xfce //安装xfce
# sudo systemctl isolate graphical.target //进入Xfce。
# sudo systemctl set-default graphical.target    //设置默认启动级别为图形化界面

 

You may also like...

1
想说点什么吗?

avatar
1 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
1 Comment authors
King Recent comment authors
  Subscribe  
提醒
King
游客
King

看看 确实还不错