Re: [SuSE Linux] Autostart X without using xdm
Steve, You need to add it to the end of their ".profile". .profile is only run on login time, whereas .bashrc is run for each shell (including an xterm.) Look at the INVOCATION section of the bash manual page if you want more explanation about this. By the way, a slight efficiency hack would be to do "exec startx", instead of "startx".; that takes care of automatically logging out for you too :). You might also want to check what terminal they're logging into, so that you don't try to start X for users who will be logging in over the network. --Steve A Steve Crane wrote:
I want to set up some users on my box to run only under X but I want others, like myself and root to log in to the console and optionally start X.
I presume that I can't use xdm in this case and that I need to have a script that runs at the end of the login process for some users. I imagine that I just need to add something like:
startx logout
Where would I do this? I tried putting startx at the end of .bashrc and although X ran I would get a message saying something like "no session" when I opened an xterm.
-- Steven Augart <swa@ISI.EDU> Globus project, USC Information Sciences Institute; http://www.globus.org -- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at http://www.suse.com/Support/Doku/FAQ/ and the archive at http://www.suse.com/Mailinglists/suse-linux-e/index.html
participants (1)
-
swa@ISI.EDU