From owner-freebsd-questions@FreeBSD.ORG Wed May 16 12:54:37 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C3DEB1065672 for ; Wed, 16 May 2012 12:54:37 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 8130D8FC0C for ; Wed, 16 May 2012 12:54:37 +0000 (UTC) Received: from r56.edvax.de (port-92-195-20-192.dynamic.qsc.de [92.195.20.192]) by mx01.qsc.de (Postfix) with ESMTP id B4F293DEF6; Wed, 16 May 2012 14:54:36 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id q4GCsaPD002024; Wed, 16 May 2012 14:54:36 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Wed, 16 May 2012 14:54:36 +0200 From: Polytropon To: mahdieh salamat Message-Id: <20120516145436.84794137.freebsd@edvax.de> In-Reply-To: References: Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: disable console messages X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 May 2012 12:54:37 -0000 On Wed, 16 May 2012 00:27:07 -0700, mahdieh salamat wrote: > hi all. how I can disbale console messages and clear screen on boot? > Thanks The console messages can be suppressed by commenting out the line *.err;kern.warning;auth.notice;mail.crit /dev/console in /etc/syslog.conf; if you want the messages redirected to a file (instead of the screen), just provide a different target, such as *.err;kern.*;auth.notice;mail.crit;console.info /var/log/console.log Make sure /var/log/console.log does exist: run # touch /var/log/console.log There are more useful examples in that file. See "man 5 syslog.conf" for details. To also silence the kernel, you could add boot_mute="YES" or (and?) consolse="nullconsole" to /boot/loader.conf. See "man 8 loader" and "man 5 loader.conf" and "less /boot/defaults/loader.conf" for details. Finally: Add the command "clear" or "/usr/bin/tput clear" at the end of the /etc/rc script (not very clean, but works). A quick web search brings up some inspiration: http://lists.freebsd.org/pipermail/freebsd-questions/2003-October/022911.html http://forums.freebsd.org/showthread.php?t=10341 http://forums.freebsd.org/showthread.php?p=58256#post58256 You'll find a suggestion there on how to avoid fiddling with the /etc/rc boot script (which should stay untouched due to many reasons). -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...