Mozilla Firefox Sync Server
This page is about special operations required in order to install Mozilla Sync Server.
Newer versions of Mozilla Firefox feature bookmarks, passwords and browsing history synchronization between all your computers and devices. Mozilla Foundation provides a public Sync server, but you can host your own one if you want.
Mozilla Sync Server depends on Python 2 during installation. Arch Linux provides Python 3 as default Python version so there are special tweaks needed before running Mozilla Sync Server setup.
Moreover, if you intend to use your server with itinerant clients, you should install it on an Internet reachable computer.
All installation instructions rely on the superuser privileges:
$ su - Password: #
Mozilla Sync Server setup needs Python 2.6 or newer. In default configuration,
/usr/bin/python is a symbolic link to
/usr/bin/python3 whereas Python 2 is
Before running setup, we must change the link:
# cd /usr/bin # ln -sf python python2
Installing Mozilla Sync Server
Setup process creates an isolated Python environment in which all necessary dependencies are downloaded and installed. This is why swapping Python versions is only needed during installation. Afterwards, running the server only relies on the isolated Python environment, independently of the system-wide Python.
Installation instructions (adapted from Mozilla Howto, Copyright 2010 Mozilla Foundation, CC BY-SA 2.5):
# mkdir -p /opt/weave # cd /opt/weave # hg clone https://hg.mozilla.org/services/server-full ... source repository cloning messages ... # cd server-full # make build ... many build messages, including harmless warnings ... ... end of the successful build messages : Building the app Checking the environ [ok] Updating the repo [ok] Building Services dependencies Getting server-core [ok] Getting server-reg [ok] Getting server-storage [ok] [ok] Building External dependencies [ok] Now building the app itself [ok] [done]
Check the end of the build messages, they should state "[done]". Otherwise, look at the first error messages, they give you hints on the problem and how to solve it.
Restoring initial Python state
# cd /usr/bin # ln -sf python python3