LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   console logging in etch/testing (https://www.linuxquestions.org/questions/debian-26/console-logging-in-etch-testing-534533/)

whitster 03-04-2007 02:15 PM

console logging in etch/testing
 
If you have been getting console messages using etch/testing and haven't been able to find out how to stop them other than after booting going to the CLI and typing dmesg -n 1, this is how I found to do it finally, using Debian etch/testing as of today.

edit your /etc/sysctl.conf file.

From the file.

# /etc/sysctl.conf - Configuration file for setting system variables
# See sysctl.conf (5) for information.
#

#kernel.domainname = example.com
#net/ipv4/icmp_echo_ignore_broadcasts=1

# Uncomment the following to stop low-level messages on console
kernel.printk = 4 4 1 7


This is from my box and I uncommented the "kernel.printk = 4 4 1 7" line ie. removed the # (comment) from it to make it active. (For us newbies) Then saved it and rebooted. I rebooted as I am not competent on restart procedures yet, and it will have stopped all console logging of non-problematic messages. You will still get the important ones, from 3 and above to 0.

You might take a look at that file just to see what else it controls for future reference. There is NOT a lot of documentation out there for etc/testing since it is still being put together.

Hope that helps someone. I've been hunting for a couple of months now for the answer and finally found it.

Whit

reddazz 03-05-2007 07:10 AM

Moved: This thread is more suitable in the Debian forum and has been moved accordingly to help your thread/question get the exposure it deserves.


All times are GMT -5. The time now is 05:32 AM.