Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
Password working in CLI but not GUI
Password working in CLI but not GUI
Hello everyone! I'm new to Linux, and I downloaded the most recent version of Debian AMD64. It was working just fine until this morning.
I booted up and typed in my password (the correct password) and pressed enter, and nothing happened. I rebooted several times with the same result. I opened the command line and successfully logged in using my username and the same password that I typed in on the gui login screen, and I can navigate Linux like normal. The 'enter' key works fine, but it seems like the gui login screen won't accept it.
Things I've done: reset password through CLI, removed the Xauthority file, Googled and Binged, with no change.
I'm using the KDE desktop. I'm running it in VirtualBox
I've looked online a bunch and haven't found anything that's solved the problem, do y'all have any ideas? I hope I'm not missing anything super obvious, but I'm still new to this. Please help
I booted up and typed in my password (the correct password) and pressed enter, and nothing happened. I rebooted several times with the same result. I opened the command line and successfully logged in using my username and the same password that I typed in on the gui login screen, and I can navigate Linux like normal. The 'enter' key works fine, but it seems like the gui login screen won't accept it.
Things I've done: reset password through CLI, removed the Xauthority file, Googled and Binged, with no change.
I'm using the KDE desktop. I'm running it in VirtualBox
I've looked online a bunch and haven't found anything that's solved the problem, do y'all have any ideas? I hope I'm not missing anything super obvious, but I'm still new to this. Please help
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 132 times
Re: Password working in CLI but not GUI
You should be able to get your desktop running from a console login with the startx command.
Check the output of
Make sure the X11 keymap is correct.
Check the output of
Code: Select all
localectl
deadbang
Re: Password working in CLI but not GUI
When I do that the screen goes black. I can get back to the command line with ctrl-alt-F1, though.You should be able to get your desktop running from a console login with the startx command.
The keyboard is working fine in the command line, enter and everything. Would the GUI handle it differently?
Re: Password working in CLI but not GUI
Though everything was working normally up to now? Have you been mucking around with ie: Using sudo to launch graphical apps, in particular have you messed around in your user's /home with a file manager launched with elevated privileges? Try chowning the contents of your home.
See if X starts working again.
Code: Select all
sudo chown -R youruser:youruser /home/youruser
See if X starts working again.
Re: Password working in CLI but not GUI
Yes, there were no problems until I booted it up yesterday.Though everything was working normally up to now?
Tried chowning, startx still brings up a blank screen.Using sudo to launch graphical apps, in particular have you messed around in your user's /home with a file manager launched with elevated privileges? Try chowning the contents of your home.
Here's the error messages when I was logged in as root (it won't let me upload an image):
# sudo conqueror
qt.qpa.screen: QXcbConnection: could not connect to display
# sudo firefox
Error: no DISPLAY environment variable specified
# sudo localectl
System Locale: LANG=en_US.UTF-8
VC Keymap: n/a
X11 Layout: us
X11 Model: pc105
Using startx will make it so I can't access tty1 because the screen goes black, so I'll use tty# until I need to restart. I can get back to the gui login with ctrl-alt-F7, but nothing has changed.
I've been browsing through the log files and I'm not making much sense of it. It might have to do with permissions? I tried startx as root and it has the same result.
-
- Posts: 1100
- Joined: 2016-01-07 12:25
- Has thanked: 5 times
- Been thanked: 16 times
Re: Password working in CLI but not GUI
You could check you have free space on your / partition, log in to tty1 and type df this will show you if anything looks too high, I have had occasions where gui will not log in if there is no free space available.
If usage is above 95% I would free up some space, clearing apt cache of installed packages would usually give you some spare, and also check you do not have anything spamming your logs.
If usage is above 95% I would free up some space, clearing apt cache of installed packages would usually give you some spare, and also check you do not have anything spamming your logs.
Re: Password working in CLI but not GUI
Used df, everything is under 10% use.
After looking through the etc folder, I can't find the kde4 folder. Could the desktop environments have been deleted somehow?
After looking through the etc folder, I can't find the kde4 folder. Could the desktop environments have been deleted somehow?
-
- Posts: 1394
- Joined: 2007-03-04 21:10
- Location: U.S.A. - WI.
Re: Password working in CLI but not GUI
Look in /var/log/Xorg.0.log to see if your keyboard is being recognized by X when it starts up.
Also, when you type your password do you see any visual feedback? I.E. the "dots" filling the password input space as you type.
Also, when you type your password do you see any visual feedback? I.E. the "dots" filling the password input space as you type.
fortune -o
Your love life will be... interesting.
How did it know?
The U.S. uses the metric system too, we have tenths, hundredths and thousandths of inches
Your love life will be... interesting.
How did it know?
The U.S. uses the metric system too, we have tenths, hundredths and thousandths of inches
Re: Password working in CLI but not GUI
The dots would show up like normal; enter just would not submit the password. My guess is that the password wouldn't enter for some reason because there was no desktop to go to after logging in.
Turns out that the DE files were deleted somehow, and that VirtualBox glitched and disconnected the VM from the internet. Once I was reconnected I downloaded Xfce and it is working now. Not sure why this happened, but I'm glad it is working!
Turns out that the DE files were deleted somehow, and that VirtualBox glitched and disconnected the VM from the internet. Once I was reconnected I downloaded Xfce and it is working now. Not sure why this happened, but I'm glad it is working!
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 132 times
Re: Password working in CLI but not GUI
Don't do that. Ever.gingikinz wrote:I tried startx as root
And I think Deb-fan was advising that starting programs as root might cause your problem rather than solve it.
deadbang
Re: Password working in CLI but not GUI
Okay, sorry I misunderstood.
I will not do that from now on.
I will not do that from now on.