Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stop Centos 7 Desktop returning to Login Screen after a successful login?

So I just did a fresh install of Centos 7 with the desktop. After the install, I installed my development environment and when to attach my windows ssd, but was told it needed to be shutdown instead of hibernation. So I restarted my system, booted into windows, and hit shutdown. Afterwards, I went to login into my Centos 7 System, and after a successful password entry, it'll start the login process, and then flash a black screen. Soon it'll show Started virtualization daemon, and then load the login screen again!

Why is it doing this? How can I fix it? Then how can I avoid this in the future!?

Thanks for your help!

like image 619
jemiloii Avatar asked Feb 11 '23 08:02

jemiloii


1 Answers

Interrupt the boot at the GRUB stage and boot to runlevel 1, AKA single user mode. Interrupt GRUB by typing a character such as "space" then append to the kernel line by typing "a", backspacing through "rhgb quiet" and appending " 1". This will give you a root shell and not a login prompt. From there you can comment all recent entries in /etc/environment , and reboot your server/PC

like image 62
gatejo Avatar answered Feb 13 '23 02:02

gatejo