What kind of messages are you getting? Syslog messages printed on the console can be turned off by disabling this line in /etc/syslog.conf:To avoid getting kernel messages,
*.err;kern.warning;auth.notice;mail.crit /dev/console
syslogd: last message repeated 1 times
sshd[XXXX]: error: PAM: Authentication error for <user> from <address>
sysctl kern.console
shows kern.console: ttyv0,/ttyv0,
.
% sysctl -d kern.console
kern.console: Console device control
Those are syslog messages. Disable that one line in /etc/syslog.conf and restart syslogd(8).If I use the console I get messages like :
Don't edit /etc/ttys to disable the console. That won't stop the messages from appearing.I've disabled the console in /etc/ttys so that I can no longer log in to it and I'm still using a virtual console.
I don't want to disable the messages that appear in the console: on the contrary, I want to dedicate the console to displaying all messages and errors. So I've disabled it so that I can't inadvertently log in. What I'd like is to be able to activate a virtual console at startup, so I don't have to type ALT+F1 every startup.Don't edit /etc/ttys to disable the console. That won't stop the messages from appearing.
I've tried puttingFor me (unchanged, so maybe for you, too),sysctl kern.console
showskern.console: ttyv0,/ttyv0,
.
kern.console="ttyv1"
I tried that but it didn't make any difference. What is this option supposed to do?add this to rc.conf
blanktime="999999 -s 2"
Exactly. By default, FreeBSD displays the /dev/ttyv0 console at startup. This is where all syslog and error messages are displayed, as defined according the first line of the /etc/syslog.conf file :Isn't it default that at boot some messages are printed to the screen and then you get 'Login:' and 'Password:' ?
*.err;kern.warning;auth.notice;mail.crit /dev/console
I don't use a graphical environment but the text console /dev/ttyv1.Unless some line in /etc/rc.conf starts the graphical environment, there is nothing else than a console.
[titus@f13 ~]$ grep ttyv0 /etc/ttys
ttyv0 "/usr/local/libexec/getty Pc" xterm onifexists secure
[titus@f13 ~]$ ls -l /usr/local/libexec/getty
-rwxr-xr-x 1 root wheel 85 Nov 16 10:57 /usr/local/libexec/getty
[titus@f13 ~]$ cat /usr/local/libexec/getty
#!/bin/sh
echo switching to 2
sleep 1
vidcontrol -s2 < /dev/ttyv0
exec /usr/libexec/getty $@
Thank you covacat that's exactly what I wanted.this works
vidcontrol wont change the window from /etc/rc.d/syscons because ttyv2 is not yet availableCode:[titus@f13 ~]$ grep ttyv0 /etc/ttys ttyv0 "/usr/local/libexec/getty Pc" xterm onifexists secure [titus@f13 ~]$ ls -l /usr/local/libexec/getty -rwxr-xr-x 1 root wheel 85 Nov 16 10:57 /usr/local/libexec/getty [titus@f13 ~]$ cat /usr/local/libexec/getty #!/bin/sh echo switching to 2 sleep 1 vidcontrol -s2 < /dev/ttyv0 exec /usr/libexec/getty $@
#!/bin/sh
vidcontrol -s2 < /dev/ttyv0
exec /usr/libexec/getty $@
chmod 755 /usr/local/libexec/getty
ttyv0 "/usr/local/libexec/getty Pc" xterm onifexists secure