Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RH & X Question



On Sat, Sep 29, 2001 at 12:46:15PM -0400, Kent Borg wrote:
> On Sat, Sep 29, 2001 at 12:37:11PM -0400, Brian J. Conway wrote:
> > > I know I can change the default run level, but that makes all logins
> > > go to X and it leaves X running all the time.  I don't want X chewing
> > > up resources on a machine that is mostly just a light weight server.
> > 
> > Start up X in the login scripts of people you want to log in to X?
> 
> But I also want to have the original login to go away.  I want
> something like:
> 
>   startx & ; logout

Close.  Put this in your .profile instead:

  # don't run startx in the background
  startx
  exit

This way, while the user is in X, the .profile stops executing,
waiting for startx to exit.  As soon as they log out of their X
session, the .profile will continue and call the shell exit, which
should log them out.


-- 
---------------------------------------------------
Derek Martin          |   Unix/Linux geek
ddm at pizzashack.org    |   GnuPG Key ID: 0x81CFE75D
Retrieve my public key at http://pgp.mit.edu

-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org