There's a trick to make firefox blazing fast by having the cache running on a ramdisk. Here's how its done in Ubuntu, and this is for OSX.
The key difference is the command used to create the RAM disk. For OSX it's the diskutil. You can most likely create the RAM disk usung tge diskutil GUI tool from. But this simple comman dline will create a disk for you:
$ diskutil erasevolume HFS+ '<volume name>' `hdiutil attach -nomount ram://<disk size in bytes`
The ram disk will be mounted in /Volumes/<volume name>
Next, you'll have to use it in firefox. Enter: about:config in the URL and say yes to you'll be careful question. You'll need two keys, a string and an integer key. The string key must point to where your ram disk is located on your drive, and the integer key must contain the ramdisk size in bytes.
Right click the `preference name` table header and select new > string and type: browser.cache.disk.parent_directory and enter the value: /Volumes/firefox_cache
Now, add a new > integer and type: browser.cache.disk.capacity and enter 1165430 as the size, or whatever you like.
If you'd like to keep your ram disk in between boots, you should add the following line to your .bash_profile, to ensure that the ramdisk is created and cache used by firefox after a reboot.
[ ! -d /Volumes/firefox_cache ] && diskutil erasevolume HFS+ '<volume name>' `hdiutil attach -nomount ram://<disk size in bytes`
Showing posts with label Firefox. Show all posts
Showing posts with label Firefox. Show all posts
April 12, 2016
Running firefox cache on ram disk
Labels:
diskutil,
Firefox,
OSX ram disk,
Ubuntu ram disk
March 22, 2016
Moving Mozilla tools from Linux to Mac
To move your Firefox and Thunderbird profile and settings from Linux to Mac. All you have to do is to copy (or create a tarball) the profile. On Linux the profiles are located under:
~/.mozilla/filefox/extentions
~/.mozilla/filefox/<profile>.default
~/.thunderbird/<profile>.default
where <profile> is replaced with your profile name, usually named something cryptic, like: an8e24f4.defaultOnce you have them copied or backed up to your, stick, dropbox, drive account. Or if you copy them using scp. You'll need to place, extract them on your Mac box. On mac they're placed in:
~/Library/Application Support/Firefox/Extentions
~/Library/Application Support/Firefox/<profile>.default
~/Library/Thunderbird/ <profile>.default
Creating a profile with Firefox will help you synchronize your Firefox data. So this kind of copying is not needed again. Unless you're restoring from a backup. And I assume you know the cp/scp/tar commands.
~/.mozilla/filefox/extentions
~/.mozilla/filefox/<profile>.default
~/.thunderbird/<profile>.default
where <profile> is replaced with your profile name, usually named something cryptic, like: an8e24f4.defaultOnce you have them copied or backed up to your, stick, dropbox, drive account. Or if you copy them using scp. You'll need to place, extract them on your Mac box. On mac they're placed in:
~/Library/Application Support/Firefox/Extentions
~/Library/Application Support/Firefox/<profile>.default
~/Library/Thunderbird/ <profile>.default
Creating a profile with Firefox will help you synchronize your Firefox data. So this kind of copying is not needed again. Unless you're restoring from a backup. And I assume you know the cp/scp/tar commands.
Labels:
Firefox,
Linux,
Mac,
Mozilla,
Thunderbird
Subscribe to:
Posts (Atom)