在 CentOS Stream 8 上安装桌面环境,一般有两种常见选择:GNOME(默认官方桌面) 或 KDE / 其他桌面。下面以 GNOME 为例,最常用也最稳定。
sudo dnf update -y
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 systemctl set-default graphical.target
sudo reboot
如果你当初装的是 Minimal Install,直接执行:
sudo dnf groupinstall "Server with GUI"
sudo dnf install xrdp -y
sudo systemctl enable --now xrdp
⚠️ CentOS Stream 8 已于 2024-05 停止维护
建议新环境考虑:
如果你告诉我:
我可以给你更精确的安装方案。