Results 1 to 2 of 2
Thread: How to make startx run on login?
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Oct 2007
How to make startx run on login?
I wonder how to make the xsever automatically start on login. I have tried to include 'exec startx' in the user's .bash_profile,without succes, but can on the other hand exec startx manually after login without problems. After automatically logging in the screen goes blank for a sec and falls back to the console with the common pointer and the lower half of the screen grey.
I would appreciate a bash script to start the xserver as i am using a handheld device without keyboard and can only ssh to it.
- Join Date
- Nov 2004
Generally in runlevel 5 gdm, kdm, or xdm will start up because there's a script to do it in /etc/rc.d/rc5.d or wherever the init scripts are located. For startx, make sure there's things in .xinitrc for it to run. Whatever is in .xinitrc, make sure there's something that isn't started in the background (without the & at the end) that will stay open during the whole session. The X server will exit after it runs through all the commands in .xinitrc which is why you need that. Also, if still having problems, make sure there's nothing abnormal in the log.