Firefox profile on ramdisk: Difference between revisions
From DWIKI
(New page: 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...) |
|||
Line 12: | Line 12: | ||
Add the following line to /etc/fstab: | Add the following line to /etc/fstab: | ||
tmpfs /home/yourusername/.mozilla/firefox/xxx.default tmpfs defaults,noatime 0 0 | 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 |
Latest revision as of 18:01, 13 April 2010
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