資安

Centos8如何安裝Xfce桌面

本篇文章介紹如何在CentOS8 Linux操作系統中安裝Xfce桌面環境和LightDM(Light Display Manager)。
在Centos8中使用epel-release軟件源安裝Xfce4桌面時,發現安裝之後的桌面是Gnome3的,許多xfce的工具打不開。所以研究了幾天,通過Fedora28 Server版本的系統中,下載安裝包拷貝到Centos8中,可以安裝成功,在此記錄一下安裝過程。
Centos8如何安裝Xfce桌面Centos8如何安裝Xfce桌面

環境
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
Centos8如何安裝Xfce桌面Centos8如何安裝Xfce桌面

Centos8如何安裝Xfce桌面Centos8如何安裝Xfce桌面

設置開機啟動到圖形界面

開機啟動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如何安裝Xfce桌面Centos8如何安裝Xfce桌面
登錄界面

Centos8如何安裝Xfce桌面Centos8如何安裝Xfce桌面
使用默認配置

Centos8如何安裝Xfce桌面Centos8如何安裝Xfce桌面
到此已經安裝完成了!
總結
本篇文章介紹如何在CentOS8 Linux操作系統中安裝Xfce桌面環境和LightDM(Light Display Manager)。

Leave a Reply

Your email address will not be published. Required fields are marked *