Re: Clearing SWAP
On Sat, May 03, 2008 at 02:06:22PM -0400, Paul Cartwright wrote:
> On Sat May 3 2008, Marc Shapiro wrote:
> > alias startx='startx -- :0 vt07'
> > alias startx='startx -- :1 vt08'
> > alias startx='startx -- :2 vt09'
> so, you don't automagically start the X server on bootup,
if you REALLY want automatic startx consider this:
in /etc/inittab
2:23:respawn:/bin/login -f user2 </dev/tty2 >/dev/tty2 2>&1
3:23:respawn:/bin/login -f user3 </dev/tty3 >/dev/tty3 2>&1
4:23:respawn:/bin/login -f user4 </dev/tty4 >/dev/tty4 2>&1
(which must _replace_ the 2:... 3:... and 4:... lines in /etc/inittab)
and then
at the end of ~user2/.bash_profile
[ `tty` = /dev/tty2 ] && exec startx -- :0 vt07
at the end of ~user3/.bash_profile
[ `tty` = /dev/tty3 ] && exec startx -- :1 vt08
at the end of ~user4/.bash_profile
[ `tty` = /dev/tty4 ] && exec startx -- :2 vt09
But you should also carefully consider: is it a really good idea to have
one (or more) automatically started X session ?
--
Chi usa software non libero avvelena anche te. Digli di smettere.
Informatica=arsenico: minime dosi in rari casi patologici, altrimenti letale.
Informatica=bomba: intelligente solo per gli stupidi che ci credono.
Reply to: