Skip to content
Search RHEL

This page uses Chinese content. Search opens the Chinese documentation.

    Browse this documentation

    RHEL 10 图形桌面:安装 GNOME 并通过 VNC 查看

    This content is not available in your language yet.

    RHEL 10 默认是最小化安装,没有图形桌面。需要桌面时,装 Server with GUI 组、把默认 target 切到 graphical.target,再通过 VNC/noVNC 或物理显示器登录 GDM。

    本文在 PVE 的 RHEL 10.2 虚拟机上实测:gdm 47.0、gnome-shell 49.4,graphical.target 为默认,gdm 服务 active。

    Terminal window
    cat /etc/redhat-release
    # Red Hat Enterprise Linux release 10.2 (Coughlan)

    未注册系统需要先配置可用仓库;本文使用内网 BaseOS/AppStream 仓库:

    [lab-baseos]
    name=lab baseos
    baseurl=http://192.168.2.232:8080/rhel10/baseos/
    gpgcheck=0
    [lab-appstream]
    name=lab appstream
    baseurl=http://192.168.2.232:8080/rhel10/appstream/
    gpgcheck=0
    Terminal window
    sudo dnf repolist
    Terminal window
    sudo dnf -y groupinstall "Server with GUI"

    安装完成后核对关键包:

    Terminal window
    rpm -q gdm gnome-shell
    # gdm-47.0-24.el10_2.x86_64
    # gnome-shell-49.4-9.el10_2.x86_64
    Terminal window
    sudo systemctl set-default graphical.target
    sudo systemctl start gdm
    systemctl get-default
    # graphical.target
    systemctl is-active gdm
    # active

    如果只想临时进图形界面、不改变默认启动:

    Terminal window
    sudo systemctl isolate graphical.target

    PVE 虚拟机直接用控制台的 noVNC 即可,不需要额外装 VNC Server:

    1. PVE 选中虚拟机 → Console → noVNC;
    2. 看到 GDM 登录框后选择用户;
    3. 输入密码,进入 GNOME 桌面。
    RHEL 10.2 GDM 登录界面
    GDM 47 登录界面(PVE noVNC)
    RHEL 10.2 GNOME 桌面
    登录后的 GNOME 49.4 桌面
    方式适用说明
    PVE noVNC虚拟机零配置,本文实测
    xrdp跨网 RDP需装 xrdp,开放 3389;本文未实测
    VNC Server传统 VNC需装 tigervnc-server 并配置会话;本文未实测
    • 本文只验证 PVE noVNC + GDM/GNOME,不覆盖 xrdp、TigerVNC、Wayland 远程协议;
    • 未测试多用户同时登录、音频、USB 重定向、3D 加速;
    • 未注册 RHEL 时,仓库需另行提供;订阅环境请用 CDN 或 Satellite。