[CentOS] CentOS-7 Screen black after boot

Hersh parikhh1 at gmail.com
Tue Jul 12 16:42:41 UTC 2016


Thanks.

I have tried the commands which you have suggested but, unfortunately they
did not work for me. I just reinstalled the server.

Regards
Hersh

On 7 July 2016 at 10:31, Venkata Balaji N <nag1010 at gmail.com> wrote:

> On Thu, Jul 7, 2016 at 2:00 PM, Hersh <parikhh1 at gmail.com> wrote:
>
> > Hi Venkata,
> >
> > Can you please let me know the steps which you have followed for
> > re-installing the GNOME? I am having a similar problem on one of our
> > system.
> >
>
> To my understanding, when you install centos-7 with options ServerGUI or
> GNOME Desktop and leave the system for long time locked, you will notice
> that CentOS slips into textual interface mode and you will not be able to
> get GUI which means, you can login to the system and cannot see GUI screen.
>
> I have found the following steps on google, which helped me get through
> this problem
>
> systemctl disable gdm.service
> systemctl enable lightdm.service
> systemctl set-default graphical.target
>
> First command was successful, second one error'd out. Not sure what to do,
> i reverted back the first command and executed the third command and
> rebooted. All worked fine !
>
> Below is the log -
>
> [root at buildhost ~]# systemctl disable gdm.service
> Removed symlink /etc/systemd/system/display-manager.service.
>
> [root at buildhost ~]# systemctl enable lightdm.service
> Failed to execute operation: Access denied
>
> [root at buildhost ~]# systemctl disable gdm.service
>
> [root at buildhost ~]# systemctl enable gdm.service
> Created symlink from /etc/systemd/system/display-manager.service to
> /usr/lib/systemd/system/gdm.service.
>
> [root at buildhost ~]# systemctl set-default graphical.target
> Removed symlink /etc/systemd/system/default.target.
>
> I think, the last command made sense to me.
>
> Regards,
> VB
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> https://lists.centos.org/mailman/listinfo/centos
>



More information about the CentOS mailing list