Skip to main content

打造Centos7轻量xfce桌面环境

1. 安装额外yum源

yum install epel-release

2. 安装依赖组件

yum upgrade
yum -y groupinstall "X Window System"

3. 安装xfce桌面环境

yum -y groupinstall X11
yum --enablerepo=epel -y groups install "Xfce"
echo "exec /usr/bin/xfce4-session" >> ~/.xinitrc

安装中文字体(可选)

可以通过yum search fonts来搜索有哪些字体,顺带一说yum search的作用是搜索yum包。

yum install cjkuni-ukai-fonts
yum install google-noto-sans-simplified-chinese-fonts.noarch

启动桌面环境:

startx

4. 设置开启启动桌面环境

systemctl set-default graphical.target