Search:  
Gentoo Wiki

TIP_Firefox_and_Mozilla_Weave

Mozilla Weave is an add on to Firefox 3 which allows you to synchronize your bookmarks, saved passwords, cookies etc between different computers. Out of the box, Weave will sync to Mozillas servers but you can easily set up your own on Apache. This is generally faster and you have better visibility of what is happening.

Note that at the time of writing Weave is in development but I personally have at least 10 Firefoxes all happily synching up with this system (Windows and Linux). It is not yet anywhere near perfect but since the demise of Google Browser Sync, it seems the best bet to me for this task.

Announcement: [1]

Forums: [2]

Get it: [3] click on the .xpi link in Firefox and install it, then get it to update itself to the latest release.

Server:

Apache 2.2

USE flags for apache: In /etc/make.conf:

APACHE2_MODULES="dav dav_fs dav_lock"

Have a look in /etc/apache2/modules/45_mod_dav.conf

Add -D DAV to /etc/conf.d/apache

Add a section like this to /etc/apache2/vhosts.d/<vhost.conf>, if you don't use vhosts then ammend the default one:

Code: /etc/apache2/vhosts.d/<vhost.conf>
# WEAVE
      <Directory "/var/www/<my_vhost>/htdocs/weave">

        Options Indexes
        DAV On

        AuthType Basic

        AuthBasicProvider ldap
        AuthName "Weave"
        AuthzLDAPAuthoritative off
        AuthLDAPURL "ldap://ldap.blueloop.net:389/ou=users,o=blueloop?uid?sub?(objectClass=inetOrgPerson)"

        Require valid-user
        Allow from all

      </Directory>
#/WEAVE

Here I am using LDAP to authenticate my users. Substitute a suitable mechanism eg htpassword files or whatever. Don't forget to create the weave top level directory and set suitable permissions for it, eg chown apache:apache and drwxrwx---.

The Weave clients will not create a ./weave/user/<username> subdirectory tree automatically. Create the directory structure yourself and chown apache:apache to get it to work.

Point a browser at http(s)://<server>/weave and make sure that authentication is working OK.

Now to set up the client. In Firefox, Tools -> Weave -> Preferences. In Advanced, set the server location to http(s)://<server>/weave/ and on the account page, set your username and password and passphrase. The passphrase is any arbitrary string which is used as a key to encrypt your data. The username and password should be the same as the one you used to check your access above. Note you will have to "set up an additional computer" to avoid creating a Mozilla account.

Retrieved from "http://www.gentoo-wiki.info/Mozilla_Weave"

Last modified: Mon, 08 Sep 2008 03:42:00 +0000 Hits: 1,053