Re: kernel tells me stuff on tty1 - want it on tty 8 or 10. how?
On Tue, Jun 10, 2008 at 05:40:12PM +0200, Dexter Filmore wrote:
> Encountered an oddity on a headless machine with etch r3:
>
> When the system is booted, kernel messages are put on tty1.
They actually go to /dev/tty (your "current" console).
> Since this is the
> terminal I login to after it's booted this is highly annoying since my screen
> is garbled when I run scripts and the kernel messages me about... mounted
> disks or plugged ethernet cables etc.
> I've never seen this with other distros afair, Slackware puts ll its kernel
> output on tty8 for example. I'd like to have that here, too.
> Can do?
setlogcons .
You'll have to open(8) that terminal first, I believe.
I use in a certian init.d script:
CONSOLE=10
openvt -c "$CONSOLE" -- /bin/true || true
setlogcons "$CONSOLE" || true
To revert to the default: setlogcons ''
--
Tzafrir Cohen | tzafrir@jabber.org | VIM is
http://tzafrir.org.il | | a Mutt's
tzafrir@cohens.org.il | | best
ICQ# 16849754 | | friend
Reply to: