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 1F9hod-00031p-93 for garchives@archives.gentoo.org; Thu, 16 Feb 2006 12:00:55 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id k1GBxd8G006426; Thu, 16 Feb 2006 11:59:39 GMT Received: from gabriel.sub.uni-goettingen.de (gabriel.sub.uni-goettingen.de [134.76.163.126]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id k1GBsrxv006582 for ; Thu, 16 Feb 2006 11:54:53 GMT Received: by gabriel.sub.uni-goettingen.de (Postfix, from userid 8) id E232EA73BE; Thu, 16 Feb 2006 12:54:52 +0100 (CET) Received: from sub00421 (unknown [134.76.161.221]) by gabriel.sub.uni-goettingen.de (Postfix) with ESMTP id C3213A6BFF for ; Thu, 16 Feb 2006 12:54:51 +0100 (CET) Date: Thu, 16 Feb 2006 12:54:51 +0100 From: Hans-Werner Hilse To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: X without console log window? Message-Id: <20060216125451.483c0ae8.hilse@web.de> In-Reply-To: References: <20060213133341.7c2f89b4.hilse@web.de> <20060213191500.245c2820.hilse@web.de> X-Mailer: Sylpheed version 2.0.4 (GTK+ 2.8.10; i486-pc-linux-gnu) 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-Spam-Details: No, hits=0.1 required=5.0 tests=AWL autolearn=ham version=2.64 X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on gabriel.sub.uni-goettingen.de X-Archives-Salt: d1ac5500-3a76-4095-8bdd-036ed1b51256 X-Archives-Hash: 1eb61fe65228a3f35d911075ad9bedd4 Hi, On Wed, 15 Feb 2006 20:20:49 +0000 Mick 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