If you are using the Firefox web browser you know that you can sync various information so that they become available on all devices that you use.
Sync works out of the box with Mozilla servers, but you can set up your own custom Firefox Sync server as well to use it instead.
The main advantage here is that you have full control over the data at any point in time.
Mozilla switched the sync technology used to synchronize data in Firefox 29. This version is currently available as a Beta version only, but will be rolled out to stable users next month.
I have reviewed the new Sync previously here on Ghacks. The core difference between the old and new version of Sync is that the new requires you to create a Firefox account that is being used to sync the data. The old system where you used keys has been replaced by this.
The new Firefox Sync allows you to set up your own custom server and use it.
Mozilla has published instructions on how this is done here.
Installation and setting up
To install all the required components on a fresh Ubuntu server, you would run the following command:
$ sudo apt-get install python-dev git-core python-virtualenv
To build the server, you need to run the following set of commands:
$ git clone https://github.com/mozilla-services/syncserver
$ cd syncserver
$ make build
If you want to test the installation, use the command
$ make test
Once the server has been set up, you need to configure it. Open the file etc/sync.conf and locate the [syncserver] line in the file. It states:
public_url = http://localhost:5000/
While this works for local tests, you should replace the public_url with an url that is remotely accessible so that remote computers can connect to the sync server.
The server uses an in-memory database by default. If you restart it, the data is lost. You can configure a file database instead so that the data is stored permanently instead.
To run the server, you use the following command
$ local/bin/pserve syncserver.ini
Last but not least, you may also want to check for updates regularly:
$ cd /path/to/syncserver
$ git stash # to save any local changes to the config file
$ git pull # to fetch latest updates from github
$ git stash pop # to re-apply any local changes to the config file
$ make build # to pull in any updated dependencies
I suggest you check out the documentation over at the Mozilla website. It contains additional information that you may find useful, for instance how to run the production server.
You need to configure Firefox to use the new sync server:
Advertising revenue is falling fast across the Internet, and independently-run sites like Ghacks are hit hardest by it. The advertising model in its current form is coming to an end, and we have to find other ways to continue operating this site.
We are committed to keeping our content free and independent, which means no paywalls, no sponsored posts, no annoying ad formats (video ads) or subscription fees.
If you like our content, and would like to help, please consider making a contribution:
Ghacks is a technology news blog that was founded in 2005 by Martin Brinkmann. It has since then become one of the most popular tech news sites on the Internet with five authors and regular contributions from freelance writers.