GUI not working in RHEL7/CentOS7

Graphical target not workinh and GUI not working.

Some times when we started server with GUI mode it will not work and only multi-user target will work in command prompt. To veryfy this use below command.

# startx

GUI will work till startx session persists. This menas legacy display login manager for the X Window System is not working properly and

graphical login screen, shown shortly after boot up, log out, and when user-switching is also not working. This is due to gdm package has  replaced xorg-x11-xdm in RHEL 7.

Verify "gdm" package status:

Run below command:
# rpm -Va &> /tmp/$(hostname)-$(date +"%Y-%m-%d-%H-%M-%S")-rpmva.txt

Download the generated file in /tmp/ nad open in notepad++ editor. Search for "gdm". You can find that "missing  /run/gdm"

How to Fix:

1- Reinstall the gdm package on your system:

# yum reinstall gdm

2- Reboot the system in GUi mode and check the status

If you still face the issue then, login into the system via ssh and switch the runlevel (from 5 to 3) using below command.

# init 3

Then try to launch GUI using the startx command as below and check the status on the monitor connected to the system:

# startx

If Still you facing it might be due to problem with display manager.

Cancel the startx command and Correct the permission of /var/lib/gdm using the following command:

# chown -Rv gdm:gdm /var/lib/gdm/.[^.]\*

If above command gives permission/not found error please run below command:

# chown -Rv gdm:gdm /var/lib/gdm/.*

After that switch the runlevel and check the status.

# init 3
# init 5



Comments

Popular posts from this blog

How to install glibc 2.14 on RHEL 6/ RHEL 7/ CentOS 7

Export and Import users/groups and OU in AD Server 2008 using LDIFDE command.

How to Set Up and Configure latest yum repository on CentOS