Speed \u200b\u200bup Firefox running from RAM in Linux. SOURCE: http://www.taringa.net/posts/linux/7559313/Acelerar-Firefox-ejecutandolo-desde-la-RAM-en-Linux_.html
======= ====================================
Good, a couple of days I was investigating laburo soon as he could speed up Firefox, as I have the same profile as two years ago and got a bit dense. Almost every post, threads, manuals, reference made to erase or use less cache capacity for the profile, reduce the consumption of ram, downgrade, etc. As I'm pretty far-fetched, would not do that. I tried running a livecd Ubuntu with the option "toram" to load the contents of the ram cd, copy my Firefox profile in the session, and it struck me as responsible for all plugins, themes, addons, history, etc. One and maso least quarter of what it takes to boot.
So that's the solution I said, run it from RAM faster loading and browsing behavior, as well as plug-ins, such as flash I had worked so long ago. Obviously, you can use a livecd like laburar system.
Basically what we do to run it from the ram is:
1.-Create a ramdisk with sufficient space and mount it. 2.-Lower binary version of firefox, the file. tar.gz you downloaded from the web, unzip and copy to ramdisk. 3 .- Copy the firefox profile in the ramdisk 4 .- Configure firefox to load the profile and cache it in the ramdisk 5.-sync the folders where your browser profiles because when you restart the computer, the ramdisk is erased completely. Without much discussion, the steps.
1 .- Create a ramdisk with sufficient space and mount it. Well
size we will assign the ramdisk is quite variable, in my case, I have 4GB of ram, and I've never consume more than 2GB., And I believe that to 1GB, but this depends on the environment where we are.
To create a virtual disk must first create a mount point:
$ sudo mkdir / media / ramdisk
Then I just got in that folder, how much memory you want:
$ sudo mount-t tmpfs-o size = 1024M, nr_inodes = 10k, mode = 7777 tmpfs / media / ramdisk /
* Note: the size option, we modify the amount memory you want to ride.
2 .- Download the binary version of firefox, the file. Tar.gz we downloaded from the web, unzip and copy to ramdisk.
You can download the current version 6.3.1911 from:
http://mozilla.c3sl.ufpr.br/releases//firefox/releases/3.6.11/linux-i686/es-ES/firefox- 3.6.11.tar.bz2 Then, in my case I have a Programs folder in my personal folder where I keep these programs despite the redundancy, so unzip it into this folder or where you want units. That if, wherever you decompress, they have to have your user permissions are also careful not to delete this folder.
Regarding plugins, we paste in the folder inside the folder have decompressed "Plugins." With this we asugramos that also riding on the ram.
Now, Copy this folder in the ramdisk, then we have two solutions, cp or rsync. I personally use rsync, the command has to use is:
$ rsync-av / home / frank / Programs / firefox / / media / ramdisk / firefox /
3.-Copy firefox profile in the ramdisk
FF profiles are stored in / home / USERNAME / .mozilla / firefox / xxxxx.default. In my case is / home/franco/.mozilla/firefox/slkxz9xp.default /. The command to use is:
$ rsync-av / home/franco/.mozilla/firefox/slkxz9xp.default / / Media/ramdisk/firefox/slkxz9xp.default /
4.-Configure firefox to load the profile and cache it in the ramdisk
To take the profile from the ram is great. Inside the folder / home / USERNAME / .mozilla / firefox / there is a file called profiles.ini, we edit. Content is
[General]
StartWithLastProfile = 1
[Profile0] Name = default
IsRelative = 1
; Path = xxxxx.default
and we must change the parameters
IsRelative IsRelative = 1 = 0 and the road or path
xxxxxxx.default to
Path = Path = / media / ramdisk / firefox / xxxxxxx.default
For me softly:
[General]
StartWithLastProfile = 1
[Profile0] Name = default
IsRelative = 0 Path = / media / ramdisk/slkxz9xp.default
Save the changes. After
firefox save the cache in ramdisk, we go to the bar address, write
about: config
We're going to be prudendetes, and we in the right-> New -> String.
ponernerle name is
we
browser.cache.disk.parent_directory
And the value is the address of ramdisk
/ media / ramdisk / firefox
5 .- Synchronize the folders where the profiles of the browser, because when you restart the computer, the ramdisk is erased completely. At this
point, if we execute
sh / media / ramdisk / firefox / firefox
The first time, make check compatibility of addons and start completely from RAM. If you close it and reopen, and open it directly.
two problems arise. The first major change is that realism to our profile will be lost when you restart the computer. The second and less drastic is that if we do these steps each time, always late to run around and that firefox will redo the tests on the first boot.
The solution is fairly simple, create a cronjob to sync the ramdisk with our copy on the hard disk. I will not explain what is the work on cron. Directly open the file / etc / crontab. And paste this in the line:
1,10,20,30,40,50,59 * * * * ex rsync-av / media / ramdisk / firefox / / home / frank / mozilla / firefox/slkxz9xp.default /
What this is to run rsync every 10min. With what we have a backup of the profile at that time. In
laburo directly is the first thing I open FF, so I did a scriptonto to upload it to the ram just open. Depending on the desktop environment they are using, you can run to start.
# / bin / bash
mount-t tmpfs-o size = 1024M, nr_inodes = 10k, mode = 7777 tmpfs / media / ramdisk /;
rsync - av / home/franco/.mozilla/firefox/slkxz9xp.default / / media/ramdisk/firefox/slkxz9xp.default /;
rsync-av / home / frank / Programs / firefox / / media / ramdisk / firefox /;
/ media / ramdisk / firefox / firefox &
To verify that changes take correctly, can open
about: support
and look in that folder is keeping the cache.
I really works well, although I do not think I explained it the best way, so any inquiries welcome.