[Techtalk] monitoring realtime stuffs on F1 console

Conor Daly conor.daly at oceanfree.net
Sun Sep 21 00:34:41 EST 2003


On Sat, Sep 20, 2003 at 02:10:09PM -0700 or so it is rumoured hereabouts, 
Carla Schroder thought:
> On Saturday 20 September 2003 5:17 am, Conor Daly wrote:
> > Re: [Techtalk] monitoring realtime stuffs on F1 console
> > 
> 
> Gaah, ignore my previous post. Need more coffee. Of course debian uses gettys, 
> sheesh.
> 
> ps ax|egrep 'tty[0-9].*bash' returns nothing at all. The syntax looks 
> perfectly OK, any other bright ideas?  I shall be worrying at this until I 
> figure it out. Maybe there are clues in bootscripts.

Have you logged in on any console?  I have console logins running on tty1
and tty3 and I have 2 gnome-terminals running under X:

If I look for bash-in-a-tty I get the two consoles:
[cdaly at Valkerie cdaly]$ ps ax | egrep 'tty[0-9].*bash'
 3338 tty1     S      0:00 -bash
17142 tty3     S      0:00 -bash

Look for any bash and I see the two consoles and the two gnome-terms (on
pts):
[cdaly at Valkerie cdaly]$ ps ax | egrep bash
 3338 tty1     S      0:00 -bash
17107 pts/1    S      0:00 bash
17142 tty3     S      0:00 -bash
17218 pts/1    S      0:00 egrep bash

Then if I check for what's running on each tty, I find:
[cdaly at Valkerie cdaly]$ ps ax | egrep tty
 1011 tty2     S      0:00 /sbin/mingetty tty2
 1013 tty4     S      0:00 /sbin/mingetty tty4
 1014 tty5     S      0:00 /sbin/mingetty tty5
 1015 tty6     S      0:00 /sbin/mingetty tty6

mingetty running on ttys 2,4,5,6

 1219 tty1     S      0:00 login -- cdaly     
 3338 tty1     S      0:00 -bash

login and bash running on each of tty 1 and 3

 1012 tty3     S      0:00 login -- cdaly     
17142 tty3     S      0:00 -bash


Your results are consistent with booting to runlevel 5 (that's level 3 in
debian isn't it?) and logging in directly to X.  What do you get from 
'ps ax | egrep tty'?  Login on a console and repeat.  You should see
results much like mine.  Try booting to text-only mode (runlevel 3 on RH,
runlevel 2 on debian?).  Login and then do 'startx'.  You should get some
of the diagnostics you mentioned back on tty1 at that stage.

Conor
-- 
Conor Daly <conor.daly at oceanfree.net>

Domestic Sysadmin :-)
---------------------
Faenor.cod.ie
 12:27am  up 34 days,  7:00,  0 users,  load average: 0.00, 0.00, 0.00
Hobbiton.cod.ie
 12:24am  up 34 days,  6:58,  1 user,  load average: 0.01, 0.01, 0.00


More information about the Techtalk mailing list