Unable to login GUI while starting RHEL 7.5

Latest response

Hi My Dear Redhat Team,

I am unable to Login GUI when start of the machine. But i can access through Console.

Even i can access the GUI through console after enter the command startx.

Please let me know how to get the GUI when starting itself.

Responses

Hi Ibrahim,

Open a terminal and execute this command : sudo systemctl set-default graphical.target Then reboot the system ... :)

Regards,
Christian

Hi Christian Labisch ,

Thanks for the reply,

I have tried before itself but it's not working. System default mode is Graphical only but still i am unable to access the GUI but i can access CLI.

When i am using the startx command then i am getting the GUI mode if i stop the startx command in CLI then again i am losing the GUI.

Always starting the CLI first and with the help of startx command getting the GUI after that sending the startx command output background it's giving more work.

Hi Ibrahim, why "startx" ? Don't you have GDM installed ? If not : sudo yum install gdm
It's a bit of guessing though, unfortunately you didn't provide more comprehensive details. :)

Regards,
Christian

Hi Christian Labisch ,

gdm already installed in Server.

Let me explain what exactly happened, I have Installed the Machine with GUI it was working good for some days without any issue.

One day i have pressed alt+ctlr+f1 to get the CLI mode,after that server didn't came up with GUI then i have searched in google finally got one command that is startx.

After entering the startx command i am sending that output to background in case if i cancel again it's going back to black screen(It's not CLI mode just a black screen not able to enter anything)

Hi Ibrahim,

Normally we switch to a virtual console with Ctrl+Alt+F3 and back with Ctrl+Alt+F1 ... not sure what happened in
your case. If you can't access a working graphical desktop environment via GDM, it might be easier to reinstall the
system (or restore a system backup), because it may take less time than fixing whatever is broken in your setup. :)

Regards,
Christian

Hi Christian Labisch ,

Thanks for the suggestion :-)

I have checked target's list and saw that graphical and multi user are dead, tried to start graphical with systemctl start graphical.target but it's not starting taking more time.

graphical.target loaded inactive dead start Graphical Interface multi-user.target loaded inactive dead start Multi-User System

Thanks & Regards, Ibrahim Kalluri

Well Ibrahim, this is how it should be :

$ systemctl get-default
graphical.target  

$ systemctl status graphical.target
● graphical.target - Graphical Interface
   Loaded: loaded (/usr/lib/systemd/system/graphical.target; indirect; vendor preset: disabled)
   Active: active since Thu 2018-08-23 11:55:29 CEST; 49min ago
     Docs: man:systemd.special(7)

Aug 23 11:55:29 <hostname> systemd[1]: Reached target Graphical Interface.  

$ systemctl status multi-user.target
● multi-user.target - Multi-User System
   Loaded: loaded (/usr/lib/systemd/system/multi-user.target; static; vendor preset: disabled)
   Active: active since Thu 2018-08-23 11:55:29 CEST; 49min ago
     Docs: man:systemd.special(7)

Aug 23 11:55:29 <hostname> systemd[1]: Reached target Multi-User System.

Please try if these commands solve the problem :

sudo systemctl enable graphical.target
sudo systemctl enable multi-user.target

sudo systemctl set-default graphical.target
sudo reboot

Regards,
Christian

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.