Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Feb 2004 10:04:06 +0800
From:      Robert Storey <y2kbug@ms25.hinet.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: Boot and MBR.
Message-ID:  <20040227100406.4d29eec4.y2kbug@ms25.hinet.net>
In-Reply-To: <200402262226.i1QMQlS10937@clunix.cl.msu.edu>
References:  <88EB08D16800D34EA145D7DD2AA44998E64C@minnie.outland> <200402262226.i1QMQlS10937@clunix.cl.msu.edu>

next in thread | previous in thread | raw e-mail | index | archive | help

> > The second question I have, is can I put the command startx into my
> > rc.conf file to have it boot directly into the x-server? Any help on
> > these two would be awesome. Thanks.
> 
> I have not been successfule with that sort of thing.   Anyway, I 
> don't think just putting it in rc.conf would do the trick because 
> that just sets a bunch of variables in there.  Then the stuff is
> actually run from rc (and some other places I think) using those 
> variable values set in /etc/defaults/rc.conf and /etc/rc.conf..
> 
> I think you might not want your startx to fire off until after
> you log in anyway.    That would mean putting it in .login (if 
> you have a csh or tcsh shell)  and that is what didn't work
> for me, though I didn't try many variations.

If you're running the Bash shell, putting "startx" into file
~/.bash_profile will have the desired effect. Under FBSD, by default
there is no .bash_profile file, so just create one for each individual
user who wants to start up in X.

regards,
Robert




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040227100406.4d29eec4.y2kbug>