关于运维:Centos8如何安装Xfce桌面

3次阅读

共计 1427 个字符,预计需要花费 4 分钟才能阅读完成。

本篇文章介绍如何在 CentOS8 Linux 操作系统中装置 Xfce 桌面环境和 LightDM(Light Display Manager)。

在 Centos8 中应用 epel-release 软件源装置 Xfce4 桌面时,发现装置之后的桌面是 Gnome3 的,许多 xfce 的工具打不开。所以钻研了几天,通过 Fedora28 Server 版本的零碎中,下载安装包拷贝到 Centos8 中,能够装置胜利,在此记录一下装置过程。

环境

CentOS Linux release 8.2.2004 (Core)、CentOS Linux release 8.0.1905 (Core)

装置 xfce4

这里应用的 xfce4 相干的安装包都是从 Fedora28 零碎中下载的,装在 Centos8 中或者有些不稳固,目前发现装上之后 Firewalld 有问题,如果不障碍应用,能够禁用 Firewalld。

生产环境就不要这样玩了,本试验纯属测试一下而已。

Xfce4 相干的安装包我曾经放在网盘里了:https://share.weiyun.com/VqEEZio1,下载到本地,而后上传到 Centos8 中。

装置 lrzsz,将下载好的 压缩包上传到零碎中。

[root@localhost ~]# dnf -y install lrzsz tar
[root@localhost ~]# rz

解压文件,并进入文件夹,开始装置

[root@localhost ~]# tar xvf Xfce_fd28.tar.gz
[root@localhost ~]# cd Xfce
[root@localhost Xfce]# dnf install -y * –skip-broken –nobest

设置开机启动到图形界面

开机启动 lightdm 显示管理器

[root@localhost ~]# systemctl enable lightdm

默认启动图形界面

[root@localhost ~]# systemctl set-default graphical.target
Removed /etc/systemd/system/default.target.
Created symlink /etc/systemd/system/default.target ¡ú /usr/lib/systemd/system/graphical.target.
敞开防火墙
[root@localhost ~]# systemctl disable firewalld
Removed /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.

设置中文显示

装置中文:

[root@localhost ~]# yum -y install wqy* glibc-langpack-zh

批改 /etc/locale.conf

[root@localhost ~]# sed -i ‘s/en_US/zh_CN/’ /etc/locale.conf
[root@localhost ~]# cat /etc/locale.conf
LANG=”zh_CN.UTF-8″

重启一下零碎,进入桌面看一下吧:

登录界面

应用默认配置


到此曾经装置实现了!

总结

本篇文章介绍如何在 CentOS8 Linux 操作系统中装置 Xfce 桌面环境和 LightDM(Light Display Manager)。

正文完
 0