Building a Visual CentOS Desktop

Last updated: 2021-12-02 11:46:47

Overview

This document describes how to build a visual CentOS desktop on CVM instances with CentOS 8.2 or CentOS 7.9 installed.

Notes

  • By default, Tencent Cloud Linux public images are not provided with a GUI component.
  • Improper GUI component installation may cause a CVM startup failure. We recommend you to first back up data by creating custom images or creating snapshots.

Directions

Perform the following operations according to the operating system version of your CVM instance.

  1. Log in to the Linux instance using standard login method.
  2. Run the following command to install the GUI component.
    yum groupinstall "Server with GUI" -y
    
  3. Run the following command to set the default GUI.
    systemctl set-default graphical
    
  4. Run the following command to restart the instance.
    reboot
    
  5. Log in to the Linux instance via VNC.
    If the GUI page appears, it has been successfully set up. Follow the instructions to enter the desktop and continue other operations.