Re: [blfs-support] Redirect all kernel messages to one tty

2014-04-17 Thread Nicolas Le Manchet
Le 12/04/2014 22:17, William Harrington a écrit :
> LFS has ksyslog and you can set which tty the kernel messages go to:
>
> kern.* -/dev/tty6
>
> For example.
>
> If you don't want kerenel messages at your current console you can
> remove /dev/console for kern.* if it is there.
>
Thanks for the tip.
In fact in the default setup there is no /dev/console in syslog.conf. 
This behavior is because of klogd.
The trick is to set klogd display only critical messages with the switch 
"-c 3". Then klogd sends the messages to syslogd and you can redirect 
kern messages to the tty like you mentioned.

Regards,
Nicolas
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] Redirect all kernel messages to one tty

2014-04-12 Thread William Harrington

On Apr 12, 2014, at 11:52 AM, Nicolas Le Manchet wrote:

> Is it possible to redirect all kernel messages to one tty on LFS?
>
> Sincerely,
> Nicolas


LFS has ksyslog and you can set which tty the kernel messages go to:

kern.* -/dev/tty6

For example.

If you don't want kerenel messages at your current console you can  
remove /dev/console for kern.* if it is there.
Restart ksyslog daemon.
Sincerely,

WIlliam Harrington
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


[blfs-support] Redirect all kernel messages to one tty

2014-04-12 Thread Nicolas Le Manchet
Hi,

After a successful build of LFS I would like to clean the prompt from 
kernel messages.
What I am trying to do is keep all kernel messages in one tty used only 
for that, let's say tty1.
Disabling it in /etc/inittab and setting "console=tty1" in boot command 
is not enough since when I use tty2 with for example "ifup wlan0" I get 
all messages related to kernel setting up wireless on tty2 and not on 
tty1. I read man page of klogd but it seems that the only thing possible 
to do there is changing the log level. Google did not come with an 
answer for this.

Is it possible to redirect all kernel messages to one tty on LFS?

Sincerely,
Nicolas

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page