Oracle Linux version : 6.7
I am trying to get GUI console upon boot for root user.
During the installation , I forgot to install "General Purpose Desktop" or "KDE" . So, I did the following steps to get my Linux VM to startup with GUI .
Step1. In the /etc/inittab file , I changed the runlevel from 3 to 5 as shown below , so that GUI will come up
id:5:initdefault:
Step2.Install the necessary groups using YUM groupinstall (found this from an Oracle community discussion )
# yum groupinstall "General Purpose Desktop" "KDE" "Internet Browser" "X Window System" "Graphical Administration Tools" "Legacy X Window System compatibility"
Step3. Crete the following file and add the following lines to set KDE as the default desktop.
# cat /etc/sysconfig/desktop
DESKTOP="KDE"
DISPLAYMANAGER="KDE"
But, the above 3 steps didn't open the GUI login for root user . Upon reboot the console was blank. So, I had to type ALT+F2 to get to the terminal login for root.
I think it is trying to open the GUI environment and is stuck . If I type startx , it is opening GNOME and not KDE