Hi quirkian2new
quirkian2new wrote:hello Mike
Tried your iron61 on laptop with 2gb ram(Fatdog version 702) and found it freeze often. So i think it would probably due to too little Ram. I see somewhere mention the parameter of " --disk-cache-dir=/tmp", that is :
# chrome-wrpper --no-sandbox --disable-infobars --disk-cache-dir=/tmp"
I'm not sure it is possible and even if possible that it would help.
Most Linux Distributions --those for whom Web-browsers are designed-- are created as Multi-User operating systems. Each user has his/her own Home Folder. But that folder can expand to the extent of the available space on the partition on which it is located. Such systems do not maintain a clear distinction between what is in Random Access Memory and what is on the storage media, frequently reading and writing what is in RAM to the User's Folder in Storage. The files websites cache on a computer being so operated would, if memory were exceeded, automatically write to the user's folder on Storage.
A frugally installed Puppy, on the other hand, was designed to run as Root, having access to any storage media attached to the system, but
operating only in RAM with nothing being written to Storage unless a Save was executed either manually or, if Menu>System>Puppy Event Manager, Save Session was
not set to Zero, periodically. When such Save is performed,
everything then in RAM (except the contents of /tmp) is copied/written to Storage. Such contents still remain in RAM until cleared by a Shutdown/Reboot.
Spot was developed in --IMHO a misguided-- effort to emulate the security provided to one user on a Multi-user system from the activity of another user. It creates a sealed folder and limits applications so configured to only have access to it.
Under a Frugal Puppy's "Merge File System" any change occupies RAM, so a Website which has cached its files on your system has done so in RAM. As currently configured, Iron's cache folder is located at /spot/.cache, and the contents of /spot/.cache are in RAM. Reassigning Iron-running-as-spot's cache files to /tmp would not improve the system as changes to /tmp are also in RAM.
I don't think it's possible. The way the problem of cache filling up RAM is handled with a Web-browser NOT running as spot, is to move the cache folder onto storage (e.g. /mnt/home/browser-cache) and symlink it back. The system, including the Browser, follows the symlink and writes directly to Storage rather than occupying RAM. I tried to edit /spot/iron/chrome-wrapper to add such an argument to Line 54 "exec -a "$0" run-as-spot /root/spot/iron/chrome" and execute a Save to preserve that change. Save went into what appeared to be an infinite loop. Neither Menu>Exit>Restart-X nor Ctrl-Alt-Backspace functioned and I finally pulled the plug.
What you might try doing is immediately on bootup (so as not to Save any unwanted junk to your system) open Iron, Click the 3 vertical dots at the Top-Right of its Panel, Select More Tools, Click Extensions, Click Get More Extensions, search for History Eraser and install it. And
then perform an immediate Save. Extensions so added will survive a reboot. I'm not sure History Eraser does anything more than merely clicking "Clear Browsing Data" also reached from "More Tools" but it works very well on Iron-Not-Running-as-Spot, and places a nice icon on Iron's Panel which may remind you from time to time to clear cache.
In case you weren't aware, you can import bookmarks, but only after you've first copied them to the /spot folder (and you may have to rename them as 'bookmarks.html' overwriting the current file of that name). However, once imported you won't be able to add or delete bookmarks and have those changes preserved without performing a Save.
In my opinion, this renders Iron running as Spot rather inconvenient as one's principal web-browser. And frankly, I don't see any advantage of having one browser run as spot --to protect your system-- if you are almost always using another browser running as Root.
Perhaps I'm mistaken. But I have the impression that the idea of running a browser as Spot came into existence before the mechanism for running Puppies with Automatic Save Removed was developed. With Automatic Save Removed, whatever crap you've picked up on the internet and is currently only in RAM is deleted by a reboot/shut-down without first performing a Save.
The apparent advantage of a spot folder appears to exist without taking into consideration:
(1) Someone mentioned recently, but I didn't make a note of it, that Puppies don't access websites the way other operating systems do; but more importantly
(2) Malware of any type is an application and for an application to run it must be
(a) 'on the Path' and /mnt/home is not "on the Path"
(b) it must be recognized as an executable. Even if malware were downloaded piece-meal, some executable would have to assemble it.
(3) Malware is not written for Linux which in total has less than 10% of computer users, with Windows having approximately 80% of computer users; and Linux is not one distribution but hundreds each of which is to some extent incompatible with every other variation. "Why do I rob banks? Because that's where the money is."
(d) Using technology to protect those things which are valuable to you rather than common sense is on par with the Romans employing the German Tribes to protect the Roman Empire. With Equifax having given away personal identity information of over 143 Million people --the full count may never be known-- and that's just one example that we know about, doesn't the use of data encryption for those few sensitive files you may keep on your computer, and the steps discussed on this post,
http://murga-linux.com/puppy/viewtopic. ... 321#965321 and especially babaguy's response,
http://murga-linux.com/puppy/viewtopic. ... 487#973487 "Use a PAY-AS-YOU-GO Visa or MasterCard" make more sense.
mikesLr