Optimizing Firefox on Linux - Canadian TV, Computing and Home Theatre Forums
 

Go Back   Canadian TV, Computing and Home Theatre Forums > Consumer Electronics and Home Computing > Home Computing > Linux

Reply
 
Thread Tools Search this Thread Display Modes

Old 2009-07-31, 03:19 PM   #1
stampeder
OTA Forum Moderator
 
Join Date: Jan 2005
Location: North Delta, BC (96Av x 116St)
Posts: 23,338
Cool Optimizing Firefox on Linux

Great tip I just came across - you can use sqlite3 to optimize all of Firefox's sqlite files in each user's profile directory. The script below cleans out any and all garbage accumulated in those files, making the browser quicker:
  1. make sure sqlite3 is installed on your distro
  2. locate and backup the home .mozilla directory for each user
  3. create a /usr/local/bin/firefox-optimizer script including this:
    Code:
    #!/bin/bash
    
    killall firefox
    mkdir -p /tmp/$HOME
    tar cvf /tmp/$HOME/mozilla.tar $HOME/.mozilla
    find $HOME/.mozilla/ \( -name "*.sqlite" \) -exec sqlite3 {} "vacuum" \;
  4. chmod 555 /usr/local/bin/firefox-optimizer
  5. run as root and then as each user (option, rewrite for one global use if you like)
stampeder is offline  
Reply

Tags
firefox, linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -4. The time now is 05:40 AM.

Search Digital Home

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.