FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 01-11-2011, 09:37 PM
Chris Jones
 
Default Firefox & tmpfs

On 11 Jan 2011, at 3:39pm, Amedee Van Gasse wrote:

> On Tue, January 11, 2011 14:08, Chris Jones wrote:
>>
>>> would this clear the browsing history, saved tabs, etc when the system
>>> is rebooted?
>>
>> tmpfs is held in ram, so yes, it is wiped on a reboot ....
>
> Actually, no.
>
> The Firefox cache is stored in the browser.cache.disk.parent_directory
> (see about:cache and about:config)
> Browsing history, saved tabs, etc are saved in sqlite files in the Firefox
> profile directory. These don't get wiped.

I was assuming the user would sym link their entire ~/.firefox directory to tmpfs, in which case everything would go on a reboot. Of course, if they only sym link the cache, then only that is lost.
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 01-12-2011, 08:34 AM
"Amedee Van Gasse"
 
Default Firefox & tmpfs

On Tue, January 11, 2011 23:37, Chris Jones wrote:

>> The Firefox cache is stored in the browser.cache.disk.parent_directory
>> (see about:cache and about:config)
>> Browsing history, saved tabs, etc are saved in sqlite files in the
>> Firefox
>> profile directory. These don't get wiped.
>
> I was assuming the user would sym link their entire ~/.firefox directory
> to tmpfs, in which case everything would go on a reboot. Of course, if
> they only sym link the cache, then only that is lost.

Moving the Firefox cache to tmpfs is a well known hack for netbook hackers
(at least it's described on the wiki, so that makes it well known). There
is no need to symlink, you only change the value of
browser.cache.disk.parent_directory in about:config so that it points to
your tmpfs mount point.


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 01-12-2011, 09:05 AM
Gilles Gravier
 
Default Firefox & tmpfs

Hi!

On 11/01/2011 23:37, Chris Jones wrote:
> On 11 Jan 2011, at 3:39pm, Amedee Van Gasse wrote:
>
>> On Tue, January 11, 2011 14:08, Chris Jones wrote:
>>>> would this clear the browsing history, saved tabs, etc when the system
>>>> is rebooted?
>>> tmpfs is held in ram, so yes, it is wiped on a reboot ....
>> Actually, no.
>>
>> The Firefox cache is stored in the browser.cache.disk.parent_directory
>> (see about:cache and about:config)
>> Browsing history, saved tabs, etc are saved in sqlite files in the Firefox
>> profile directory. These don't get wiped.
> I was assuming the user would sym link their entire ~/.firefox directory to tmpfs, in which case everything would go on a reboot. Of course, if they only sym link the cache, then only that is lost.
You would lose the whole firefox configuration and settings. Maybe OK
for a kiosk... but not good if you want SOME persistance of some
settings... like bookmarks...

Gilles.

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 01-13-2011, 08:28 PM
Dave Woyciesjes
 
Default Firefox & tmpfs

Amedee Van Gasse wrote:

On Tue, January 11, 2011 23:37, Chris Jones wrote:


The Firefox cache is stored in the browser.cache.disk.parent_directory
(see about:cache and about:config)
Browsing history, saved tabs, etc are saved in sqlite files in the
Firefox
profile directory. These don't get wiped.

I was assuming the user would sym link their entire ~/.firefox directory
to tmpfs, in which case everything would go on a reboot. Of course, if
they only sym link the cache, then only that is lost.


Moving the Firefox cache to tmpfs is a well known hack for netbook hackers
(at least it's described on the wiki, so that makes it well known). There
is no need to symlink, you only change the value of
browser.cache.disk.parent_directory in about:config so that it points to
your tmpfs mount point.




So what the OP wants to do is covered by these instructions, right?
http://ubuntuguide.net/speed-up-firefox-by-moving-cache-into-ram-in-ubuntu

From that page:
"...
1.Edit /etc/fstab,open terminal from Applications->Accessories menu and
type:

sudo gedit /etc/fstab

Add following into this file and close it.
tmpfs /tmp tmpfs noexec,defaults,noatime 0 0
tmpfs /var/tmp tmpfs noexec,defaults,noatime 0 0

2.Edit /etc/sysctl.conf:
sudo gedit /etc/sysctl.conf

add this line and save it:
vm.swappiness=1

3.
Type about:config in firefox address bar and click I'll be careful,I
promise!.Right click on blank area and create a new string value called
browser.cache.disk.parent_directory,set its value to /tmp


Now,reboot your system and experience the performance..."

--
--- Dave Woyciesjes
--- ICQ# 905818
--- AIM - woyciesjes
--- CompTIA A+ Certified IT Tech - http://certification.comptia.org/
--- HDI Certified Support Center Analyst - http://www.ThinkHDI.com/
Registered Linux user number 464583

"Computers have lots of memory but no imagination."
"The problem with troubleshooting is that trouble shoots back."
- from some guy in the internet.

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 01-14-2011, 11:26 AM
"Amedee Van Gasse"
 
Default Firefox & tmpfs

On Thu, January 13, 2011 22:28, Dave Woyciesjes wrote:

> So what the OP wants to do is covered by these instructions, right?
> http://ubuntuguide.net/speed-up-firefox-by-moving-cache-into-ram-in-ubuntu

Exactly. That is one of the many, many copies of that page.


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 

Thread Tools




All times are GMT. The time now is 03:26 AM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org