You are not logged in.
When arch linux boots, it boots directly into the console (I believe it's called tty1). From here, it is the user login and password.
I have the default root user, and I made a peter user as well.
What I want to happen is that if I were to login as peter, I want startx to run, and if I login as root, for it to stay on the console.
Currently it's the other way around.
At first I was wondering whether I would have to give peter access to different groups, but then I thought that I'd have to remove root from those groups (if this idea is even possible).
So is there something I can add to .xinitrc or inittab so that it does this?
Also, I'm not sure if the files like .xinitrc are written using some scripting language or something like that, but would someone be able to tell me which one if it is?
Thanks for reading and any helpful replies are much appreciated.
Last edited by PPeter (2012-08-23 16:13:30)
Offline
Your .xinitrc should be in /home/peter - that will achieve what you are after.
.xinitrc is a shell script: https://wiki.archlinux.org/index.php/Xinitrc
Offline
See also: https://wiki.archlinux.org/index.php/Start_X_at_Boot
And if I understand you correctly, it sounds like you may be logging into X as root? That's generally considered a bad idea.
Offline
Alright I got it working properly.
I was logging into X as root at first, but then I made the second user. I changed the xinitrc files around as well as the bash_profile files and now it's working how I want it to.
Offline