From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.54) id 1FC2jN-0006r1-Ui for garchives@archives.gentoo.org; Wed, 22 Feb 2006 22:45:10 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id k1MMhief030928; Wed, 22 Feb 2006 22:43:44 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id k1MMdP8a020565 for ; Wed, 22 Feb 2006 22:39:25 GMT Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by smtp.gentoo.org with esmtp (Exim 4.54) id 1FC2do-0002qP-Nm for gentoo-user@lists.gentoo.org; Wed, 22 Feb 2006 22:39:25 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FC2de-0002gm-23 for gentoo-user@gentoo.org; Wed, 22 Feb 2006 23:39:14 +0100 Received: from 213-162-120-196.michae422.adsl.metronet.co.uk ([213.162.120.196]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 Feb 2006 23:39:14 +0100 Received: from michaelkintzios by 213-162-120-196.michae422.adsl.metronet.co.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 Feb 2006 23:39:14 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Mick Subject: [gentoo-user] RE: Re: X without console log window? Date: Wed, 22 Feb 2006 22:39:11 +0000 Message-ID: References: <20060216125451.483c0ae8.hilse@web.de> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 213-162-120-196.michae422.adsl.metronet.co.uk User-Agent: KNode/0.9.3 Sender: news X-Archives-Salt: 36f555c5-72ba-4040-8239-09d77af2614e X-Archives-Hash: 4817472dda73d7d9a71e707cf94878fa Michael Kintzios wrote: > > >> -----Original Message----- >> From: Hans-Werner Hilse [mailto:hilse@web.de] >> 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 +0000 >> Mick 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 ? OK, I managed to spend some time looking into this. For those who are still watching this thread this is what I now have working happily: ============================================ # under my destination settings: destination xconsole { pipe("/dev/xconsole"); }; destination console { file("/dev/console"); }; # under my filter settings: filter f_info { level(info); }; filter f_notice { level(notice); }; filter f_warn { level(warn); }; filter f_crit { level(crit); }; filter f_err { level(err); }; filter f_failed { match("failed"); }; filter f_denied { match("denied"); }; # under my log settings: log { source(src); filter(f_emergency); destination(console); }; log { source(src); filter (f_warn); destination(console); }; log { source(src); filter (f_err); destination(console); }; log { source(src); filter (f_crit); destination(console); }; log { source(src); filter (f_notice); destination(console); }; log { source(src); filter (f_failed); destination(console); }; log { source(src); filter (f_denied); destination(console); }; ============================================ You can modify the above to change verbosity or amount of messages that xconsole spews at you. tty12 stills logs everything as per default settings. I've also added a bit of colour in the default blunt xterm used by xconsole, just by editing /etc/X11/xdm/Xsetup_0: ============================================ xconsole -geometry 480x130-0-0 -fg green -bg black -daemon -notify -verbose -fn fixed -exitOnFail ============================================ I hope this helps someone (besides me of course ;-). Thanks for your responses which got me thinking. -- Regards, Mick -- gentoo-user@gentoo.org mailing list