当前位置: 首页 > Linux

如何在Centos8上安装Xfce桌面

时间:2023-04-06 22:11:50 Linux

本文介绍如何在CentOS8Linux操作系统上安装Xfce桌面环境和LightDM(LightDisplayManager)。在Centos8使用epel-release软件源安装Xfce4桌面时,发现安装的桌面是Gnome3,很多xfce工具都打不开。于是经过几天研究,通过Fedora28Server版系统,下载安装包复制到Centos8,即可安装成功。下面记录一下安装过程。环境CentOSLinuxrelease8.2.2004(Core)和CentOSLinuxrelease8.0.1905(Core)安装xfce4这里使用的xfce4相关安装包都是从Fedora28系统下载的,安装到Centos8可能会不稳定。Firewalld安装后出现问题。如果不妨碍使用,可以禁用Firewalld。生产环境不要这么玩。本实验纯属测试。Xfce4相关的安装包我已经放在网盘:https://share.weiyun.com/VqEEZio1,本地下载,上传到Centos8。安装lrzsz,将下载的压缩包上传到系统中。[root@localhost~]#dnf-yinstalllrzsztar[root@localhost~]#rz解压文件,进入文件夹开始安装[root@localhost~]#tarxvfXfce_fd28.tar.gz[root@localhost~]#cdXfce[root@localhostXfce]#dnfinstall-y*--skip-broken--nobest设置开机为图形界面启动lightdm显示管理器[root@localhost~]#systemctlenablelightdmdefaultto启动图形界面[root@localhost~]#systemctlset-defaultgraphical.target删除/etc/systemd/system/default.target.Createdsymlink/etc/systemd/system/default.target?ú/usr/lib/systemd/系统/图形.target。关闭防火墙[root@localhost~]#systemctldisablefirewalldRemoved/etc/systemd/system/multi-user.target.wants/firewalld.service.Removed/etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service。设置中文显示安装中文:[root@localhost~]#yum-yinstallwqy*glibc-langpack-zh修改/etc/locale.conf:[root@localhost~]#sed-i's/en_US/zh_CN/'/etc/locale.conf[root@localhost~]#cat/etc/locale.confLANG="zh_CN.UTF-8"重启系统,进入桌面看看:登录界面使用默认配置,安装完成!总结本文介绍如何在CentOS8Linux操作系统中安装Xfce桌面环境和LightDM(LightDisplayManager)