[laptop-mode] Silent web browsing
Luis Garrido
luisgarrido at users.sourceforge.net
Tue May 5 18:56:15 CEST 2009
>> Apparently the only reliable way of achieving silent browsing is
>> moving your browser user profile to a ramdisk (tmpfs). If you want to
>> store your session history and the bookmarks you create during it you
>> will have to implement some way of mirroring it to the hard disk via a
>> cron rsync job, for instance.
To achieve silent browsing this are the steps I am following as a
proof of concept:
1) I set laptop-mode MAX_LOST_WORK_SECONDS to one hour.
2) I created the /mnt/tmp mountpoint and added the following to
/etc/fstab (one single line):
tmpfs /mnt/tmp tmpfs size=100m,mode=700,uid=myuser,gid=myuser,user 0 0
3) I created the following script, silent-ff.sh:
mount /mnt/tmp
cp -a ~/.mozilla/* /mnt/tmp/
mv ~/.mozilla ~/.mozilla.hd
ln -s /mnt/tmp/ ~/.mozilla
firefox
rsync -a --delete ~/.mozilla/ ~/.mozilla.hd/
rm ~/.mozilla
mv ~/.mozilla.hd ~/.mozilla
umount /mnt/tmp
It basically mounts the ramdisk, copies the .mozilla contents on hard
disk to it, replaces the HD .mozilla with the RD one and launches
firefox. When firefox is closed it synchronizes to HD and dismantles
the contraption.
A bit crude 5 min hack but works as expected.
Luis
More information about the laptop-mode
mailing list