You are not logged in.
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 directoryand 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
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.
Offline
Thanks. That did the trick.
Offline