Help Center/ Elastic Cloud Server/ User Guide (Paris Regions)/ FAQs/ OS/ How Can I Install a GUI on an ECS Running CentOS 6?
Updated on 2025-01-27 GMT+08:00

How Can I Install a GUI on an ECS Running CentOS 6?

Scenarios

To provide a pure system, the ECSs running CentOS 6 do not have a GUI installed by default. You can install a GUI on such ECSs as needed.

Constraints

  • Before installing a GUI on an ECS, ensure that the memory is no less than 2 GB to prevent GUI installation or ECS startup failures.

Procedure

  1. Run the following command to obtain the installation component provided by the OS:

    yum groupinstall "Desktop"

  1. Run the following command to set the default startup level to 5 (GUI):

    sed -i 's/id:3:initdefault:/id:5:initdefault:/' /etc/inittab

  2. Run the following command:

    startx