Updated on 2026-04-21 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 idle memory is greater than or equal to 2 GB. Otherwise, the GUI installation may fail or the ECS cannot be started after the installation.
Procedure
- Run the following command to obtain the installation component provided by the OS:
yum groupinstall "Desktop"
- Run the following command to set the default startup level to 5 (GUI):
sed -i 's/id:3:initdefault:/id:5:initdefault:/' /etc/inittab
- Run the following command:
startx
After the command is executed, a GUI is displayed.
Figure 1 GUI display
Parent topic: OS
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.