Fortunately installing a sync server isn't too difficult. Below is what I did on one of my zones (debian based).
I want to have the software store its information in a mysql database. I already have a database server running. So I first logged in to my database server and created the database called sync.
Then you need to grant permission on the database for a user. Please use a more secure password then the example below has.
Now to install the software.
First install the prerequisite packages.
I want to have the software installed in /opt/sync. So create the directory and check out the software
Now we need to build the software. I creates a self contained environment.
We also need mysql support, so build that as well.
Now the base software installation is complete. You need to edit the configuration file to point to the sql server and set the right url in the auth section. Edit the file in etc/sync.confg. This is the content of mine.
[storage] backend = syncstorage.storage.sql.SQLStorage sqluri = mysql://sync:password@db/sync standard_collections = false use_quota = true quota_size = 5120 pool_size = 100 pool_recycle = 3600 reset_on_return = true display_config = true create_tables = true
[auth] backend = services.auth.sql.SQLAuth sqluri = mysql://sync:password@db/sync pool_size = 100 pool_recycle = 3600 create_tables = true fallback_node = http://web:5000
[smtp] host = localhost port = 25 sender = weave@mozilla.com
[cef] use = true file = syslog vendor = mozilla version = 0 device_version = 1.3 product = weave
So, now the server should be able to start. Try it with:
Now the server should be running. Next task is to configure a firefox instance and see if it will work.
Select Set Up Sync from the Tools menu.
Select Create a New Account
Fill in your account details, and change the sever to reflect your own server.
Now press the Next button
You will now see your sync key. Don't loose this, your stored data on the sync server is encrypted with this key.
Press Next
You should now see a completed screen.
In the window where you have stared the sync server, you will see a lot of output where the firefox client has queried the sync server. You shouldn't see any errors there. Something like this:
Now you're all set.
I run the service behind an apache server in proxy mode with https, so all data is transmitted securely. There are also other options to do this, please take a look at:
http://docs.services.mozilla.com/howtos/run-sync.html
Happy syncing! :)