You are not logged in.

#1 2018-02-28 02:19:00

anteiku
Member
Registered: 2018-02-28
Posts: 3

[SOLVED] bash_profile xinit leads to login loop

I'm extremely new here and have heard this is a great community. I tried installing Arch and went through the entire installation guide, and now am trying to get through general recommendations.  In trying to install xinit, I came across this section called "Autostart X at login" and appended

if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
  exec startx
fi

~/.bash_profile file.
Apparently, I did not check thoroughly enough for Xorg under /usr/bin because now whenever I login to root, bash_profile runs and it says

/root/xserverrc: line 2: /usr/bin/Xorg: No such file or directory

and then loops me back to the login screen.  Therefore, I cannot login as root anymore.

I have tried to log in with another user account with sudo privileges and reconfigure the bash_profile file but I don't know how to get to the $HOME of root user.
I now know that xorg is not supposed to be installed as root anyway, but I had no idea.  There are so many redirects in the general recommendation that I may have missed a step or have been led to a further point than I was by clicking on links. 


If possible, I would like to edit ~/.bash_profile for root user without logging in to root user. 

Thank you for your time and understanding.

Last edited by anteiku (2018-03-01 20:13:20)

Offline

#2 2018-02-28 02:22:25

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] bash_profile xinit leads to login loop

Login as a user, su and then cd /root

And then put that block in your user's .bash_profile and only run X as that user.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2018-03-01 20:12:58

anteiku
Member
Registered: 2018-02-28
Posts: 3

Re: [SOLVED] bash_profile xinit leads to login loop

Thanks. That did the trick.

Offline

Board footer

Powered by FluxBB