如何安裝Xfce桌面

本篇文章介紹如何在CentOS8Linux操作系統中安裝Xfce桌面環(huán)境和LightDM(Light Display Manager)。在Centos8中使用epel-release軟件源安裝Xfce4桌面時,發(fā)現安裝之后的桌面是Gnome3的,許多xfce的工具打不開。所以研究了幾天,通過Fedora28 Server版本的系統中,下載安裝包拷貝到Centos8中,可以安裝成功,在此記錄一下安裝過程。?
環(huán)境?
CentOS Linux release 8.2.2004 (Core)?、CentOS Linux release 8.0.1905 (Core)?
安裝xfce4?
這里使用的xfce4相關的安裝包都是從Fedora28系統中下載的,裝在Centos8中或許有些不穩(wěn)定,目前發(fā)現裝上之后Firewalld有問題,如果不妨礙使用,可以禁用Firewalld。?
生產環(huán)境就不要這樣玩了,本實驗純屬測試一下而已。?
Xfce4相關的安裝包我已經放在網盤里了: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~]#systemctlenablelightdm#默認啟動圖形界面[root@localhost~]#systemctlset-defaultgraphical.targetRemoved/etc/systemd/system/default.target.Createdsymlink/etc/systemd/system/default.target?ú/usr/lib/systemd/system/graphical.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"重啟一下系統,進入桌面看一下吧:?
登錄界面?
使用默認配置?
到此已經安裝完成了!?
總結?
本篇文章介紹如何在CentOS8 Linux操作系統中安裝Xfce桌面環(huán)境和LightDM(Light Display Manager)。
了解更多相關內容歡迎關注http://www.vecloud.com/