Software :: Clearing Log Files On Boot?
Jan 19, 2009How to clear log files, also how to clear log files on boot.
View 3 RepliesHow to clear log files, also how to clear log files on boot.
View 3 RepliesMy other PC has ground to a halt as the tmp file is full: "/tmp out of disk space" & "KDE unable to start". I have scoured commands and can't find how to clear all the junk apart from move it somewhere else.
View 5 Replies View RelatedI've been using cron to clear /tmp at boot time but thought I'd try another method. After doing a little research I added the following line:
Code:
( cd /tmp && rm -rf -- * .* 2>/dev/null )
to /etc/rc.d/rc.S immediately after:
Code:
# Done checking root filesystem
And /tmp is not clearing out at boot time. This method seems to work for others.
post the code for clearing RAM as cache?
View 2 Replies View RelatedHow do I clear the ALT+F2 'run a command' history that appears in Ubuntu Natty? The Terminal command I used to use in 10.10 to clear the history no longer works in the new Unity command launcher. I've tried searching within files on my hard drive to see if I can find where the data is stored, but no such luck.
View 3 Replies View RelatedI came across this article: [URL] while looking for a way to clear my BIOS password. I wonder if this is possible with gdb? I've had no luck by trying "output x70 2e" and "output 70 2e", the former asks for a symbol table to be loaded.
View 3 Replies View RelatedI have a dual-monitor display with a Nvidia GEforce 9400 video card. The login screen has a normal login on the primary display but the second display contains fragments from the previous session. I would like to clear the secondary display so that it does not display information from the previous session.
View 1 Replies View RelatedIf I copy text into the xterm clipboard from vim, it is cleared when I exit vim. How do I prevent this?
View 1 Replies View RelatedHow do I get rid of the information that Ubuntu stores for connecting to wireless networks?
I'm asking because I have two wireless networks nearby: my personal network and my school's network. I tried one time to connect to the school's network using the standard prompts but none of them worked - however I could connect to my personal network just fine. The problem is that Ubuntu remembered the incorrect information I entered for my school's network and keeps trying to connect to it.
It's annoying because whenever I'm in range of both networks I keep having to manually tell it to stop connecting to my school's network and to connect to my personal one instead.
Is there any way to clear the list of recent folders when you click Move or Copy on an image in gThumb? It's gotten way too big, so now it's not really helpful at all, with folders I don't even use.
View 1 Replies View RelatedUbuntu 11.04 Removing History. In the new 11.04 on the apps doc panel on the left hand side there is a button called "Files & Folders", when clicked on it brings up.
recent
downloads
favorites
Is there a way to clear the history, maybe disable it altogether or at the very least limit the amount of history it retains?
If I add a rule to iptables:
Code:
iptables -t nat -A POSTROUTING -o eth4 -j MASQUERADE
it does not get removed when I try to clear all the rules:
[code]...
a few days ago i set my FoxyProxy settings to tor. I needed it to make a few raid boards on 4chan and those can get you banned if you post.
So anyways, i go on this forum about a phone and i accidentally refreshed the page, but i haven't switched from proxy to my default settings and so all of a sudden a message appeared "Sorry, ###### you are banned from this forum."
I tried clearing cache, cookies and whatnot through firefox' options but still i get that message, i installed Midori for a quick test and it seems to work there (I'm not banned) but never on firefox, even rebooted and still nothing.
I really hate the ads with Midori as i use Adblock for firefox.
How does one clear all Firefox history?
View 1 Replies View RelatedI have a small program that reads stdin from a pipe using fgets. Now fgets blocks for the first line but after that it will not block.
The code, my_echo.c -
int main(int argc, char **argv) { char buf [2000] ;
char* pc ; printf("hello ") ; while (1)
{ buf[0] = (char) 0 ;
pc = fgets(buf, sizeof(buf), stdin);
if (pc != NULL) printf("%s ",buf); } return 0; }
How its called
* In terminal window 1: ./my_echo < my_fifo
* In terminal window 2: echo "1234" > my_fifo
* In terminal window 1: prints hello then 1234.
* Checking with ksysguard or top shows that my_echo is consuming 40% of CPU time.
Adding a few printf's shows that the gets is not blocking and returns a null pointer.
* In terminal window 2: echo "qwerty" > my_fifo
* In terminal window 1 qwerty prints.
I want a read function that does in fact block so my program does not tie up CPU time, read does not block.
I just realized that my /tmp directory is not being cleared at shutdown time. How to enable this? I'm running -current.
View 8 Replies View RelatedThis is actually for my router, but it's linux based, Anyway, I currently have a router running tomato linux firmware and at 30 minute intervals I have it send a log file of bandwidth usage to a network drive.
From there, a program calculates the bandwidth used by each IP by adding up all the totals recorded in the log files. The log files are the output of the router running the command:
Code:
iptables -L traffic_in -vn
What doesn't happen though, which I'd prefer, is that the bandwidth counts inside the router get cleared upon writing each log file. This way, I don't end up counting the same bandwidth use multiple times. So my question is, is there a way to erase/reset the data count in the iptables?
I just upgraded to 10.04, and it seems to be working well. At the very end of the process, it asked me if I wanted to delete my obsolete packages, and I chickened out and said "no". Now I have a truckload of taken space on the root drive, and am wondering if there is an easy way to complete this last step of clearing out obsolete packages now that 10.04 has been fully installed?
View 2 Replies View Relatedmy current plan is to create a truecrypt container with the whirlpool hash. This container will be located on a hdd that is not where my OS will be located (so a separate physical sata drive).My concern is when this container is accessed, that some of the password information could be stored in my swap partition (which is on the main drive where the OS "/" is located)
I would like to have a script or command I could run that after I unmount those drives (or just halt the system) that my swap (and ram too if possible) could be wiped (or like overwritten with the shred command). Also, am I going about this the right way, or should I just use truecrypts FDE on the entire drive? In addition, when Ubuntu does it's default install, does it create a swap file in addition to a swap partition? If it does, would that be another vulnerability? If it is, how do I prevent this from happening?
I welcome any input you have on this. I am aware that once the drive is mounted, it is vulnerable, but I want the data to be secure as possible once my computer is turned off. Also, I have read that there are ram exploits where it holds your passwords for up to a few minutes after you turn the machine off, does anyone know how long that it and is there a way to clear it, or will only time let it fade?
I am using Ubuntu 10.10 dual booted with windows vista. My boot is in a separate partition (sda5). My computer told me that there was limited space on that partition so I tried to clean things up using apt-get by removing old kernels. Turns out I didn't do it correctly because I consistently get an 'ERROR 15' when I shut down and rebooted my computer. I have a live-CD USB-stick so I tried reinstalling grub, (grub-install) updating the menu.lst (update-grub), and manually going through menu.lst and changing to root=(hd0,4) and groot=/dev/sda6. But I still get this ERROR 15 when I reboot.
when I do
sudo grub
find /boot/grub/stage1
find /boot/stage1
Both give me an ERROR 15 message and I'm not sure how to proceed with a diagnosis. When I ran update-grub, occasionally it used to tell me that /etc/fstab may be incorrect. Here is /boot/grub (note that stage 1 does exist!) ( this is /dev/sda5)
Code:
root@ubuntu:/# ls /boot/grub/
default fat_stage1_5 jfs_stage1_5 minix_stage1_5 stage2
device.map grubenv menu.lst reiserfs_stage1_5 xfs_stage1_5
e2fs_stage1_5 installed-version menu.lst~ stage1
Here is my problem
Code:
grub> find /boot/grub/stage1
Error 15: File not found
grub> find /boot/stage1
Error 15: File not found
I guess my main question is, if stage1 can't be found, what does that mean? What should I do next?
How do I empty the cache in Firefox? All I can figure out how to do is delete cookies.
View 3 Replies View RelatedCan I set the Firefox cache to clear automatically after some event (exiting Firefox or logging out of the system,either would be acceptable)?
View 3 Replies View RelatedI have been saving an XML file wherein I shall be reading data, if and only if the XML is present on Hard Drive. If same is not present, the code shall generate first and next time it shall simply read and not jump into writing part again and again. The issue that I am facing is, I am deleting the file manually going to that location, and checking whether it is reading the data, upon investigation, I found that it is really reading the data although the file is deleted.
I suspected that there may be some cache issue from where it is picking values, hence it fired the command
"sync; echo 3 > /proc/sys/vm/drop_caches"
But it is still doing the same pattern.
I lost my entire Operating system and am now reinstalling. After installing SUSE 11.1 and updating it through the update icon in the status bar, I ended up with a complete update except for the update icon in the status bar now depicting a downward arrow. This equates to my not wanting to download a update/patch/whatever of a "Microsoft font file"!
However, there is no way to delete this option that I do not want. How do I get rid of the MS font update and bring the OS/system back to the Gecko symbol associated with taking care (updating) of updating my system without a thing from MS? To those who are bound to ask, I want nothing to do with MS, this should be sufficient.
I had been doing some removal of packages, and things went well, or so I thought. Now whenever I try and install any package using aptitude, some old state is lingering around and wants me to install packages that I do not want, and remove some packages that I am not sure about removing (did I actually select those to be removed??) I removed libvirt etc, and now it wants to come back? Also, like I mentioned, why remove those other four packages?
The following NEW packages will be installed:
aqemu gtkrsync libvirt-doc libvirt0 python-libvirt qemu qemu-kvm qemu-system qemu-user qemu-utils virt-top virt-viewer virtinst
The following packages will be removed:
dnsmasq-base{u} netcat-openbsd{u} python-gtk-vnc{u} python-vte{u}
0 packages upgraded, 13 newly installed, 4 to remove and 176 not upgraded.
Need to get 2,210kB/24.3MB of archives. After unpacking 72.7MB will be used.
Do you want to continue? [Y/n/?] ^C
Running squeeze, and enjoying it so far, apart from a broken out of the box synergy (compiled my own synergy-plus to fix that issue) and a buggy samba client.
Found what takes space but not sure what to delete here is the output of df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 9.2G 157M 8.6G 2% /
/dev/sda5 9.4G 9.4G 20K 100% /usr
/dev/sda6 213G 213G 20K 100% /var
none 1.0G 12K 1.0G 1% /tmp
tmpfs 2.0G 0 2.0G 0% /usr/local/psa/handlers/before-local
How to identify what to delete to clear up space?
I'd like to clear the slapd DB so that I could reinstall it from scratch, however, when I remove the package and reinstall it, I still get some items in there.How can I purge/flush/remove everything from slapd?Instructions I follow to do the set up?https://help.ubuntu.com/10.04/server...ap-server.html
View 3 Replies View RelatedLet's analyse this While registering a Char deriver to kernel think that we had allocated memory using any of malloc/kmalloc/vmalloc.
If we forgot to Free that allocated memory while unregistering, will that memory be allocated aside or kernel clears it...?
I've wondered for years how it works and how I can change it. For example, opening a document with vim, or opening a man page, and then exiting out of it will sometimes (depending on the distro) clear the screen and leave your prompt at the very top. other times, it leaves the contents of whatever you had open on-screen and your prompt is at the bottom.
View 1 Replies View RelatedI have a question regarding the /proc/interrupts file. Let's say for example I had a server with 2xQuad-Core processors (so we have CPU0 to CPU7 ), and with 5 network interfaces. SMP affinity to all 5 interfaces was set to "ff", so all interfaces have done interrupts on all the processors. he network interfaces interrupts counters should look like this:
24: 32650776 32670506 50315017 32677739 32672119 32677935 32656299 32667496 IO-APIC-fasteoi eth2
27: 35233448 35285546 35317201 52657622 35315835 35339998 35221092 35246597 IO-APIC-fasteoi eth3
55: 37573056 35870363 35874607 35858010 37728061 35880275 35882340 35882127 PCI-MSI-edge eth1
56: 35861392 35863516 35865123 35865342 35864604 40515822 35861250 35863585 PCI-MSI-edge eth0
58: 30173318 30109146 30002990 30016870 30084937 30034759 46517278 30139103 PCI-MSI-edge eth4
Now let's say I've set the affinity to each of the network interfaces, so that it balances one per processor, so we have 5 processors working only for the network interfaces each processor with it's own eth. Now let's assume that the network interfaces generate very few interrupts, and that they show up every 5-6 seconds, so watching cat /proc/interrupts doesn't exactly underline the modifications unless you look with a ruler. Is there a way to reset the counters on /proc/interrupts so that they all start at 0, without rebooting the system?