[SATLUG] Automatically starting X after logging in at command line?

Travis H. travis at nexus.subspacefield.org
Tue Oct 31 23:02:32 CST 2006


On Mon, Oct 30, 2006 at 11:17:34PM -0600, Tom Weeks wrote:
> Putting startx int he .bashrc is wrong minded since the X server runs local to 
> the keyboard and mouse and CRT.  Remote logins will cause problems (assuming 
> one isn't purely relying on something like VNC to simulate console access).

It's worse than that, any subshell will read .bashrc so you actually want it
in .profile or .bash_profile.  My super-mega-enhanced .profile on my web site
does this, but I don't use it that way any more.

Note that another risk is that someone can ctl-alt-F1 and go back to the
text session, hit control-C, thereby killing X and the screen lock, and
leaving them in your shell.  You need to exec startx if you want it to
exit afterwards.
-- 
"Cryptography is nothing more than a mathematical framework for
discussing various paranoid delusions." -- Don Alvarez
<URL:http://www.subspacefield.org/~travis/> -><-


More information about the SATLUG mailing list