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.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: Clearing SWAP
    ... so, you don't automagically start the X server on bootup, ... if you REALLY want automatic startx consider this: ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: cannot load color "black"
    ... Thx for your experience. ... I have installed openoffice recently, ... I am using a NCD X-Terminal on a local lan as my terminal server, ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • RE: Cant reboot after update
    ... Kernel panic-not syncing: VFS: unable to mount root fs on ... server in our server room just after I started a normal reboot, ... etch host running on a Dell PowerEdge 2450 server. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: psad, aptitude, man, mutt, all suddenly broken on my Lenny server. Im very concerned.
    ... So I logged into the server just now over SSH (the server's 80mi away, ... server sent were from psad and they were sent on 7 Jan. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Trouble? ...
    (Debian-User)
  • Re: cannot load color "black"
    ... I am using a NCD X-Terminal on a local lan as my terminal server, ... Once it starts, it effects all applications, even ones running on ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Trouble? ...
    (Debian-User)