Firefox profile on ramdisk

From DWIKI

Shut down mozilla, look in ~/.mozilla/firefox for a directory called xxx.default, and copy this to a directory called ~/.mozilla/firefox/profile.


On debian/ubuntu

In /etc/rc.local put a line like "rsync -ar /home/yourusername/.mozilla/firefox/profile/* /home/yourusername/.mozilla/firefox/xxx.default"

Create a file /etc/init.d/saveff containing:

#/bin/bash
rsync -ar /home/yourusername/.mozilla/firefox/xxx.default/* /home/yourusername/.mozilla/firefox/profile

Add the following line to /etc/fstab:

tmpfs /home/yourusername/.mozilla/firefox/xxx.default tmpfs defaults,noatime 0 0

And set up the links:

cd /etc/rc0.d
ln -s ../init.d/saveff K35saveff
cd /etc/rc6.d
ln -s ../init.d/saveff K35saveff