Solved startx by normal user

Hi,
I have installed openbox after installing xorg and when I login as root, I can startx openbox normally but when I login as normal user, it runs only xorg and don't run openbox!
How can I run startx for run openbox by normal user?
 
Hi,
startx(1) checks the ~/.xinitrc file to know which windows manager to launch. In your case, your ~/.xinitrc is most likely absent (unless you created it) and therefore twm(1) is used as default. So, as normal user, create the ~/.xinitrc file and add the following line:
Code:
exec openbox-session
This shoud fix your problem. I assume that you created this file for the root user and it is why it was working in that case. To be sure, you can run cat ~/.xinitrc as root to see if the line I just showed you is already present.

Remember, each user has his own .xinitrc file and therefore you have to configure one for each user.
 
Back
Top