LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Debian 8 loops login (https://www.linuxquestions.org/questions/linux-desktop-74/debian-8-loops-login-4175544390/)

peter576 06-03-2015 12:07 PM

Debian 8 loops login
 
hi
i'm using Debian 8 on a Sony NW21SF laptop. A new problem came up recently, when i try to login, it dropes me back to the login screen. I can use the X-window-system if i login as root on a tty terminal and type "startx". Any suggestions?

thank you

273 06-03-2015 12:19 PM

I have to mention that if you try to log in as root from the graphical login screen you will see this behavior. Thet's probably not what you're doing but felt it worth typing for completeness.
Secondly, which DE or window manager do you use and which login manager? If default it will be GNOME DE with gdm3 so it's worth selecting "fallback mode", if present, or ensuring Wayland isn't selected (or is if it isn't).
If none of that helps I would be tempted to rename (using mv on the command line) the hidden directories which hold the setting for your DE -- sorry, I am not at my machine to find them but a google should produce them. It could be that the update installed DE components not compatible with your settings or that your settings are corrupt in some way.
You could even just try running the apt-get update and upgrade cycle again and see whether it fixes itself.

peter576 06-03-2015 02:11 PM

i can't find this option, i don't really understand what i'm doing. Is this a config file?

thanks

Head_on_a_Stick 06-03-2015 02:17 PM

At the GRUB menu, highlight the Debian 8 entry and press "e" then add this to the end of the line that starts with "linux":
Code:

systemd.unit=multi-user.target
Then press <Ctrl>+x to boot the modified entry.

This will boot up to a console (TTY, text only) log in after which you can try `startx` as a regular user.

Does the desktop start then?

Which desktop environment are you using?

Do not use your graphical desktop as root.

273 06-04-2015 12:00 PM

Quote:

Originally Posted by peter576 (Post 5371669)
i can't find this option, i don't really understand what i'm doing. Is this a config file?

thanks

Assuming this is a default Debian install then, when you see the graphical login, there should be a little "cog" icon which you press to select session type before you log in.
To get to the command line or shell as it is generally called from that same screen you can press Ctrl+Alt+F2 (or another of the first 7 F keys butone will put you. Back at the graphical login.

cabrioleur 06-20-2015 12:13 AM

Quote:

Originally Posted by peter576 (Post 5371586)
hi
i'm using Debian 8 on a Sony NW21SF laptop. A new problem came up recently, when i try to login, it dropes me back to the login screen. I can use the X-window-system if i login as root on a tty terminal and type "startx". Any suggestions?

thank you

It sounds more like a permissions problem. Make sure that you are the owner of the home directory. Change it with
Code:

chown -Rfv user /home/user
(substitute user with your username).

If this does not help, remove (or change the names if you intend to keep them) these files from your home directory:
.xinitrc
.xsession
.Xauthority

That should suffice.


All times are GMT -5. The time now is 02:45 PM.