public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Hans-Werner Hilse <hilse@web.de>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user]  Re: X without console log window?
Date: Thu, 16 Feb 2006 12:54:51 +0100	[thread overview]
Message-ID: <20060216125451.483c0ae8.hilse@web.de> (raw)
In-Reply-To: <dt02dj$2e6$1@sea.gmane.org>

Hi,

On Wed, 15 Feb 2006 20:20:49 +0000
Mick <michaelkintzios@lycos.co.uk> 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



  reply	other threads:[~2006-02-16 12:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-10 21:08 [gentoo-user] X without console log window? Urs Schuetz
2006-02-11 14:47 ` Hans-Werner Hilse
2006-02-11 20:52   ` Urs Schuetz
2006-02-13 11:24     ` Michael Kintzios
2006-02-13 12:33       ` Hans-Werner Hilse
2006-02-13 14:23         ` Michael Kintzios
2006-02-13 18:15           ` Hans-Werner Hilse
2006-02-13 23:28             ` [gentoo-user] " Mick
2006-02-15 20:20             ` Mick
2006-02-16 11:54               ` Hans-Werner Hilse [this message]
2006-02-22 11:49                 ` Michael Kintzios
2006-02-22 22:39                   ` [gentoo-user] " Mick

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060216125451.483c0ae8.hilse@web.de \
    --to=hilse@web.de \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox