The time now is Wed 22 May 2013, 20:26
All times are UTC - 4 |
| Author |
Message |
jrb

Joined: 11 Dec 2007 Posts: 972 Location: Smithers, BC, Canada
|
Posted: Sat 27 Nov 2010, 13:15 Post subject:
Fighting Persistent Cookies and eliminating bloat Subject description: Dealing with Puppy Paranoia |
|
Inspired by paranoia as detailed in Evercookies: extremely persistent browser cookies I decided to fight back. Here's how I have begun.
Firstly I setup ROX to show hidden files and folders. (I always do this anyway) Open a ROX window, right click, choose Options-Display and tick Show hidden files.
For Seamonkey I reckoned that the only things I need are my bookmarks, preferences and extensions. Everything else can be started from scratch for each session. With that in mind I copied a virgin .mozilla to /root/.mozilla_new | Code: | | cp -fr /initrd/pup_ro2/root/.mozilla /root/.mozilla_new | Then I created /root/.mozilla_bkmrks/seamonkey | Code: | mkdir /root/.mozilla_bkmrks
mkdir /root/.mozilla_bkmrks/seamonkey | Next I copied my existing bookmarks.html, pref.js, and extensions folder from my old /root/.mozilla/seamonkey/#######.default/ (different seamonkey installs have different names for their .default folders so I won't give any code here. Just drag them in with ROX) into /root/.mozilla_bkmrks/seamonkey.
Now delete those files from /root/.mozilla_new/seamonkey/#######.default and drag them in from /root/.mozilla_bkmrks/seamonkey and choose Link(absolute).
Finally create a script file in /root/Startup called browser_renew containing this code. (in /root/Startup rightclick-new-Sript) | Code: | #!/bin/sh
rm -fr /root/.mozilla_old
mv -f /root/.mozilla /root/.mozilla_old
cp -fr /root/.mozilla_new /root/.mozilla
rm -fr /root/.macromedia |
Every time you reboot, the .mozilla from your last session will be renamed to .mozilla_old and a fresh .mozilla will be created by copying .mozilla_new to .mozilla.
You will get a fresh install of Seamonkey but your bookmarks and settings will be retained because they are actually stored in .mozilla_bkmrks.
You will have an empty cache as well so your pupsave file will not fill up nearly as much.
I have retained the .mozilla from the previous session (.mozilla_old) just in case something goes amiss. If things are working well you can eliminate that line from the browser_renew script.
I also have set it to get rid of /root/.macromedia as this seems to be of some concern security wise. A new one will be generated automatically each session.
You may want to rename your present /root/.mozilla to something else, maybe /root/.mozilla_bkup just in case things don't work out the first time.
Note: The scripts in /root/Startup are activated quite quickly after your window manager starts IF you have a pupsave file. If not it takes what seems like a long time (60 secs?).
Warning: If you have FireFox installed then hold off doing this until I write a Firefox howto. Firefox and Seamonkey share the /root/.mozilla folder.
_________________ SFS-TCZ_Linker, http://puppylinuxstuff.meownplanet.net/choicepup/ user=puppy, password=linux
|
|
Back to top
|
|
 |
jrb

Joined: 11 Dec 2007 Posts: 972 Location: Smithers, BC, Canada
|
Posted: Sat 27 Nov 2010, 13:16 Post subject:
|
|
Firefox writeup coming
_________________ SFS-TCZ_Linker, http://puppylinuxstuff.meownplanet.net/choicepup/ user=puppy, password=linux
|
|
Back to top
|
|
 |
jrb

Joined: 11 Dec 2007 Posts: 972 Location: Smithers, BC, Canada
|
Posted: Sat 27 Nov 2010, 13:16 Post subject:
|
|
Opera writeup coming
_________________ SFS-TCZ_Linker, http://puppylinuxstuff.meownplanet.net/choicepup/ user=puppy, password=linux
|
|
Back to top
|
|
 |
Cust0dian

Joined: 22 Oct 2010 Posts: 28 Location: Russian Federation, St. Petersburg
|
Posted: Tue 28 Dec 2010, 17:57 Post subject:
NEvercookies script Subject description: Automating process |
|
Good day, everyone.
By authority of jrb, I'm posting small script. It will do everything, that was written above.
It is working only with SeaMonkey ver. 2 for now. Wait awhile, I need some time to find out where user data contains in each browser. And I will really appreciate if someone provide me this type of information.
Script was tested in Lupu 5.1.1 and will work for any Puppy based on fifth generation or with SeaMonkey 2 installed. (e.g. Lighthouse 5)
Puppy 4.3.1 uses SeaMonkey 1, and I can't find where it stores extensions, so please help.
To run script you must untar it and make executable:
either open Terminal in folder with script and type:
| Code: | tar -xf nevercookies.tar
chmod a+x nevercookies
|
or open Rox left-click on nevercookies.tar, extract it, then right-click nevercookies => File... => Permissions => leave everything as it is and click "OK"
After that simply click (make sure you are not running browser), it will do what we need:
1. Create folder which will override current browser folder (which contains a lot of junk in it).
2. Create folder with user data (bookmarks, preferences, extensions) and link it, so it (and only it) will change.
3. Create a Startup script which will clean browser data on boot. (you can run it manually, simply go to /root/Startup/ and click renew_browser).
| Description |
For SM ver.2 only
|

Download |
| Filename |
nevercookies.tar |
| Filesize |
4 KB |
| Downloaded |
208 Time(s) |
|
|
Back to top
|
|
 |
efiguy

Joined: 06 Sep 2006 Posts: 169
|
Posted: Sun 09 Jan 2011, 23:21 Post subject:
Fighting Persistent Cookies and eliminating bloat Subject description: More browserTech cookie script inside |
|
Hi group,
Recently had occasion to learn a bit of Browser Tech, I'm no expert mind you, but wish to share and hope others with more experience will join in.
| Description |
How-to on browser commands, security settings, some speedup sets, test sites, extensions, prntscns, assembled as a result of learning how server-side commands learn so much about one from the website contact via default settings
|

Download |
| Filename |
browzrtech.zip |
| Filesize |
205.18 KB |
| Downloaded |
168 Time(s) |
Last edited by efiguy on Mon 10 Jan 2011, 01:50; edited 1 time in total
|
|
Back to top
|
|
 |
Flash
Official Dog Handler

Joined: 04 May 2005 Posts: 9846 Location: Arizona USA
|
Posted: Mon 10 Jan 2011, 00:55 Post subject:
|
|
efiguy, would you please edit your post to include a short description of what's in your Browser Tech, so everyone doesn't have to download and unzip it just to see what it is?
Thanks.
|
|
Back to top
|
|
 |
8-bit

Joined: 03 Apr 2007 Posts: 3012 Location: Oregon
|
Posted: Mon 10 Jan 2011, 02:53 Post subject:
|
|
I am just curious.
Is there any reason not to just use the plugin of "Better Privacy" in Seamonkey?
It is supposed to remove cookies on exiting from Seamonkey.
|
|
Back to top
|
|
 |
nooby
Joined: 29 Jun 2008 Posts: 9387 Location: SwedenEurope
|
Posted: Mon 10 Jan 2011, 04:24 Post subject:
|
|
8Bit, I don't remember details but if not that safer or better privacy is particulary made for persistent cokies then it helps only for the old cookies.
P cookies have some 8 or more different ways to make themselves persistent that is why they have that name But I know nothing.
_________________
I'm a noob so I use Google Search of Puppy Forum
|
|
Back to top
|
|
 |
cagliostro
Joined: 18 Feb 2006 Posts: 99 Location: Southern California
|
Posted: Mon 10 Jan 2011, 15:33 Post subject:
|
|
I just use the following script for Firefox, but should work in SeaMonkey:
#!/bin/sh
#
cd ~/.mozilla/firefox
cp cookies.sqlite ./nyrs6b6z.default
xmessage -center " COOKIES CLEANED! "
Note: I used ./nyrs6b6z.default because that is my specific Firefox folder, but if you replace this with ./*.default it should work for all installs.
I have Firefox set to clean everything on exit: cache, history, etc. But I leave the box for cookies unchecked. I need some cookies to log into my home page. Maybe you need cookies for TV listings, or for stock listings on a financial page.
So when I install Firefox I visit those sites and set the listings I want on those pages. Then I turn off the internet connection. Then delete all cookies except the four or five I want. I save a copy of this file, cookies.sqlite, to the parent folder, which is ~/.mozilla/firefox.
After browsing, I exit Firefox and everything is cleaned except cookies. Then click on the script at top, and it will copy the original clean cookies file to the Firefox directory (~/.mozilla/firefox/*.default). I've been doing this for years. For a new Firefox I transfer over my userChrome.css, bookmarks.HTML, user.js, and cookies.sqlite, and am ready to go (delete user.js after the first start up).
There was a comment about cache filling up save file.
One can use about:config
browser.cache.disk.parent_directory set this to /mnt/home/firefox-cache.
Then the cache is on the disk partition, never in the save file. (Hope I remember this correctly, like I said all this is in the user.js, so installation is automatic.) Also in this directory I place thumbnails, and link it to ~/.thumbnails so those aren't in the save file either.
|
|
Back to top
|
|
 |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|