Problem: How to enable Graphical User Interface (GUI Mode) on Pre-Installed Linux machine with core.
Solution :
Prerequisite :
1. You must have sudo access access to your Linux machine.2. Your Linux machines must have access to either internet or latest Yum Repositories.
Steps:
To enable GUI on your Linux (CentOS), you need following commands to be run in a sequence:1. Install GNOME Desktop through following command:
# sudo yum group install "GNOME Desktop"
It will install all the required binaries on your Linux machine.
2. To confirm that GNOME Desktop (GUI) has been successfully installed on your machine, run following command:
# startx
Accept the license agreement and then set few local language settings.
Click done.
It confirms that GUI has successfully been installed on your machine but it is temporary. As soon as you will reboot your machine, you will again reach to your black terminal.
3. To make GUI as your default mode run following command.
# systemctl set-default graphical.target
The output of this command will be similar to following:
Removed symlink /etc/systemd/system/default.target.
Created symlink from /etc/systemd/system/default.target to /usr/lib/systemd/system/graphical.target.
It will permanently change your run level from runlevel3 (Core with Networking) to runlevel5 (Graphical). Now you will get the GUI based login screen when even you will reboot / log on to your Linux (CentOS) machine.
Enjoy!!!!