Ubuntu :: Code For Clearing RAM As Cache?
Jun 20, 2010post the code for clearing RAM as cache?
View 2 Repliespost the code for clearing RAM as cache?
View 2 Repliesa 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 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 don't understand this error nor do I know how to solve the issue that is causing the error. Anyone care to comment?
Quote:
Error: Caching enabled but no local cache of //var/cache/yum/updates-newkey/filelists.sqlite.bz2 from updates-newkey
I know JohnVV. "Install a supported version of Fedora, like Fedora 11". This is on a box that has all 11 releases of Fedora installed. It's a toy and I like to play around with it.
I was laughing about klackenfus's post with the ancient RH install, and then work has me dig up an old server that has been out of use for some time. It has some proprietary binaries installed that intentionally tries to hide files to prevent copying (and we are no longer paying for support or have install binaries), so a clean install is not preferable.
Basically it has been out of commission for so long, that the apt-get upgrade DL is larger than the /var partition (apt caches to /var/cache/apt/archives).
I can upgrade the bigger packages manually until I get under the threshold, but then I learn nothing new. So I'm curious if I can redirect the cache of apt to a specified folder either on the command line or via a config setting?
I installed squid cache on my ubuntu server 10.10 and it is work fine but i want to know how to make it cache all files like .exe .mp3 .avi ....etc. and the other thing i want to know is how to make my client take the files from the cache in the full speed. since am using mikrotik system to use pppoe for clients and i match it with my ubuntu squid
View 1 Replies View RelatedI am reading slab allocator, it defines slab cache, i am quite confuse is it same as hardware cache?
View 2 Replies View Relatedi was looking for a way to stop my menus taking a few seconds to load my icons when i first open them and found a few guides suggesting using the gtk-upate-icon-cache command, but with the any colour you like icon theme i'm using (stored in my home folder .icons directory) i kept getting a "gtk-update-icon-cache: The generated cache was invalid." fault i used the inbuilt facility in the acyl script to copy the icons to the usr/share/icons directory and tried the command again, this time using sudo gtk-update-icon-cache --force --ignore-theme-index /usr/share/icons/ACYL_Icon_Theme_0.8.1/ but i still get the same error. i tried with several of the custom icon themes i've installed and only 1 of the first 7 or 8 i tried successfully created the cache.
View 4 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 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]...
This 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 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 RelatedHow to clear log files, also how to clear log files on boot.
View 3 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.
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 RelatedMy 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 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 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 RelatedIs there any way to stop Rhythmbox from clearing a song from the Play Queue once it has played it?
I searched the forums and haven't found a solution. This question had been raised before, but there was no answer given (the guy who responded confused 'playlist' with 'play queue').
Basically, whenever I queue up files to play in Rhythmbox's Play Queue (and i prefer to use that, since I operate it via Gnome-Do), they are auto-cleared as soon as I have finished playing them. I'd like to stop Rhythmbox from clearing them as I like to put them on repeat.
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?