Desktop env/ window manager issues when logging in.

8 respostas [Última entrada]
ursa_minor
Desconectado
Joined: 08/16/2020

I recently installed i3 after having played around with dwm a little. I think I may have altered the .xinitrc file when doing this (can't remember precisely!).

I ran startx today after installing i3, which sent me into dwm. Now I find myself unable to log in at all (when I log in I am instantly thrown back out again). I'm not sure what I can do here except maybe restarting in safe mode and altering the .xinitrc through the command line. Has anyone else encountered this?

I'm on a librebooted X200s.

eric23
Desconectado
Joined: 06/30/2017

You may have a backup file of .xinitrc named .xinitrc~

I prefer to login using a window manager though. I think from there you can set your preferred session through a file called .xsession if you are using xdm or choosing the session by pressing a certain button for other desktop managers.

I'll give startx a try and see what happens.

ursa_minor
Desconectado
Joined: 08/16/2020

Cool, thanks.

I seem to have a file called xinitrc with the following line of code:
# global xinitrc file, used by all X sessions started by xinit (startx)
# invole global X session script
. /etc/X11/Xsession
in /home/usr/etc/X11/xinit

I have a file called Xsession in /home/usr/etc/X11
I've found the #initialise variables for use by all session scripts

Can't find the .xinitrc ... still looking for what to do with which files so I can log in again.

eric23
Desconectado
Joined: 06/30/2017

I am not sure what to do with xinitrc. I think .xsession is much simpler to deal with. Just add that file in your home directory with the window manager of your choice. To start dwm you only need to write dwm in this file.

ursa_minor
Desconectado
Joined: 08/16/2020

I've given that a go, thanks. I'm still trying to log back on and trisquel is not accepting my password. I'm wondering if my password files have somehow been corrupted.

ursa_minor
Desconectado
Joined: 08/16/2020

NB. I've just realised that can't be the case, as I can log in after pressing C Mod F2

andyprough
Desconectado
Joined: 02/12/2015

.xinitrc would be in your home folder.

cd ~/
ls -al | grep .xinitrc

ursa_minor
Desconectado
Joined: 08/16/2020

Thanks - I really oddly don't seem to have .xinitrc. Not sure what problems this could be causing.

ursa_minor
Desconectado
Joined: 08/16/2020