在 CentOS Minimal(最小化安装) 上装桌面环境,一般有几种常见选择。下面以 CentOS 7 / 8 / Stream 为例说明(命令略有差异)。
yum update -y
(CentOS 8 / Stream 也可用 dnf)
yum groupinstall "GNOME Desktop" "Graphical Administration Tools" -y
CentOS 8 / Stream:
dnf groupinstall "Server with GUI" -y
yum groupinstall "KDE Plasma Workspaces" -y
yum install epel-release -y
yum groupinstall "Xfce" -y
systemctl set-default graphical.target
reboot
systemctl isolate graphical.target
nmcli device status
nmcli connection up eth0
yum install xrdp -y
systemctl enable xrdp
systemctl start xrdp
然后用 Windows 远程桌面连接。
如果你告诉我:
我可以给你更精确的命令。