Search The Hostwinds Guides Knowledge Base

Installing a GUI on CentOS 7

Share This Article [TheChamp-Sharing]

The CentOS options in your Hostwinds VPS(s) doesn’t come with any graphical user interface by default. There are a lot of options when it comes to look-and-feel of a GUI in Linux, but for lightweight (low resource usage) window management, this guide will use Xfce. These instructions have been tested with CentOS 7 in Hostwinds VPSes.

How To Install a GUI on CentOS

The following commands are to be run as root on your VPS (via SSH or GetVNC)

It is recommended to run yum upgrade before proceeding, to make sure you have the latest version of all packages.

yum upgrade

First, install the Xwindows server and system

yum groupinstall "X Window system"

Then Xfce itself

yum groupinstall xfce

Edit ~/.xinitrc to end with ‘exec startxfce4’

 echo "exec startxfce4" >> ~/.xinitrc

You can now set up the remote access method of your choice or use Actions -> Get VNC from Cloud Control, log in, and run ‘startx’.

Related Articles