Updated on 2026-07-31 GMT+08:00

Installing GNOME

Introduction

GNU Network Object Model Environment (GNOME) is a graphical user interface (GUI) for Linux. It can also run in most BSD operating systems. This section describes how to install GNOME and switch interfaces in HCE 2.0.

Preparations

Prepare an ECS.

Prerequisites

A local yum repository has been configured. For details, see Configuring an HCE Repository.

Procedure

  1. Install GNOME.

    Run the following command to install GNOME:

    dnf install gnome-initial-setup gnome-terminal

  2. Configure GNOME to launch at boot.

    1. Tell the system to launch the full desktop environment at boot.
      systemctl set-default graphical.target
    2. Reboot the server.
      reboot

Switching Between the GUI and CLI

The following describes how to switch between the GUI and CLI in HCE using systemctl commands.

  1. To switch to the CLI, run the following command on the GUI terminal:

    sudo systemctl isolate multi-user.target

    Press Enter and enter the username and password as prompted to switch to the CLI.

    • For a VNC login, you cannot use systemctl to switch from the GUI to CLI.
    • To switch, press the following keys simultaneously:
      Ctrl+Alt+Fx (x must be a number from 2 to 6)

    The VNC service (such as Xvnc) is not bound to an actual TTY or it is not registered with logind. This means that systemd cannot detect the graphics status and cannot automatically switch to the CLI.

  2. To switch back to the GUI, run the following command in the CLI (assuming GNOME has been installed):

    sudo systemctl isolate graphical.target

    Press Enter, select or create a username, and enter the password to switch to the GUI.