Firefox/Sync Server

This article explains how to run a private Firefox Sync server instance.

Installation
Unless using a very particular setup with registration and storage servers in different locations install the package which is available through the klondike overlay.

Emerging
After setting up the desired flags remove the keywords from the packages and run:

Configuration
The package is now installed and the default configuration is in. The configuration of the daemon can be set using the files whilst the configuration of sync itself is done in the  files. All of them are -style files.

The first step is replacing the following line by the file to use on the  file:

Then ensure logs are saved in the proper place:

Then you may need to edit the file so they load the proper  files for that replace the following line by the correct file:

Finally edit the file with the desired settings. The most important ones are the sqluri which define the path to the SQL databases and the fallback_node which defines the URL to the server as seen by the client you may also want to disable the captcha.

For a list of parameters check: http://docs.services.mozilla.com/server-devguide/configuration.html

Testing the server
Once configured test the server by following this line in :

This will start the server listening on the port 5000. You will need to have paster installed. In general using this approach to run the server is a bad idea so you can run it behind a web server instead

Apache
Emerge :

Create the mozsync user on the mozsync group if has not been created.

Merge the following with the vhost configuration (the first line may require modification):

External resources

 * http://docs.services.mozilla.com/howtos/run-sync.html
 * http://docs.services.mozilla.com/server-devguide/configuration.html