RE: [gentoo-user] Re: X without console log window?

2006-02-22 Thread Michael Kintzios


 -Original Message-
 From: Hans-Werner Hilse [mailto:[EMAIL PROTECTED] 
 Sent: 16 February 2006 11:55
 To: gentoo-user@lists.gentoo.org
 Subject: Re: [gentoo-user] Re: X without console log window?
 
 
 Hi,
 
 On Wed, 15 Feb 2006 20:20:49 +
 Mick [EMAIL PROTECTED] wrote:
 
  I don't know if I am asking too much here, but is there a way to:
  1. Continue with all messages shown in tty12 as per default 
 syslog-ng
  configuration.
  2. Also show all/some messages to xconsole.
  3. Do not pipe everything to console during/after boot - the default
  messages there are adequate for my liking.
  
  Perhaps I am a bit confused: what is the relationship 
 between /dev/console
  and xconsole?
 
 Ah, the xconsole program man page explains it: By default, xconsole
 reads from /dev/console. I didn't knew that.
 
 What you want to archieve is more like the solution debian uses. I'll
 post it here but I haven't tried it out so I cannot promise that it
 works:
 
 syslog-ng.conf:
 ---snip---
 destination xconsole { pipe(/dev/xconsole); };
 destination terminal { file(/dev/tty12); };
 log { source(src); destination(xconsole); }
 log { source(src); destination(terminal); }
 ---snip---
 
 /etc/X11/xdm/Xsetup_0:
 ---snip---
 xconsole -geometry 480x130-0-0 -daemon -notify -verbose -fn 
 fixed -exitOnFail -file /dev/xconsole
 ---snip---
 
 That should do what you want to archieve.
 Nice alternative to xconsole is root-tail...

I've played around with your suggestions but had no joy with them.
Syslog-ng came up with many errors and although I tried different
combinations I couldn't get it to work.

Root-tail is cool but it gets covered up by different windows.  Do you
launch it as a default by entering a line in /etc/X11/xdm/Xsetup_0 ?

Xconsole does what I want it to do, but I would also like to get tty12
printing all messages and ideally would like xconsole to be positioned
above the fluxbox toolbar (height wise).
-- 
Regards,
Mick

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: X without console log window?

2006-02-16 Thread Hans-Werner Hilse
Hi,

On Wed, 15 Feb 2006 20:20:49 +
Mick [EMAIL PROTECTED] wrote:

  I don't have currently syslog-ng running, but I think I remember that
  similar configuration was in /etc/syslog-ng/syslog-ng.conf (maybe
  commented out?)
 
 Yes, it was commented out as the default setting is to send everything to
 tty12:
 
 # By default messages are logged to tty12...
 #destination console_all { file(/dev/tty12); };
 # ...if you intend to use /dev/console for programs like xconsole
 # you can comment out the destination line above that references /dev/tty12
 # and uncomment the line below.
 destination console_all { file(/dev/console); };
 
 So, now I've uncommented it but every single message is shown not only in
 xconsole (which is fine), but in tty1 as well.  The latter makes the boot
 up messages look very messy indeed.

What a confusion. I use debian here which seems to be configured
differently. But read below...

 I don't know if I am asking too much here, but is there a way to:
 1. Continue with all messages shown in tty12 as per default syslog-ng
 configuration.
 2. Also show all/some messages to xconsole.
 3. Do not pipe everything to console during/after boot - the default
 messages there are adequate for my liking.
 
 Perhaps I am a bit confused: what is the relationship between /dev/console
 and xconsole?

Ah, the xconsole program man page explains it: By default, xconsole
reads from /dev/console. I didn't knew that.

What you want to archieve is more like the solution debian uses. I'll
post it here but I haven't tried it out so I cannot promise that it
works:

syslog-ng.conf:
---snip---
destination xconsole { pipe(/dev/xconsole); };
destination terminal { file(/dev/tty12); };
log { source(src); destination(xconsole); }
log { source(src); destination(terminal); }
---snip---

/etc/X11/xdm/Xsetup_0:
---snip---
xconsole -geometry 480x130-0-0 -daemon -notify -verbose -fn fixed -exitOnFail 
-file /dev/xconsole
---snip---

That should do what you want to archieve.
Nice alternative to xconsole is root-tail...

-hwh

-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Re: X without console log window?

2006-02-15 Thread Mick
Hans-Werner Hilse wrote:

 
 No problem. But it's from a debian system... From /etc/syslog.conf:
 ---snip---
 # The named pipe /dev/xconsole is for the `xconsole' utility.  To use it,
 # you must invoke `xconsole' with the `-file' option:
 # 
 #$ xconsole -file /dev/xconsole [...]
 #
 # NOTE: adjust the list below, or you'll go crazy if you have a reasonably
 #  busy site..
 #
 daemon.*;mail.*;\
 news.crit;news.err;news.notice;\
 *.=debug;*.=info;\
 *.=notice;*.=warn   |/dev/xconsole
 ---snip---
 
 I don't have currently syslog-ng running, but I think I remember that
 similar configuration was in /etc/syslog-ng/syslog-ng.conf (maybe
 commented out?)

Yes, it was commented out as the default setting is to send everything to
tty12:

# By default messages are logged to tty12...
#destination console_all { file(/dev/tty12); };
# ...if you intend to use /dev/console for programs like xconsole
# you can comment out the destination line above that references /dev/tty12
# and uncomment the line below.
destination console_all { file(/dev/console); };

So, now I've uncommented it but every single message is shown not only in
xconsole (which is fine), but in tty1 as well.  The latter makes the boot
up messages look very messy indeed.

I don't know if I am asking too much here, but is there a way to:
1. Continue with all messages shown in tty12 as per default syslog-ng
configuration.
2. Also show all/some messages to xconsole.
3. Do not pipe everything to console during/after boot - the default
messages there are adequate for my liking.

Perhaps I am a bit confused: what is the relationship between /dev/console
and xconsole?
-- 
Regards,
Mick

-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Re: X without console log window?

2006-02-13 Thread Mick
Hans-Werner Hilse wrote:


 No problem. But it's from a debian system... From /etc/syslog.conf:
 ---snip---
 # The named pipe /dev/xconsole is for the `xconsole' utility.  To use it,
 # you must invoke `xconsole' with the `-file' option:
 # 
 #$ xconsole -file /dev/xconsole [...]
 #
 # NOTE: adjust the list below, or you'll go crazy if you have a reasonably
 #  busy site..
 #
 daemon.*;mail.*;\
 news.crit;news.err;news.notice;\
 *.=debug;*.=info;\
 *.=notice;*.=warn   |/dev/xconsole
 ---snip---
 
 I don't have currently syslog-ng running, but I think I remember that
 similar configuration was in /etc/syslog-ng/syslog-ng.conf (maybe
 commented out?)

Thanks!  I'll have a look.
-- 
Regards,
Mick

-- 
gentoo-user@gentoo.org mailing list