Debian :: Command To Turn Off Various Logs That Run In The Background
Oct 6, 2009
I used to know a command to turn off various logs that run in the background of Debian. I using lenny on CF on an embedded board, that why I need the logs off, to stop writes.
how to turn off all mysql logs because mysql is using too many resources. I turned slow queries log and there is no slow queries here is what I want to turn off the logs maybe this is causing mysql to high load ?
How do I turn off Pidgin notification balloons when a buddy logs on or off? I've looked through the application's preferences like 3 times; is there some sort of system control for notification balloons?
I need to remove a large binary file(PDF file) from a large log file which is generated daily.This is seriously hogging space on our servers.I need to remove the large PDF from the logs to make the logs smaller and manageable
I need to take out the texts (or binary file) between the strings
<my:PDF> and </my:PDF> <applicationForm> and </applicationForm> <image> and </image> <extractedSignature> and </extractedSignature>
I am not sure whether sed utility can do this, these are large files and need to be pruned .I am not seeking logrotation advice just a script or command that can strip these large logs of texts between the characters above . I am not sure how to do this.These files are rather large.I am not sure how to achieve this with sed , tail, head , tr or any other facility .
I'm writing a script that performs backups from partitions on remote servers. I used to do this with ssh, but that seems to be somewhat slow, so I switched to netcat.I start a listener on the receiving server (which runs the script) like this:netcat -l -p 7000 | dd of=imagefile &and then I make the remote and start a dd piped to netcat. This works quite well started manually and the listener is waiting in the background. However, when I have cron run the same script to automate it, the netcat listener is not started, probably because the "&" thing does not work (or there is something with the piping that behaves differently then)
Because of my English skills I'll try to explain this subject as best I can, thank you for understanding. Fisrt of all, I am running some program on my slackware in background (using standard method - &). I need to make a script, which allows sending command to this process on my machine from another one. Furthermore this program have to be logged out (standard output f.e. ./myprogram > log.out.txt).It might be a separate Program A which runs my Program B but it cannot be screen, because it is not working like I'd like to and it cannot be java, because it's slow and working not the best so to speak
Have a bit of a dilemma I'm trying to track down. Have a user using both date and ps commands with & at the end of the line in a shell script. When he runs the script, it waits until he hits ENTER to get back to a prompt. Other times he doesn't. Also, I've noticed that this will sometimes happen, then immediately rerun the script and the behavior stops.
I have to access my laptop and transfer files but the screen is broken. The only protocol that I know for certain that's on that machine is rdp. Since the screen is broken I can't test anything else.
I am using Slackware 13.1 on my Asus K40IN, I also use dual boot by LILO with Windows XP. In Windows XP I can reboot or shutdown by select Start -> Turn off Computer, or just physically push the power button, then the machine will shutdown. In my Slackware 13.1, I can physically push the power button, the machine show that it is switching to run level 0, and then it will power off. However, I can not turn it off or restart my machine by the command (run "halt" or "reboot" as root), it show identical things like when I physically push button, but when it turn to status "Restarting machine" or "Turning off machine", my computer hang there, it does not power off machine or restart it. Is there any one experienced this situation? What should I do to fix it?
The first call to "somefunction" works as expected. The function prints "endfunction" and a process in background sleeps 30 seconds. In the second call I thought it should work in the same way, but the script sleeps 30 seconds before it prints "endfunction".Does someone know the reason of this behavior? Is there another way to do a command substitution of a function that has a background process without have to waiting for that process?
I have problem with loging, actually iptables logs a data but it seems that for some reasons does not writes in a log file:
Code: iptables -L -v Chain INPUT (policy ACCEPT 406 packets, 124K bytes) pkts bytes target prot opt in out source destination 0 0 ACCEPT tcp -- any any xxxxxxxxxxx anywhere tcp dpt:xxxx
[Code]....
i checked /var/log/message and /var/log/syslog nothing is here related to iptables. then i create separate file for Iptables by adding this: kern.warning /var/log/iptables.log in my rsyslog.conf it does create iptables.log file inside /var/ but its still empty
Is there a command to turn off my Broadcom wireless card to save power. In Apple, the have an Airport off listing under the airport menu, Is there something for Fedora?
I have received the following log messages on my Debian Squeeze webserver:Apr 13 15:16:37 vps suhosin[4699]: ALERT - ASCII-NUL chars not allowed within request variables - dropped variable 'controller' (attacker '75.126.235.115', file '/var/www/xxxxxxxxxxxxx.com
I just got a USB bluetooth adapter for my Laptop. I'm running Lenny with all the lateset updates, on and Ispiron 8600. I went through and made sure I installed all the Bluez stuff (as far as I can tell anyway). I'm trying to use it with my Droid Eris and while I have been able to successfully recieve files from the phone in Linux, I noticed it seems a little buggy and I think it ma have something to do with the logs. Below is a sample. As you can see, one line keeps repeating continuously. Given enough time, it will fill the entire /var partition. When I remove the Blutooth, it stops.
I'm trying to find out where the logs from slapd.conf (loglevel -1) go? I know in RH is /var/log/ldap.log cant find it on Debian. Its probably too late
Btw. does Debian have something like /etc/syslog.conf. If yes where?
So 1 year ago I installed Lenny, but in the process of installation during the splitting of the drive I have mistakenly set a seperate parition for "/var/logs" instead of "/var/log". Is there any way to redirect all the logs to this seperate partition (var/logs) or it's better to go through the whole trouble* of installing Lenny again? *the trouble because it was hell of a problem to fix grub that didn't recognize SmartArray RAID (cciss driver), the problem is that I don't really remember how I fixed it. Symbolic link won't help since physically it will still be on the other partition. Do I have any other option?
Well it turns out my system has logged out more then once on its own. I had the system updated and upgraded from 7-3-11 and it did this about once a week. On 7-18-11 I did a full update and upgrade and it logged out a few times in a couple of hours. It does it while I am away and the system is in screen saver mode. I used my partition clone and restored the system back to 7-3-11. Has any one else ever had such an issue?
When I try to login as me - it gets pretty far but then something happens and automatically logs out. This happens in Gnome, Kde too. Now - I have no problem logging in a Root. Is there a way I can try to stop the login process before it kicks me out, or is there a way to look at some files to tell me what's going on?
For some time now I've been unable to see changelogs for packages to be upgraded in Wheezy,even trying with different mirrors in sources.list all I'm getting is this:
Code: Select allaptitude changelog iceweasel Err Changelog of iceweasel E: Changelog download failed: 404 Not Found [IP: 185.31.16.185 80] Err Changelog of iceweasel E: Changelog download failed: 404 Not Found [IP: 185.31.16.185 80] E: Couldn't find a changelog for iceweasel
[Code] ....
Is there maybe some specific reasons why I can't get changelogs before applying the updates? I know I can review them afterwards,it's just that I would find convenient to have a look before updating.
How to enable persistent logging with systemd? I find it really weird that all this machinery that is systemd doesn't store persistent logs, what if I'm trying to retrieve some information regarding previous boots?
For instance: I have random suspend issues, after rebooting the computer there's no trace left in the logs of what happened, and furthermore (at least in Jessie) I can no longer see a pm-suspend log.
So, at first it sounds like all you have to do is edit journald.conf setting #Storage=auto to "persistent" and create the /var/log/journal directory, but then reading here /usr/share/doc/systemd/README.Debian
Code: Select allEnabling persistent logging in journald =======================================
To enable persistent logging, create /var/log/journal and set up proper permissions:
There are two main reasons why I decided to not enable persistent logging just yet ....
We did get corrupt journal files in the past where the journal then no longer worked at all [1]. With volatile you can just reboot and have a clean state again. Admittedly, the journal has seen a lot of improvements in the mean time and hopefully is more robust, so this point is no longer true.
We still install rsyslog by default. That means we get store them twice. This is something we don't want to do atm.
In a squeeze box, I installed awstats and it's working like a charm. Its cron job update the awstats database every 10 minutes (as it runs as root). But I would like to be able to update the statistics from the browser as well. So I setup everything as required and I gave "read" access to "others" to every apache log file. Now, a couple of questions came to my mind:
1. Am I compromising server's security giving "read" access to "others" to apache log files?
2. Instead of giving "read" access to "others", I could add www-data user to adm group (as apache log files are owned by root:adm and permissions are rw-r----). Is this more secure than giving "read" access to "others"? 3. If the option would be giving "read" access to "others" at the end, a log file would be owned by root:adm and its permissions be rw-r--r--. As apache rotates its log files, when Apache create a new log file, does it preserve the permissions (rw-r--r--) or create it with the default permissions (rw-r-----)?
When i open some video on the net, the system logs out (especially when i open ..... video). I suspect its flash (current version is 10.02). Is there any way how to fix this? Or how to downgrade to minor version.
Another thing as well. By default i have GNOME version. Just installed the KDE full package from synpatic. when i try to log in with kde manager same like the flash, it logs me out to welcome screen.