在 CentOS Stream 8 上安装图形界面(GUI),一般步骤如下:
sudo dnf update -y
CentOS Stream 8 默认使用 GNOME,推荐安装:
sudo dnf groupinstall "Server with GUI" -y
或者更明确的写法:
sudo dnf groupinstall "GNOME Desktop" -y
sudo systemctl set-default graphical.target
如果当前是命令行,可直接启动:
sudo systemctl start graphical.target
或者重启:
sudo reboot
sudo dnf groupinstall "KDE Plasma Workspaces" -y
sudo dnf groupinstall "Xfce" -y
需要先启用 EPEL(一般不用):
sudo dnf install epel-release -y
tigervnc-server如果你是用 云服务器 / 虚拟机 / 本机物理机,可以告诉我,我可以给你更针对性的方案。