Switching to a GUI login on RHEL 6
If you installed using a text login and wish to switch to a graphical login, follow this procedure.
- If you are not already root, switch users to the root account:
% su -
Provide the administrator password when prompted. - If you have not already done so, install the
X Window System
:# yum groupinstall "X Window System"
- Install a graphical desktop environment:
- To install the GNOME desktop environment, use this command:
# yum groupinstall "GNOME Desktop Environment"
- To install the KDE desktop environment, use:
# yum groupinstall KDE
- To install the XFCE desktop environment, use:
# yum groupinstall XFCE
NOTE: The above step may take some time as your RHEL system downloads and installs additional software. You may be asked to provide the installation media depending on your original installation source.
- To install the GNOME desktop environment, use this command:
- Run the following command to edit the
/etc/inittab
file:vi /etc/inittab
- Press the I key to enter
insert
mode. - Find the line that includes the text
initdefault
. Change the numeral3
to5
. - Type
:wq
and press the Enter key to save the file and exit the vi text editor.
- Press the I key to enter
- Reboot the system using the
reboot
command. Your system will restart and present a graphical login.